Internal
Optional
functions?: ({ name: string; id?: string | undefined; description?: string | undefined; parameters?: { type: "object"; title?: string | undefined; description?: string | undefined; default?: any; examples?: any[] | undefined; ... 10 more ...; additionalProperties?: boolean | ... 1 more ... | undefined; } | undefined; })[]Private
addPrivate
functionsPrivate
Readonly
pluginPrivate
removeAdds a function to the conversation. This function can be "called" by the assistant, generating a function call message.
The function to add to the conversation.
Gets the functions in a format the OpenAI Chat Completion API can understand.
Get the functions in the conversation.
A shallow copy of the functions array.
Removes a listener function from the list of listeners that was previously added with onCallableFunctionAdded
.
The function to remove from the list of listeners.
Removes a listener function from the list of listeners that was previously added with onCallableFunctionRemoved
.
The function to remove from the list of listeners.
Adds a listener function that is called whenever a callableFunction is added to the conversation.
The function to call when a callableFunction is added to the conversation.
A function that removes the listener from the list of listeners.
Adds a listener function that is called whenever a callableFunction is removed to the conversation.
The function to call when a callableFunction is removed to the conversation.
A function that removes the listener from the list of listeners.
Adds a listener function that is called only once whenever a callableFunction is added to the conversation.
The function to call when a callableFunction is added to the conversation.
A function that removes the listener from the list of listeners.
Adds a listener function that is called only once whenever a callableFunction is removed to the conversation.
The function to call when a callableFunction is removed to the conversation.
A function that removes the listener from the list of listeners.
Removes a callable function from the conversation.
Either the ID of the function, the function itself, or the function model.
Internal
Serializes the ConversationCallableFunctions
to JSON.
A JSON representation of the ConversationCallableFunctions
instance.
This method is used internally by the library and is not meant to be used by consumers of the library.
Optional
functions?: ({ name: string; id?: string | undefined; description?: string | undefined; parameters?: { type: "object"; title?: string | undefined; description?: string | undefined; default?: any; examples?: any[] | undefined; ... 10 more ...; additionalProperties?: boolean | ... 1 more ... | undefined; } | undefined; })[]Generated using TypeDoc
Holds the callable functions of a
Conversation
.This class is used internally by the library and is not meant to be instantiated by consumers of the library.