feat: add ~agent@1.0, ~inference@1.0 and ~sev_gpu@1.0 devices#834
Open
jax-cn wants to merge 1 commit into
Open
feat: add ~agent@1.0, ~inference@1.0 and ~sev_gpu@1.0 devices#834jax-cn wants to merge 1 commit into
jax-cn wants to merge 1 commit into
Conversation
## ~inference@1.0 (src/dev_inference.erl) OpenAI-compatible inference gateway routing completion requests to a local or remote LLM backend via relay@1.0. Backend peer, path, and API key are read from node opts at runtime (agent-api-peer, agent-api-path, agent-api-key). ## ~agent@1.0 (src/dev_agent.erl) ReAct-loop agent device. Calls LLM through inference@1.0, parses tool_calls, executes built-in tools, feeds results back, repeats until the model emits a final answer. Built-in tools: http_request, lookup_data, search_messages, get_arweave_tx, bundle_item. ## ~sev_gpu@1.0 (src/dev_sev_gpu.erl + native/dev_sev_gpu_nif/) SEV GPU device with NIF support for GPU-backed confidential compute. Supporting changes: - src/hb_opts.erl: register all three devices; add /v1/.* route - src/hb_http.erl, src/hb_http_server.erl: HTTP layer improvements - src/dev_meta.erl, src/dev_codec_http_auth.erl: supporting updates - src/hb_app.erl: app startup updates - rebar.config, Makefile: build support for NIF - docs/devices/agent-at-1-0.md: device reference - docs/dev_agent-testing.md: testing guide - scripts/agent-test.lua, scripts/e2e-test.sh: test scripts - mkdocs.yml: nav entry for ~agent@1.0 - .gitignore: ignore .agents/, dev_sev_gpu logs
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
This PR adds three new HyperBEAM devices along with supporting infrastructure.
~inference@1.0 (
src/dev_inference.erl)An OpenAI-compatible inference gateway that routes completion requests to a local or remote LLM backend via
relay@1.0.Key opts read at runtime:
agent-api-peerhttp://localhost:8080agent-api-path/v1/chat/completions)agent-api-keyWorks unchanged with local
llama.cpp, OpenRouter, OpenAI, or any OpenAI-compatible endpoint.~agent@1.0 (
src/dev_agent.erl)A ReAct-loop agent device. Iteratively:
inference@1.0/completionstool_callsfrom the responsetoolrole messagesBuilt-in tools:
http_request,lookup_data,search_messages,get_arweave_tx,bundle_itemAll tools, the LLM call, and system prompt are overridable via
Runkey parameters.Architecture
~sev_gpu@1.0 (
src/dev_sev_gpu.erl+native/dev_sev_gpu_nif/)SEV GPU device with NIF support for GPU-backed confidential compute.
Supporting changes
src/hb_opts.erl— register all three devices; add/v1/.*→localhost:8080route;inference_optsdefaultssrc/hb_http.erl/src/hb_http_server.erl— HTTP layer improvementssrc/dev_meta.erl,src/dev_codec_http_auth.erl,src/hb_app.erl— supporting updatesrebar.config/Makefile— build support for SEV GPU NIFdocs/devices/agent-at-1-0.md— full device referencedocs/dev_agent-testing.md— testing / debugging guidescripts/agent-test.lua,scripts/e2e-test.sh— test scriptsmkdocs.yml— add~agent@1.0to Devices nav.gitignore— ignore.agents/, dev_sev_gpu logs