Skip to content

v0.4.0: OpenAI Responses API

Choose a tag to compare

@lecheuklun lecheuklun released this 19 Oct 14:59
· 17 commits to main since this release

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

Type property of LLM messages objects has been removed

Since v0.4.0, these objects no longer have a Type property:

  • LLMTextMessage
  • LLMImageMessage
  • LLMToolCallMessage
  • LLMToolResultMessage

To check if the message history of an agent contains a particular type of message, use the isa function. For example:
isToolCall = arrayfun(@(message) isa(message,"aisdk.LLMToolCallMessage"), agent.Messages);