@sap-ai-sdk/langchain
Version:
SAP Cloud SDK for AI is the official Software Development Kit (SDK) for **SAP AI Core**, **SAP Generative AI Hub**, and **Orchestration Service**.
28 lines • 1.61 kB
TypeScript
import { BaseChatModel } from '@langchain/core/language_models/chat_models';
import type { BaseLanguageModelInput } from '@langchain/core/language_models/base';
import type { AIMessageChunk, BaseMessage } from '@langchain/core/messages';
import type { CallbackManagerForLLMRun } from '@langchain/core/callbacks/manager';
import type { ChatResult } from '@langchain/core/outputs';
import type { AzureOpenAiChatCallOptions, AzureOpenAiChatModelParams, ChatAzureOpenAIToolType } from './types.js';
import type { HttpDestinationOrFetchOptions } from '@sap-cloud-sdk/connectivity';
import type { Runnable } from '@langchain/core/runnables';
/**
* LangChain chat client for Azure OpenAI consumption on SAP BTP.
*/
export declare class AzureOpenAiChatClient extends BaseChatModel<AzureOpenAiChatCallOptions> {
temperature?: number | null;
top_p?: number | null;
logit_bias?: Record<string, any> | null | undefined;
user?: string;
presence_penalty?: number;
frequency_penalty?: number;
stop?: string | string[];
max_tokens?: number;
supportsStrictToolCalling?: boolean;
private openAiChatClient;
constructor(fields: AzureOpenAiChatModelParams, destination?: HttpDestinationOrFetchOptions);
_llmType(): string;
_generate(messages: BaseMessage[], options: typeof this.ParsedCallOptions, runManager?: CallbackManagerForLLMRun): Promise<ChatResult>;
bindTools(tools: ChatAzureOpenAIToolType[], kwargs?: Partial<AzureOpenAiChatCallOptions> | undefined): Runnable<BaseLanguageModelInput, AIMessageChunk, AzureOpenAiChatCallOptions>;
}
//# sourceMappingURL=chat.d.ts.map