Assistant
Constructors
Properties
Link copied to clipboard
the message as the model's API returned it, when the ChatModel needs it back unchanged in later requests (Claude's thinking blocks, for example). The model that produced the message reads it; leave it out of messages you build yourself.
Link copied to clipboard
the tools the model wants to run before it continues. Each of them needs a ToolResult in the next request.