@microsoft/teams-ai
Version:
SDK focused on building AI based applications for Microsoft Teams.
37 lines • 1.27 kB
TypeScript
/**
* @module teams-ai
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/**
* An action call to be requested by the LLM model. This type is a generic meant to be the equivalent of OpenAI's [`ChatCompletionMessageToolCall`](https://github.com/openai/openai-node/blob/master/src/resources/chat/completions.ts#L477), but is not tied to OpenAI's implementation in order to allow for flexibility for other models in the future.
*/
export interface ActionCall {
/**
* The ID of the tool call.
*/
id: string;
/**
* The function that the model called.
*/
function: {
/**
* The name of the function.
*/
name: string;
/**
* The arguments to call the function with, as generated by the model in JSON
* format. Note that the model does not always generate valid JSON, and may
* hallucinate parameters not defined by your function schema. Validate the
* arguments in your code before calling your function.
*/
arguments: string;
};
/**
* The type of the tool. Currently, only `function` is supported.
*/
type: 'function';
}
//# sourceMappingURL=ActionCall.d.ts.map