Tool<I, O> class

Inheritance

Constructors

Tool({required String name, required String? description, required InternalActionFn<I, O, void, void> fn, SchemanticType<I>? inputSchema, SchemanticType<O>? outputSchema, Map<String, dynamic>? metadata})

Properties

actionType String
getter/setter pairinherited
description String?
getter/setter pairinherited
fn → InternalActionFn<I, O, void, void>
finalinherited
hashCode int
The hash code for this object.
no setterinherited
initSchema ↔ SchemanticType<void>?
getter/setter pairinherited
inputSchema ↔ SchemanticType<I>?
getter/setter pairinherited
metadata Map<String, dynamic>
getter/setter pairinherited
name String
getter/setter pairinherited
outputSchema ↔ SchemanticType<O>?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
streamSchema ↔ SchemanticType<void>?
getter/setter pairinherited

Methods

call(I? input, {StreamingCallback<void>? onChunk, Map<String, dynamic>? context, Stream<I>? inputStream, void init}) Future<O>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(I? input, {StreamingCallback<void>? onChunk, Map<String, dynamic>? context, Stream<I>? inputStream, void init}) Future<RunResult<O>>
inherited
runRaw(dynamic input, {StreamingCallback<void>? onChunk, Map<String, dynamic>? context, Stream<I>? inputStream, dynamic init}) Future<RunResult<O>>
inherited
stream(I? input, {Map<String, dynamic>? context, Stream<I>? inputStream, void init}) ActionStream<void, O>
inherited
streamBidi({Stream<I>? inputStream, StreamingCallback<void>? onChunk, Map<String, dynamic>? context, void init}) → BidiActionStream<void, O, I>
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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