docs(sdk): add Task-Based Model Routing guide for route_task_to_model - #838
Merged
Merged
Conversation
Document the built-in route_task_to_model tool (ClassifyAndSwitchLLMTool) and the MetaProfile shapes it supports, and embed examples/01_standalone_sdk/59_route_task_to_model.py so the SDK's documented-examples check covers it.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
5 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of changes
Adds
sdk/guides/llm-task-routing.mdx, a guide for the built-inroute_task_to_modeltool (ClassifyAndSwitchLLMTool) introduced in OpenHands/software-agent-sdk#4287, and registers it under LLM Features indocs.json.The page covers:
MetaProfileshapes (structured classes and direct prompt) and the resolution order betweenactive_meta_profile, the inlinemeta_profile, and the meta-profile store;OpenHandsAgentSettings, including the need to register default tool implementations beforecreate_agent();examples/01_standalone_sdk/59_route_task_to_model.py, embedded in the auto-synced code block format.This example was previously undocumented, which fails the SDK's "Docs example" check on OpenHands/software-agent-sdk#5320. The embedded block matches the example as fixed in that PR.
I did not run the site locally. The code block was verified with
.github/scripts/sync_code_blocks.pyagainst the SDK checkout (no changes to this page), anddocs.jsonwas validated as JSON.