mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 06:04:40 +00:00
parent
961d3aacbc
commit
2668326e05
5 changed files with 162 additions and 13 deletions
|
|
@ -524,6 +524,11 @@ pi.on("tool_call", (event) => {
|
|||
|
||||
Fired after tool executes. **Can modify result.**
|
||||
|
||||
`tool_result` handlers chain like middleware:
|
||||
- Handlers run in extension load order
|
||||
- Each handler sees the latest result after previous handler changes
|
||||
- Handlers can return partial patches (`content`, `details`, or `isError`); omitted fields keep their current values
|
||||
|
||||
```typescript
|
||||
import { isBashToolResult } from "@mariozechner/pi-coding-agent";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue