agentlang
Version:
The easiest way to build the most reliable AI agents - enterprise-grade teams of AI agents that collaborate with each other and humans
30 lines • 963 B
TypeScript
import { AgentServiceProvider, AIResponse } from '../provider.js';
import { BaseMessage } from '@langchain/core/messages';
export interface OpenAIConfig {
model?: string;
temperature?: number;
maxTokens?: number;
topP?: number;
frequencyPenalty?: number;
presencePenalty?: number;
maxRetries?: number;
apiKey?: string;
configuration?: {
baseURL?: string;
defaultHeaders?: Record<string, string>;
[key: string]: any;
};
streamUsage?: boolean;
logprobs?: boolean;
topLogprobs?: number;
}
export declare class OpenAIProvider implements AgentServiceProvider {
private model;
private config;
constructor(config?: Map<string, any>);
private parseConfig;
invoke(messages: BaseMessage[], externalToolSpecs: any[] | undefined): Promise<AIResponse>;
getConfig(): OpenAIConfig;
updateConfig(newConfig: Partial<OpenAIConfig>): void;
}
//# sourceMappingURL=openai.d.ts.map