FunctionCallingMessage
- func_name (Optional[str]): The name of the function used. (default: :obj:
None
) - args (Optional[Dict]): The dictionary of arguments passed to the function. (default: :obj:
None
) - result (Optional[Any]): The result of function execution. (default: :obj:
None
) - tool_call_id (Optional[str]): The ID of the tool call, if available. (default: :obj:
None
) - mask_output (Optional[bool]): Whether to return a sanitized placeholder instead of the raw tool output. (default: :obj:
False
)
to_openai_message
OpenAIMessage
object.
Parameters:
- role_at_backend (OpenAIBackendRole): The role of the message in OpenAI chat system.
OpenAIMessage
object.
to_sharegpt
to_openai_assistant_message
OpenAIAssistantMessage
object.
to_openai_tool_message
OpenAIToolMessageParam
object with its role being
“tool”.