CreateThreadRequest class

A request to create a thread.

Annotations
  • @immutable

Constructors

CreateThreadRequest({List<ThreadMessage>? messages, ToolResources? toolResources, Map<String, String>? metadata})
Creates a CreateThreadRequest.
const
CreateThreadRequest.fromJson(Map<String, dynamic> json)
Creates a CreateThreadRequest from JSON.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
messages List<ThreadMessage>?
Initial messages to add to the thread.
final
metadata Map<String, String>?
Custom metadata.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toolResources ToolResources?
Tool resources for the thread.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override