33import { APIResource } from '../../resource' ;
44import { isRequestOptions } from '../../core' ;
55import * as Core from '../../core' ;
6- import * as ThreadsAPI from './threads/threads' ;
7- import { type Auto , Static , unnamed_schema_0 } from './threads/threads' ;
86import * as Shared from '../shared' ;
97import * as MessagesAPI from './threads/messages' ;
8+ import * as ThreadsAPI from './threads/threads' ;
109import * as RunsAPI from './threads/runs/runs' ;
1110import * as StepsAPI from './threads/runs/steps' ;
1211import { CursorPage , type CursorPageParams } from '../../pagination' ;
@@ -1179,7 +1178,7 @@ export interface AssistantCreateParams {
11791178 * a list of file IDs, while the `file_search` tool requires a list of vector store
11801179 * IDs.
11811180 */
1182- tool_resources ?: unnamed_schema_0 | null ;
1181+ tool_resources ?: AssistantCreateParams . ToolResources | null ;
11831182
11841183 /**
11851184 * A list of tool enabled on the assistant. There can be a maximum of 128 tools per
@@ -1205,13 +1204,13 @@ export namespace AssistantCreateParams {
12051204 * a list of file IDs, while the `file_search` tool requires a list of vector store
12061205 * IDs.
12071206 */
1208- export interface unnamed_schema_0 {
1209- code_interpreter ?: ThreadsAPI . unnamed_schema_0 . CodeInterpreter ;
1207+ export interface ToolResources {
1208+ code_interpreter ?: ToolResources . CodeInterpreter ;
12101209
1211- file_search ?: ThreadsAPI . unnamed_schema_0 . FileSearch ;
1210+ file_search ?: ToolResources . FileSearch ;
12121211 }
12131212
1214- export namespace unnamed_schema_0 {
1213+ export namespace ToolResources {
12151214 export interface CodeInterpreter {
12161215 /**
12171216 * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made
@@ -1236,7 +1235,7 @@ export namespace AssistantCreateParams {
12361235 * with file_ids and attach it to this assistant. There can be a maximum of 1
12371236 * vector store attached to the assistant.
12381237 */
1239- vector_stores ?: Array < ThreadsAPI . FileSearch . VectorStore > ;
1238+ vector_stores ?: Array < FileSearch . VectorStore > ;
12401239 }
12411240
12421241 export namespace FileSearch {
@@ -1245,7 +1244,7 @@ export namespace AssistantCreateParams {
12451244 * The chunking strategy used to chunk the file(s). If not set, will use the `auto`
12461245 * strategy.
12471246 */
1248- chunking_strategy ?: Auto | Static ;
1247+ chunking_strategy ?: VectorStore . Auto | VectorStore . Static ;
12491248
12501249 /**
12511250 * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to
@@ -1278,7 +1277,7 @@ export namespace AssistantCreateParams {
12781277 }
12791278
12801279 export interface Static {
1281- static : ThreadsAPI . Static . Static ;
1280+ static : Static . Static ;
12821281
12831282 /**
12841283 * Always `static`.
0 commit comments