AgentTool class

Override the generated MCP tool identity for an entity or usecase.

@AgentTool(name: 'create_user', namespace: 'users', description: 'Create a new user')
@zorphy
abstract class $CreateUser { ... }

Constructors

AgentTool({String? name, String? namespace, String? description})
Creates an agent tool identity override.
const

Properties

description → String?
Optional description shown in the tool schema.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String?
Optional tool name override. When null, the class name is used.
final
namespace → String?
Optional namespace grouping for the tool (e.g. 'users').
final
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
toString() → String
A string representation of this object.
inherited

Operators

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