Extract text from response content blocks.
Extract text content from response content blocks.
Extract tool uses from response content blocks.
Extract tool uses from response content blocks.
Create a message.
Optionaloptions: Partial<MessagesOptions>Create a message and return just the text content.
Optionaloptions: Partial<MessagesOptions>Message with tool handling.
Optionaloptions: Partial<MessagesOptions>Message with structured output.
Optionaloptions: Partial<MessagesOptions>Stream and accumulate full response.
Optionaloptions: Partial<MessagesStreamOptions>OptionalonDelta: (delta: string) => void
Anthropic API client.
Example