AssistantTool class sealed

A tool that an assistant can use.

Tools extend the assistant's capabilities beyond text generation.

Implementers

Constructors

AssistantTool.fromJson(Map<String, dynamic> json)
Creates an AssistantTool from JSON.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
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.
inherited

Operators

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

Static Methods

codeInterpreter() AssistantTool
Creates a code interpreter tool.
fileSearch({int? maxNumResults, FileSearchRankingOptions? rankingOptions}) AssistantTool
Creates a file search tool.
function({required String name, String? description, Map<String, dynamic>? parameters, bool? strict}) AssistantTool
Creates a function tool.