@promptbook/node
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
55 lines (54 loc) • 2.07 kB
TypeScript
import Anthropic from '@anthropic-ai/sdk';
import type { ChatParticipant } from '../../book-components/Chat/types/ChatParticipant';
import type { AvailableModel } from '../../execution/AvailableModel';
import type { LlmExecutionTools } from '../../execution/LlmExecutionTools';
import type { ChatPromptResult } from '../../execution/PromptResult';
import type { Prompt } from '../../types/Prompt';
import type { string_markdown, string_markdown_text } from '../../types/string_markdown';
import type { string_title } from '../../types/string_title';
import type { AnthropicClaudeExecutionToolsNonProxiedOptions } from './AnthropicClaudeExecutionToolsOptions';
/**
* Execution Tools for calling Anthropic Claude API.
*
* @deprecated use `createAnthropicClaudeExecutionTools` instead
*
* @public exported from `@promptbook/anthropic-claude`
*/
export declare class AnthropicClaudeExecutionTools implements LlmExecutionTools {
protected readonly options: AnthropicClaudeExecutionToolsNonProxiedOptions;
/**
* Anthropic Claude API client.
*/
private client;
private limiter;
/**
* Creates Anthropic Claude Execution Tools.
*
* @param options which are relevant are directly passed to the Anthropic Claude client
*/
constructor(options?: AnthropicClaudeExecutionToolsNonProxiedOptions);
get title(): string_title & string_markdown_text;
get description(): string_markdown;
get profile(): ChatParticipant;
getClient(): Promise<Anthropic>;
/**
* Check the `options` passed to `constructor`
*/
checkConfiguration(): Promise<void>;
/**
* List all available Anthropic Claude models that can be used
*/
listModels(): ReadonlyArray<AvailableModel>;
/**
* Calls Anthropic Claude API to use a chat model.
*/
callChatModel(prompt: Prompt): Promise<ChatPromptResult>;
/**
* Get the model that should be used as default
*/
private getDefaultModel;
/**
* Default model for chat variant.
*/
private getDefaultChatModel;
}