Repository navigation
Offer connections as tools sized to the answering model, shortened to fit - #282
Merged
Merged
Conversation
… fit The connection tools' budget came from the resident model's window, not the answer tier's, so a cloud answering model (glm-5.3) was left 4000 chars and Linear's 76 tools went to the planner. Size it from the answer tier's model, and when the definitions still don't fit, shorten them (brief, then bare) instead of dropping them, so the model decides when to call a connection as it does for web and document tools.
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.
Problem
With a cloud answering model (glm-5.3), a Linear request still went through the orchestrator instead of the model calling the tools itself:
offered_connection_toolssized the budget fromget_max_context_tokens(), the resident model's window, not the answering model's, so it hit the 4000-char floor.Change
get_response_max_context_tokens(Some(ANSWER_TIER)).Testing
cargo test --lib connection_tools).test_client_toolsintegration tests not run locally (out of disk); left to CI.