class

OpenAI::RealtimeSessionCreateRequestToolsItem

Inherits JSON::Serializable < Reference < Object

Constructors

new(type_value : RealtimeSessionCreateRequestToolsItemType | Nil = nil, name : String | Nil = nil, description : String | Nil = nil, parameters : Hash(String, JSON::Any) | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

description

The description of the function, including guidance on when and how to call it, and guidance about what to tell the user when calling (if anything).

Source
description=(description : String | Nil)

The description of the function, including guidance on when and how to call it, and guidance about what to tell the user when calling (if anything).

Source
name

The name of the function.

Source
name=(name : String | Nil)

The name of the function.

Source
parameters

Parameters of the function in JSON Schema.

Source
parameters=(parameters : Hash(String, JSON::Any) | Nil)

Parameters of the function in JSON Schema.

Source
type_value

The type of the tool, i.e. function.

Source
type_value=(type_value : RealtimeSessionCreateRequestToolsItemType | Nil)

The type of the tool, i.e. function.

Source