MCPcopy
hub / github.com/openai/openai-go / AssistantToolResources

Struct AssistantToolResources

betaassistant.go:233–243  ·  view source on GitHub ↗

A set of resources that are used by the assistant's tools. 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.

Source from the content-addressed store, hash-verified

231// a list of file IDs, while the `file_search` tool requires a list of vector store
232// IDs.
233type AssistantToolResources struct {
234 CodeInterpreter AssistantToolResourcesCodeInterpreter `json:"code_interpreter"`
235 FileSearch AssistantToolResourcesFileSearch `json:"file_search"`
236 // JSON contains metadata for fields, check presence with [respjson.Field.Valid].
237 JSON struct {
238 CodeInterpreter respjson.Field
239 FileSearch respjson.Field
240 ExtraFields map[string]respjson.Field
241 raw string
242 } `json:"-"`
243}
244
245// Returns the unmodified JSON received from the API
246func (r AssistantToolResources) RawJSON() string { return r.JSON.raw }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected