1.0.0-beta.3 (2024-06-06)
Features Added
Streaming
- Operation updates:
- Added
createRunStream
,createThreadAndRunStream
andsubmitToolOutputsToRunStream
methods toAssistantsClient
andAssistantsAsyncClient
classes.
A suite of classes extending fromStreamUpdate
were added for users to be able to consume the incremental updates from the service.
- Added
Assistants
- Model updates:
Assistant
,AssistantCreationOptions
andUpdateAssistantOptions
models:- Added new fields:
toolResources
,temperature
,topP
andresponseFormat
.
- Added new fields:
Files
- Model updates:
OpenAIFile
model changes:- Added new fields:
status
ofFileState
type andstatus_details
ofString
type.
- Added new fields:
- Added new enum
FileState
representing the type of thestatus
field mentioned in the previous point. - Added new possible values for
FilePurpose
:batch
,batch_output
andvision
.
Messages
-
Operation updates:
- Updated
listMessages
to accept the filterrunId
.
- Updated
-
Model updates:
- Added new model
MessageAttachment
. - Updated docs renaming mentions of
retrieval
tool tofile_search
. - Added new field,
startIndex
andendIndex
toMessageTextFileCitationAnnotation
,MessageTextFilePathAnnotation
model.
- Added new model
Run Step
- Model updates:
ThreadRun
model updates:- Added fields:
temperature
,topP
,maxPromptTokens
,maxCompletionTokens
,truncationStrategy
,toolChoice
andresponseFormat
.
- Added fields:
- Updated documentation for
RunCompletionUsage
. CreateRunOptions
model updates:- Added fields:
additionalMessages
,temperature
,topP
,maxPromptTokens
,maxCompletionTokens
,truncationStrategy
,toolChoice
andresponseFormat
.
- Added fields:
CreateAndRunThreadOptions
model updates:- Added fields:
toolResources
,temperature
,topP
,maxPromptTokens
,maxCompletionTokens
,truncationStrategy
,toolChoice
andresponseFormat
.
- Added fields:
- Added new model for all the
truncationStrategy
fields calledTruncationObject
.
Threads
- Model updates:
AssistantThread
model now includestoolResources
field as nullable.AssistantThreadCreationOptions
updates include:messages
type using renamed typeThreadInitializationMessage
->ThreadMessageOptions
,toolResources
.
Tool Resources (new)
- Model updates:
- There are 3 new models that were added:
ToolResources
,CreateToolResourcesOptions
andUpdateToolResourcesOptions
. As the name implies, wherever there is
a fieldtoolResource
we use the appropriate type, depending on the model declaring it is meant to be a response object, create request object or update request object, respectively.
- There are 3 new models that were added:
Vector Stores (new)
There are 3 main areas for vector stores into which its models and operations can be divided. That is vector stores themselves, vector store files and vector store file batches.
-
Model updates:
- new models (I will just list the top level response and request objects, but there are several subtypes describing more complex JSON object fields):
VectorStore
andVectorStoreOptions
,VectorStoreFile
and there is no request object,VectorStoreFileBatch
and there is no request object.
- new models (I will just list the top level response and request objects, but there are several subtypes describing more complex JSON object fields):
-
Operation Updates:
- new operations
listVectorStores
,createVectorStore
,getVectorStore
,modifyVectorStore
anddeleteVectorStore
. - new vector store file operations:
listVectorStoreFiles
,createVectorStoreFile
,getVectorStoreFile
anddeleteVectorStoreFile
. - new vector store file batch operations:
createVectorStoreFileBatch
,getVectorStoreFileBatch
,cancelVectorStoreFileBatch
andlistVectorStoreFileBatchFiles
.
- new operations
Breaking Changes
Assistants
- Model updates:
- Removed
AssistantFile
model. Assistant
,AssistantCreateOptions
andUpdateAssistantOptions
models:- removed fields:
fileIds
.
- removed fields:
- Removed
- Operation updates:
- Removed operations:
createAssistantFile
,listAssistantFiles
,getAssistantFile
anddeleteAssistantFile
.
- Removed operations:
Files
- Removed method
uploadFile(FileDetails file, FilePurpose purpose)
. UseuploadFile(FileDetails file, FilePurpose purpose, String fileName)
instead
Messages
-
Model updates:
- Renamed
ThreadInitializationMessage
toThreadMessageOptions
. - Removed
MessageFile
model. - Updated
ThreadMessage
model:- The field
incomplete_details
was of the wrong type. Corrected fromMessageIncompleteDetailsReason
->MessageIncompleteDetails
. assistantId
was marked as optional, but it was in fact nullablerunId
was marked as optional, but it was in fact nullable- Removed field
fileIds
- Added new field
attachments
a nullable array ofMessageAttachment
- The field
- Renamed
-
Operation updates:
- Removed
MessageFile
related operations:listMessageFiles
andgetMessageFile
- Updated
createMessage
to accept theThreadMessageOptions
model (also used inAssistantThreadCreationOptions
)
- Removed
Run Step
- Model updates:
ThreadRun
model updates:- Removed field
fileIds
- Removed field
Threads
-
Model updates:
- Extracted fields used in
updateThread
operation into modelUpdateAssistantThreadOptions
which now includes the new fieldstoolResources
.
- Extracted fields used in
-
Operation updates:
updateThread
using extracted modelUpdatedAssistantThreadOptions
instead of parameters using the spread operator.
Tools
- Model updates: (mostly about renaming tool
retrieval
tofile_search
)- Renamed model
RetrievalToolDefinition
toFileSearchToolDefinition
and the associated discriminator value. - Renamed model
RunStepDeltaRetrievalToolCall
toRunStepDeltaFileSearchToolCall
. RunStepToolCall
variantRunStepRetrievalToolCall
renamed toRunStepFileSearchToolCall
and the associated discriminator value.
- Renamed model
Bugs Fixed
- A combination of inputs for
uploadFile
would allow users to not sendString filename
to the service resulting always in an error, as this is actually mandatory.
Other Changes
Dependency Updates
- Upgraded
azure-core
to version1.49.1
. - Upgraded
azure-core-http-netty
to version1.15.1
.