agent-core / Exports / IToolWithEventService
Interface: IToolWithEventService<TParameters, TResult>
Runtime tool instance contract used by Robota internals.
Tools passed into Agent configuration must support EventService injection so Robota can emit unified tool lifecycle events.
Type parameters
| Name | Type |
|---|---|
TParameters | TToolParameters |
TResult | IToolResult |
Hierarchy
IToolContract<TParameters,TResult>↳
IToolWithEventService
Implemented by
Table of contents
Properties
Methods
Properties
schema
• Readonly schema: IToolSchema
Inherited from
Defined in
packages/agent-core/src/abstracts/abstract-tool.ts:93
Methods
execute
▸ execute(parameters, context): Promise<TResult>
Parameters
| Name | Type |
|---|---|
parameters | TParameters |
context | IToolExecutionContext |
Returns
Promise<TResult>
Inherited from
Defined in
packages/agent-core/src/abstracts/abstract-tool.ts:94
validate
▸ validate(parameters): boolean
Parameters
| Name | Type |
|---|---|
parameters | TParameters |
Returns
boolean
Inherited from
Defined in
packages/agent-core/src/abstracts/abstract-tool.ts:95
validateParameters
▸ validateParameters(parameters): IParameterValidationResult
Parameters
| Name | Type |
|---|---|
parameters | TParameters |
Returns
Inherited from
IToolContract.validateParameters
Defined in
packages/agent-core/src/abstracts/abstract-tool.ts:96
getDescription
▸ getDescription(): string
Returns
string
Inherited from
Defined in
packages/agent-core/src/abstracts/abstract-tool.ts:97
getName
▸ getName(): string
Returns
string
Inherited from
Defined in
packages/agent-core/src/abstracts/abstract-tool.ts:98
setEventService
▸ setEventService(eventService): void
Parameters
| Name | Type |
|---|---|
eventService | undefined | IEventService |
Returns
void