cohere · Schema

Cohere Chat Message

Represents a message in a Cohere Chat API conversation, including user prompts, assistant responses, system instructions, and tool results.

Properties

Name Type Description
role string The role of the message author in the conversation. User messages are prompts, assistant messages are model responses, system messages set behavior, and tool messages return function results.
content string The text content of the message.
tool_call_id string The ID of the tool call this message is responding to. Required when role is tool.
tool_calls array Tool calls generated by the model when it decides to invoke available functions.
citations array Citations referencing source documents used in retrieval-augmented generation.
View JSON Schema on GitHub