terminus2 agent#343
Open
liujiangning30 wants to merge 5 commits into
Open
Conversation
- Replace terminal-bench-based wrapping with a thin adapter over harbor.agents.terminus_2.Terminus2; harbor's LiteLLM layer sets reraise=True, so auth/rate-limit errors surface instead of being swallowed by nested RetryError. - Bundle a lazy LocalSandboxEnvironment factory exposing harbor's BaseEnvironment via local subprocess/shutil — the adapter runs inside the lagent sandbox daemon, and lazy build keeps `import lagent.adapters` working without harbor on PYTHONPATH.
- Drop base_url/api_key from Terminus2Adapter.__init__; always use
self.proxy.url and sk-proxy-{session_id}. As a black-box adapter, an
explicit base_url/api_key alongside the proxy only muddies which endpoint
is actually used.
- Require the SessionClient proxy: setup() raises if it is missing, and the
whitebox (proxy is None) fallbacks in run_external_async / get_messages are
removed.
- Remove SessionClient.get_records; get_messages reads self.proxy._records
directly so the per-turn dedup logic stays in the adapter, not the proxy.
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.
No description provided.