Skip to content

terminus2 agent#343

Open
liujiangning30 wants to merge 5 commits into
InternLM:v1.0.0from
liujiangning30:ljn/terminus2-agent
Open

terminus2 agent#343
liujiangning30 wants to merge 5 commits into
InternLM:v1.0.0from
liujiangning30:ljn/terminus2-agent

Conversation

@liujiangning30

Copy link
Copy Markdown
Collaborator

No description provided.

liujiangning30 and others added 5 commits June 12, 2026 16:07
- 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.
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.

1 participant