import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {OpenAIChatMessage_contentMember1[] | string} */ export declare function createOpenAIChatMessage_contentFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record void>); /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {OpenAIChatMessage_contentMember1} */ export declare function createOpenAIChatMessage_contentMember1FromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record void>); /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {OpenAIChatMessage_tool_calls_function} */ export declare function createOpenAIChatMessage_tool_calls_functionFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record void>); /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {OpenAIChatMessage_tool_calls} */ export declare function createOpenAIChatMessage_tool_callsFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record void>); /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {OpenAIChatMessage} */ export declare function createOpenAIChatMessageFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record void>); /** * The deserialization information for the current model * @param OpenAIChatMessage The instance to deserialize into. * @returns {Record void>} */ export declare function deserializeIntoOpenAIChatMessage(openAIChatMessage?: Partial | undefined): Record void>; /** * The deserialization information for the current model * @param OpenAIChatMessage_content The instance to deserialize into. * @returns {Record void>} */ export declare function deserializeIntoOpenAIChatMessage_content(openAIChatMessage_content?: Partial | undefined): Record void>; /** * The deserialization information for the current model * @param OpenAIChatMessage_contentMember1 The instance to deserialize into. * @returns {Record void>} */ export declare function deserializeIntoOpenAIChatMessage_contentMember1(openAIChatMessage_contentMember1?: Partial | undefined): Record void>; /** * The deserialization information for the current model * @param OpenAIChatMessage_tool_calls The instance to deserialize into. * @returns {Record void>} */ export declare function deserializeIntoOpenAIChatMessage_tool_calls(openAIChatMessage_tool_calls?: Partial | undefined): Record void>; /** * The deserialization information for the current model * @param OpenAIChatMessage_tool_calls_function The instance to deserialize into. * @returns {Record void>} */ export declare function deserializeIntoOpenAIChatMessage_tool_calls_function(openAIChatMessage_tool_calls_function?: Partial | undefined): Record void>; /** * Object representing entity supplied to the AI agent or a response from the AI Agent */ export interface OpenAIChatMessage extends AdditionalDataHolder, Parsable { /** * The content property */ content?: OpenAIChatMessage_contentMember1[] | string | null; /** * An optional name for the participant */ name?: string | null; /** * The role of the messages author */ role?: string | null; /** * Tool call that this message is responding to */ toolCallId?: string | null; /** * The tool calls generated by the model, such as function calls */ toolCalls?: OpenAIChatMessage_tool_calls[] | null; } export type OpenAIChatMessage_content = OpenAIChatMessage_contentMember1[] | string; /** * The contents of the message */ export interface OpenAIChatMessage_contentMember1 extends AdditionalDataHolder, Parsable { } export interface OpenAIChatMessage_tool_calls extends AdditionalDataHolder, Parsable { /** * The function that the model called */ functionEscaped?: OpenAIChatMessage_tool_calls_function | null; /** * The ID of the tool call */ id?: string | null; /** * The type of the tool. Currently, only `function` is supported */ type?: string | null; } /** * The function that the model called */ export interface OpenAIChatMessage_tool_calls_function extends AdditionalDataHolder, Parsable { /** * The arguments to call the function with */ arguments?: string | null; /** * The name of the function to call */ name?: string | null; } /** * Serializes information the current object * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. * @param OpenAIChatMessage The instance to serialize from. * @param writer Serialization writer to use to serialize this model */ export declare function serializeOpenAIChatMessage(writer: SerializationWriter, openAIChatMessage?: Partial | undefined | null, isSerializingDerivedType?: boolean): void; /** * Serializes information the current object * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. * @param OpenAIChatMessage_content The instance to serialize from. * @param writer Serialization writer to use to serialize this model */ export declare function serializeOpenAIChatMessage_content(writer: SerializationWriter, openAIChatMessage_content?: Partial | undefined | null, isSerializingDerivedType?: boolean): void; /** * Serializes information the current object * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. * @param OpenAIChatMessage_contentMember1 The instance to serialize from. * @param writer Serialization writer to use to serialize this model */ export declare function serializeOpenAIChatMessage_contentMember1(writer: SerializationWriter, openAIChatMessage_contentMember1?: Partial | undefined | null, isSerializingDerivedType?: boolean): void; /** * Serializes information the current object * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. * @param OpenAIChatMessage_tool_calls The instance to serialize from. * @param writer Serialization writer to use to serialize this model */ export declare function serializeOpenAIChatMessage_tool_calls(writer: SerializationWriter, openAIChatMessage_tool_calls?: Partial | undefined | null, isSerializingDerivedType?: boolean): void; /** * Serializes information the current object * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. * @param OpenAIChatMessage_tool_calls_function The instance to serialize from. * @param writer Serialization writer to use to serialize this model */ export declare function serializeOpenAIChatMessage_tool_calls_function(writer: SerializationWriter, openAIChatMessage_tool_calls_function?: Partial | undefined | null, isSerializingDerivedType?: boolean): void;