ToolResources class

Resources available to an assistant's tools.

Different tools require different resources:

  • Code interpreter needs file IDs
  • File search needs vector store IDs
Annotations
  • @immutable

Constructors

ToolResources({CodeInterpreterResources? codeInterpreter, FileSearchResources? fileSearch})
Creates a ToolResources.
const
ToolResources.fromJson(Map<String, dynamic> json)
Creates a ToolResources from JSON.
factory

Properties

codeInterpreter CodeInterpreterResources?
Resources for the code interpreter tool.
final
fileSearch FileSearchResources?
Resources for the file search tool.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override