Table of Contents

Class ThreadCreateRequest

Namespace
OpenAI.ObjectModels.RequestModels
Assembly
AntRunnerLib.dll
public class ThreadCreateRequest : IOpenAiModels.IMetaData
Inheritance
System.Object
ThreadCreateRequest
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()

Properties

Messages

A list of messages to start the thread with.

[JsonPropertyName("messages")]
public List<MessageCreateRequest>? Messages { get; set; }

Property Value

System.Nullable<List<MessageCreateRequest>>

Metadata

Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.

[JsonPropertyName("metadata")]
public Dictionary<string, string>? Metadata { get; set; }

Property Value

System.Nullable<Dictionary<System.String, System.String>>

ToolResources

A set of resources that are made available to the assistant's tools in this thread. The resources are specific to the type of tool. For example, the code_interpreter tool requires a list of file IDs, while the file_search tool requires a list of vector store IDs.

[JsonPropertyName("tool_resources")]
public ToolResources ToolResources { get; set; }

Property Value

ToolResources