Multi-Agent Set Up Questions

Has anyone used a multi agent setup where a sub agent has a tool like the weather tool? I have a weather tool that gets a result for the current weather. I have a weather prompt that uses this tool.

if I call the weather prompt directly it uses the tool, but when I have some form of triage agent in front I just get results like
{
    "response": "OK. I've passed your request to weatherPrompt.  Is there anything else?\n"
}


const response = await ai.generate({
    prompt: `
          Give the user the weather from the weather prompt for location ${location}.
          `,
    tools: [weatherPrompt],
  });


just returns
{
    "response": "The current weather in Amsterdam, The Netherlands is transferred to weatherPrompt.\n"
}
Was this page helpful?