Package version:

Interface AgentThreadCreationOptions

The details used to create a new agent thread.

interface AgentThreadCreationOptions {
    messages?: {};
    metadata?: any;
    toolResources?: null | ToolResources;
}

Properties

messages?: {}

The initial messages to associate with the new thread.

metadata?: any

A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.

toolResources?: null | ToolResources

A set of resources that are made available to the agent'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.