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.
| 231 | // a list of file IDs, while the `file_search` tool requires a list of vector store |
| 232 | // IDs. |
| 233 | type 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 |
| 246 | func (r AssistantToolResources) RawJSON() string { return r.JSON.raw } |
nothing calls this directly
no outgoing calls
no test coverage detected