Messages
Defined in: wrapper/src/anthropic-sdk.ts:127
Messages interface (mimics Anthropic SDK).
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Messages(
backend,config):Messages
Defined in: wrapper/src/anthropic-sdk.ts:132
Parameters
Section titled “Parameters”backend
Section titled “backend”config
Section titled “config”AnthropicSDKConfig = {}
Returns
Section titled “Returns”Messages
Methods
Section titled “Methods”create()
Section titled “create()”Create a message.
Call Signature
Section titled “Call Signature”create(
params):Promise<AnthropicSDKMessageResponse>
Defined in: wrapper/src/anthropic-sdk.ts:141
Create a message (non-streaming).
Parameters
Section titled “Parameters”params
Section titled “params”AnthropicMessageParams & object
Returns
Section titled “Returns”Promise<AnthropicSDKMessageResponse>
Call Signature
Section titled “Call Signature”create(
params):AsyncIterable<AnthropicStreamEvent>
Defined in: wrapper/src/anthropic-sdk.ts:148
Create a message (streaming).
Parameters
Section titled “Parameters”params
Section titled “params”AnthropicMessageParams & object
Returns
Section titled “Returns”AsyncIterable<AnthropicStreamEvent>