ToolSpec class
The specification of a LangChain tool without the actual implementation.
- Implementers
Constructors
Properties
- description → String
-
Used to tell the model how/when/why to use the tool.
You can provide few-shot examples as a part of the description.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
inputJsonSchema
→ Map<
String, dynamic> -
Schema to parse and validate tool's input arguments.
Following the JSON Schema specification.
final
- name → String
-
The unique name of the tool that clearly communicates its purpose.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strict → bool
-
Whether to enable strict schema adherence when generating the tool call.
If set to true, the model will follow the exact schema defined in the
inputJsonSchema field.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the tool spec to a JSON-serializable map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
covariant ToolSpec other) → bool -
The equality operator.
override