Repository navigation
v0.4.0: OpenAI Responses API
Support for OpenAI Responses API
You can now connect to the OpenAI® Responses API. Create an OpenAIResponsesClient object by using the aisdk.LLMClient function
and specifying "openai-responses" as the first input argument.
You can also connect to APIs that are compatible with the OpenAI Responses API. To do so, set the BaseURL name-value argument to the base URL of the API. For example, for OpenAI, BaseURL is "https://api.openai.com/v1".
Agent gallery
Try these preconfigured AI agents in the new agentGallery directory. You can use the agents directly, or use them as a starting point to build your own agent.
v0.4.0 Behavior Change
Typeproperty of LLM messages objects has been removedSince v0.4.0, these objects no longer have a
Typeproperty:
LLMTextMessageLLMImageMessageLLMToolCallMessageLLMToolResultMessageTo check if the message history of an agent contains a particular type of message, use the
isafunction. For example:
isToolCall = arrayfun(@(message) isa(message,"aisdk.LLMToolCallMessage"), agent.Messages);