Skip to main content
FitForJev
Pattern catalog

Pattern · tool-router

Agent tool / skill router

Keywords: tool, agent, skill, function call, route to, which api

Jev questions

  • selected_tool · choice

    Which tool should handle this request? (router supports up to 182 registered tools)

  • tool_needed · noul

    Does this request need a tool?

Who owns what

Code

  • Validate tool arguments against JSON schema in code
  • Fall back to a direct answer on none_of_above in code

Jev

  • selected_tool as Choice
  • tool_needed as Noul

LLM

  • Draft the final user-facing message from tool output

Guard: if (!tool_needed) answerDirectly(); else callTool(selected_tool);