mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 15:01:26 +00:00
Fix README: tools are AgentTool, not extending Tool
This commit is contained in:
parent
b939f2b529
commit
93f8d6e659
1 changed files with 1 additions and 1 deletions
|
|
@ -270,7 +270,7 @@ const agent = new Agent({
|
||||||
|
|
||||||
## Tools
|
## Tools
|
||||||
|
|
||||||
Tools extend `Tool` from pi-ai with an `execute` function:
|
Define tools using `AgentTool`:
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { Type } from "@sinclair/typebox";
|
import { Type } from "@sinclair/typebox";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue