Repository navigation
Add RuntimeConfig three-toggle switch layer - #213
Closed
H-maximedelpit wants to merge 11 commits into
Closed
H-maximedelpit wants to merge 11 commits into
H-maximedelpit wants to merge 11 commits into
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Task-8 audit: every local-mode test exercises a public entry point and guards a likely regression; no scaffolding to prune. Only change is an isort fix in test_client_local.py flagged by ruff. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
# Conflicts: # pyproject.toml # src/hai_agents/client.py # tests/conftest.py # uv.lock
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.
Fork of PR185 (local mode / Client.local) — opened as a Draft so it does not touch that PR's own branch or implementation.
Adds
hai_agents_runtime: a small, hand-written sibling package to pick where each of the three parts of an agent task runs — agent, environment, model — and get an ordinaryClientback. InstantiateRuntimeConfig; presetscloud()/local()are shorthand; override any toggle with.with_().Inference.cloud()) or a model you host by URL (Inference.self_hosted(url)).Client()(unchanged). User-device agent ->Client.local()(from [claude] Local mode: Client.local() + LocalRuntime (generated from sdk-codegen) #185), with a self-hosted model endpoint handed to the runtime at spawn and the cloud key withheld.local-agent(compiled binary, public) /local-agent-src(source, internal via private CodeArtifact). A user_device config fails at construction with a clear message if neither is installed.Builds on #185 (Client.local); the runtime spawn_env hook is hcompai/agent_platform#1452. Regen-proof hand-written sibling, not inside
hai_agents. Draft — experimental, interface may change.