feat(hook): add tool.definition hook for plugins to modify tool description and parameters (#4956)
This commit is contained in:
parent
b06afd657d
commit
1608565c80
2 changed files with 13 additions and 1 deletions
|
|
@ -224,4 +224,8 @@ export interface Hooks {
|
|||
input: { sessionID: string; messageID: string; partID: string },
|
||||
output: { text: string },
|
||||
) => Promise<void>
|
||||
/**
|
||||
* Modify tool definitions (description and parameters) sent to LLM
|
||||
*/
|
||||
"tool.definition"?: (input: { toolID: string }, output: { description: string; parameters: any }) => Promise<void>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue