OpenAI::CreateThreadRequest
Inherits JSON::Serializable < Reference < Object
Options to create a new thread. If no thread is provided when running a request, an empty thread will be created.
Constructors
new(pull : JSON::PullParser)
Sourcenew(messages : Array(CreateMessageRequest) | Nil = nil, tool_resources : CreateThreadRequestToolResources | Nil = nil, metadata : Metadata | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
metadata
Sourcemetadata=(metadata : Metadata | Nil)
Sourcetool_resources
Sourcetool_resources=(tool_resources : CreateThreadRequestToolResources | Nil)
Source