chat
Send messages to other AI models and get replies. Start new conversations or continue existing ones with saved history, switching providers between turns.
Instructions
Send a message to another AI model and get its reply.
Omit conversation_id to start a new conversation; pass the returned conversation_id to continue it (history is saved to disk, and you may switch provider between turns).
Args: message: The user message. conversation_id: Continue an existing conversation. provider: Provider to use. If omitted: a continued conversation keeps its last provider; a new one asks the user to choose (via the client UI when supported). model: Model ID override for this turn. system: System prompt (only applied when starting a conversation). max_tokens: Maximum tokens in the reply. effort: Thinking effort (Anthropic only; ignored by other providers).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| effort | No | medium | |
| system | No | ||
| message | Yes | ||
| provider | No | ||
| max_tokens | No | ||
| conversation_id | No |