You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Certain tool names do not have "intuitive" names which may lead an LLM agent to not perform the right tool call.
Describe the solution you'd like
An abstraction on defined core functionalities that serves as an interface between the model and discrete tools. E.g. internet_search or get_weather_forecast
Then, for example, a developer can contribute a google tool or duckduckgo tool or brave tool that slots into internet_search
Describe alternatives you've considered
NA
Additional context
Related issue: Optimizing OpenMeteo #110
The text was updated successfully, but these errors were encountered:
A tool in the framework is a class with a name (e.g., WikipediaTool) and a property name (e.g., Wikipedia).
The second one goes to the system prompt. We can just rename the internal property for all existing tools to satisfy requirements.
the agent can use only one tool from a given "group" (which may or might not be desired).
the user will not know (from the messages) which tool (real class) is being used (fortunately, the emitter events information about the original class).
we will "group" similar tools
or
We just let the user change the tool name to the desired one.
Example of creating a simple tool from a complex tool
constcomplexWeatherTool=newOpenMeteoTool();constsimpleWeatherTool=newDynamicTool({name: "get_current_weather",description: "Retrieves current weather in a given destination.",inputSchema: z.object({location: z.string().min(1).describe("Example: New York"),}),asynchandler(input){const{ result }=awaitcomplexWeatherTool.run({location: {name: input.location},start_date: newDate().toISOString(),temperature_unit: "celsius",});returnnewStringToolOutput(`Current weather is ${result.current!.temperature_2m}°C`);},});
Is your feature request related to a problem? Please describe.
Certain tool names do not have "intuitive" names which may lead an LLM agent to not perform the right tool call.
Describe the solution you'd like
An abstraction on defined core functionalities that serves as an interface between the model and discrete tools. E.g.
internet_search
orget_weather_forecast
Then, for example, a developer can contribute a google tool or duckduckgo tool or brave tool that slots into
internet_search
Describe alternatives you've considered
NA
Additional context
Related issue: Optimizing OpenMeteo #110
The text was updated successfully, but these errors were encountered: