CodeExecutionBuiltInTool class

Code execution built-in tool.

Inheritance
Annotations
  • @immutable

Constructors

CodeExecutionBuiltInTool({String? type, CacheControlEphemeral? cacheControl, List<String>? allowedCallers, bool? deferLoading, bool? strict})
Creates a CodeExecutionBuiltInTool.
const
CodeExecutionBuiltInTool.fromJson(Map<String, dynamic> json)
Creates a CodeExecutionBuiltInTool from JSON.
factory

Properties

allowedCallers List<String>?
Allowed caller types.
final
cacheControl CacheControlEphemeral?
Cache control for this tool definition.
final
deferLoading bool?
Whether to defer loading until requested via tool reference.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strict bool?
Whether strict schema validation is enabled.
final
type String
Tool type version.
final

Methods

copyWith({String? type, Object? cacheControl = unsetCopyWithValue, Object? allowedCallers = unsetCopyWithValue, Object? deferLoading = unsetCopyWithValue, Object? strict = unsetCopyWithValue}) CodeExecutionBuiltInTool
Creates a copy with replaced values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
override
toString() String
A string representation of this object.
override

Operators

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