toAnthropicMessages
function toAnthropicMessages(messages, provider?): object;Defined in: core/src/hosted.ts:94
Convert history with Anthropic’s hosted replay records.
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
messages |
readonly ChatMessage[] |
undefined |
provider |
string |
"anthropic" |
Returns
Section titled “Returns”object
messages
Section titled “messages”messages: AnthropicMessage[];system?
Section titled “system?”optional system?: unknown[];