-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request for feedback #30
Comments
Batch API I am stuck at retrieving batch results. public MessageBatch getResults(final String batchId) {
return this.client.messages()
.batches()
.retrieve(MessageBatchRetrieveParams.builder().messageBatchId(batchId).build());
}
I would expect a stream/list of jsonl records to be available in similar way as in python client.messages.batches.results(
"msgbatch_01HkcTjaV5uDC8jWR4ZsDV8d",
): API model var SYSTEM_PROMPT = "system prompt as string";
MessageBatchCreateParams.Request.Params.builder()
.system(MessageBatchCreateParams.Request.Params.System.ofString(SYSTEM_PROMPT))
// there is no string overload
MessageCreateParams.builder()
.system(MessageCreateParams.System.ofString(SYSTEM_PROMPT))
// or
.system(SYSTEM_PROMPT) |
Hello, Is it possible to have a separate library containing only the model types, without additional dependencies? We do not use OkHttp and have our own client, so we would like to have the "official" types and validators available separately. However, having a ready-made client as a separate artifact is beneficial for building smaller projects, like a Lambda function, where minimizing dependencies is important. |
Yeah, support for this API is incomplete. JSONL support isn't built out properly yet. Filed an issue here for you to follow: #42
Yup, this is a known issue. We will soon have these convenience overloads recursively :) |
So, the SDK is already split into multiple packages:
You should be able to depend on Does that answer your question @katoquro? |
Thanks for response, @TomerAberbach. I saw that module. Isn't
|
@katoquro apologies for the delayed reply. I'll need to look into why we depend on that, but we definitely don't use that as our HTTP client in the core module. Maybe we depend on it for something else, or maybe it's a bug. I'll get back to you on that |
Hey everyone!
This SDK is in alpha, and we are actively iterating on its design and making improvements. We would love to hear your thoughts and feedback!
As you try the new SDK, please post your thoughts and feedback on this issue. We'll be actively monitoring this thread.
Thanks in advance! We hope to make a Java SDK you'll love using.
The text was updated successfully, but these errors were encountered: