docs(sdk): add Route Task to Model guide - #824
Open
juanmichelini wants to merge 1 commit into
Open
juanmichelini wants to merge 1 commit into
juanmichelini wants to merge 1 commit into
Conversation
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>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
1 task
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
Adds a new SDK guide, Route Task to Model, documenting the
route_task_to_modeltool (ClassifyAndSwitchLLMTool) introduced in software-agent-sdk PR OpenHands/software-agent-sdk#4287.The guide covers both meta-profile shapes the tool supports:
{description, model}rows; classifier returns a class index.prompt_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.pyand is registered in the "LLM Features" group indocs.json(after "Model Routing").This unblocks the
check-examplesCI check on the agent-sdk PR (the check requires each example to be referenced from a docs.mdxfile).AI disclosure: This PR was created by an AI agent (OpenHands) on behalf of @juanmichelini.
Checklist
.mdxguide added undersdk/guides/docs.jsonllm-routing.mdx)