Skip to content
providerkit
GitHub

toAnthropicMessages

function toAnthropicMessages(messages, provider?): object;

Defined in: core/src/hosted.ts:94

Convert history with Anthropic’s hosted replay records.

Parameter Type Default value
messages readonly ChatMessage[] undefined
provider string "anthropic"

object

messages: AnthropicMessage[];
optional system?: unknown[];