class

OpenAI::ChatCompletionRequestToolMessage

Inherits JSON::Serializable < Reference < Object

Constructors

new(role : ChatCompletionRequestToolMessageRole = ChatCompletionRequestToolMessageRole::Tool, content : ChatCompletionRequestToolMessageContent = "", tool_call_id : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content

The contents of the tool message.

Source
content=(content : ChatCompletionRequestToolMessageContent)

The contents of the tool message.

Source
role

The role of the messages author, in this case tool.

Source
role=(role : ChatCompletionRequestToolMessageRole)

The role of the messages author, in this case tool.

Source
tool_call_id

Tool call that this message is responding to.

Source
tool_call_id=(tool_call_id : String)

Tool call that this message is responding to.

Source