Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements llm.ChatModel for Anthropic's /v1/messages API.
func (*Client) Chat ¶
func (c *Client) Chat(ctx context.Context, req protocol.ChatRequest) (*protocol.ChatResponse, error)
Chat sends a message request to Anthropic and maps the response back to ChatResponse.
func (*Client) StreamChat ¶
func (c *Client) StreamChat(ctx context.Context, req protocol.ChatRequest) (protocol.ChatStream, error)
StreamChat uses SSE-style streaming from Anthropic messages endpoint.
Click to show internal directories.
Click to hide internal directories.