Share via


FunctionMessage Class

Represents the result of a function call execution.

Contains the output from executing a function that was requested by the AI model, along with the function call ID for correlation.

Constructor

FunctionMessage(content: str | None, function_id: str, role: Literal['function'] = 'function')

Parameters

Name Description
content
Required
function_id
Required
role
Default value: function

Attributes

content

content: str | None

function_id

function_id: str

role

role: Literal['function'] = 'function'