mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 06:04:51 +00:00
Reorder execute params: (toolCallId, params, onUpdate, ctx, signal?)
Optional signal now at the end for cleaner API
This commit is contained in:
parent
4c9c453646
commit
19c4182c21
9 changed files with 15 additions and 15 deletions
|
|
@ -50,7 +50,7 @@
|
|||
- `ToolAPI` renamed to `CustomToolAPI`
|
||||
- `ToolContext` renamed to `CustomToolContext`
|
||||
- `ToolSessionEvent` renamed to `CustomToolSessionEvent`
|
||||
- `execute()` signature changed: now takes `(toolCallId, params, signal, onUpdate, ctx: CustomToolContext)`
|
||||
- `execute()` signature changed: now takes `(toolCallId, params, onUpdate, ctx: CustomToolContext, signal?)`
|
||||
- `onSession()` signature changed: now takes `(event: CustomToolSessionEvent, ctx: CustomToolContext)`
|
||||
- `CustomToolSessionEvent` simplified: only has `reason` and `previousSessionFile` (use `ctx.sessionManager.getBranch()` to get entries)
|
||||
- `CustomToolContext` provides `sessionManager: ReadonlySessionManager`, `modelRegistry`, and `model`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue