Skip to content

docs(sdk): add Route Task to Model guide - #824

Open
juanmichelini wants to merge 1 commit into
mainfrom
route-task-to-model-example
Open

juanmichelini wants to merge 1 commit into
mainfrom
route-task-to-model-example

Conversation

@juanmichelini

Copy link
Copy Markdown
Contributor

Summary

Adds a new SDK guide, Route Task to Model, documenting the route_task_to_model tool (ClassifyAndSwitchLLMTool) introduced in software-agent-sdk PR OpenHands/software-agent-sdk#4287.

The guide covers both meta-profile shapes the tool supports:

  • Structured classes{description, model} rows; classifier returns a class index.
  • Direct promptprompt_template + model_table; classifier returns the model name as JSON.

It references the new ready-to-run example examples/01_standalone_sdk/59_route_task_to_model.py and is registered in the "LLM Features" group in docs.json (after "Model Routing").

This unblocks the check-examples CI check on the agent-sdk PR (the check requires each example to be referenced from a docs .mdx file).

AI disclosure: This PR was created by an AI agent (OpenHands) on behalf of @juanmichelini.

Checklist

  • New .mdx guide added under sdk/guides/
  • Registered in docs.json
  • Example code block auto-syncs from the agent-sdk repo
  • Follows the format of existing guides (e.g., llm-routing.mdx)

Document the route_task_to_model tool (ClassifyAndSwitchLLMTool) and its
meta-profile shapes (structured classes + direct prompt), referencing the new
examples/01_standalone_sdk/59_route_task_to_model.py in software-agent-sdk PR
#4287.

Co-authored-by: openhands <openhands@all-hands.dev>
@mintlify

mintlify Bot commented Sep 22, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
all-hands-ai 🟢 Ready View Preview Sep 22, 2026, 11:30 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

This branch was successfully deployed

1 active deployment
staging bf072266 Deployed Sep 22, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants