Currently, when you using non llm tool the only method called will be ask. And it will receive 2 arguments (params and thread id).
It would be nice if tool can specify multiple functions and either
- Having some argument in
ask to figure out which one is called
- Perform automatic routing to class function
Example
class FnTool extends Tool {
constructor() {
super({
llm: false,
parentTools: [/* describe both functions here */]
})
}
storeList(items) {
// ..
}
getList() {
return ['apple', 'banana']
}
}
Currently, when you using non llm tool the only method called will be
ask. And it will receive 2 arguments (params and thread id).It would be nice if tool can specify multiple functions and either
askto figure out which one is calledExample