adk-typescript
Version:
TypeScript port of Google's Agent Development Kit (ADK)
33 lines (32 loc) • 1.08 kB
TypeScript
import { BaseLlm } from './BaseLlm';
import { LlmRequest } from './LlmRequest';
import { LlmResponse } from './LlmResponse';
/**
* Claude class - wrapper around Anthropic's Claude API
*/
export declare class Claude extends BaseLlm {
private anthropicClient;
/**
* Constructor
* @param model Model name, defaults to 'claude-3-5-sonnet-v2@20241022'
*/
constructor(model?: string);
/**
* Create and return the Anthropic client
* Lazy initialization to avoid creating the client until needed
* @returns AnthropicVertexClient
*/
private get client();
/**
* Generate content asynchronously
* @param llmRequest The request
* @param stream Whether to stream (currently not supported for Claude)
* @returns AsyncGenerator yielding responses
*/
generateContentAsync(llmRequest: LlmRequest, stream?: boolean): AsyncGenerator<LlmResponse, void, unknown>;
/**
* List of supported models
* @returns Regular expressions for supported model names
*/
static supportedModels(): string[];
}