@sap-ai-sdk/foundation-models
Version:
SAP Cloud SDK for AI is the official Software Development Kit (SDK) for **SAP AI Core**, **SAP Generative AI Hub**, and **Orchestration Service**.
25 lines • 1.13 kB
TypeScript
import type { AzureOpenAiChatCompletionResponseMessageRole } from './chat-completion-response-message-role.js';
import type { AzureOpenAiChatCompletionMessageToolCall } from './chat-completion-message-tool-call.js';
import type { AzureOpenAiChatCompletionFunctionCall } from './chat-completion-function-call.js';
import type { AzureOpenAiAzureChatExtensionsMessageContext } from './azure-chat-extensions-message-context.js';
/**
* A chat completion message generated by the model.
*/
export type AzureOpenAiChatCompletionResponseMessage = {
role: AzureOpenAiChatCompletionResponseMessageRole;
/**
* The refusal message generated by the model.
*/
refusal: string | null;
/**
* The contents of the message.
*/
content: string | null;
/**
* The tool calls generated by the model, such as function calls.
*/
tool_calls?: AzureOpenAiChatCompletionMessageToolCall[];
function_call?: AzureOpenAiChatCompletionFunctionCall;
context?: AzureOpenAiAzureChatExtensionsMessageContext;
} & Record<string, any>;
//# sourceMappingURL=chat-completion-response-message.d.ts.map