AgentChatOptions is the optional second argument to agent.chat() — settings that apply to one turn only.
Quick Start
Options
errorsAsNull lives on AgentChatCallOptions, which extends AgentChatOptions. Only chat() honours it — start() and stream() accept AgentChatOptions and ignore it. Even with errorsAsNull: true, these still reject (Python re-raises them too):Swallowed errors are still reported through
Logger.error, so a failed turn is never silent.Examples
attachments are images only (.jpg, .jpeg, .png, .gif, .webp). A non-image or unreadable input is reported through the warning channel and skipped — the turn is never failed. On the AI SDK backend, multimodal attachments emit a “not yet honoured” parity notice.Related
Agent
The chat() method
Streaming
Token and event streams

