agentruntime

package
v0.10.0-rc13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpenClaw Runtime = "openclaw"
	Hermes   Runtime = "hermes"

	DefaultDomain     = "obol.stack"
	DefaultInstanceID = "obol-agent"
)
View Source
const RemoteSignerChartVersion = "0.3.2"

RemoteSignerChartVersion is the single source of truth for the `remote-signer` Helm chart pin used by both Hermes and OpenClaw deployments. It MUST be updated as a single edit; bumping it here updates every consumer in lockstep.

Chart 0.3.2 ships remote-signer image `v0.3.0`, which emits canonical Ethereum recovery-id signatures (`v=27/28`) from `/sign/.../message`, `/sign/.../typed-data`, and `/sign/.../hash`. Earlier images returned `v=0/1` (alloy y-parity), which was rejected by EIP-712 / ERC-3009 verifiers like USDC `transferWithAuthorization` and forced the buy.py caller to renormalize.

renovate: datasource=helm depName=remote-signer registryUrl=https://obolnetwork.github.io/helm-charts/

View Source
const SoulTemplate = `` /* 1460-byte string literal not displayed */

SoulTemplate is the default system-prompt scaffold for sub-agents.

It is shipped with the binary, not the Agent CRD, so we can ratchet guardrails forward without bumping the CRD schema. The CRD only carries the operator's objective text, which is interpolated at the {{ .OperatorObjective }} placeholder.

Lifecycle: written exactly once by the seeder when SOUL.md does not yet exist on the agent's data PVC. After that the agent owns the file and can rewrite it freely.

Variables

This section is empty.

Functions

func BuildExecArgs added in v0.10.0

func BuildExecArgs(runtime Runtime, id string, argv []string, withTTY bool) []string

BuildExecArgs returns the kubectl argv for `kubectl exec` into the agent pod identified by (runtime, id), running argv inside it. Pure / testable — no side effects. argv is the full in-pod command vector; argv[0] is the binary (e.g. "python3" or a runtime CLI path), argv[1:] its args.

withTTY toggles the `-t` flag; callers usually pass shouldRequestTTY().

func CollectHostnames

func CollectHostnames(cfg *config.Config, include ...DeploymentRef) []string

func DashboardHostname

func DashboardHostname(runtime Runtime, id string) string

func DataRoot

func DataRoot(cfg *config.Config, runtime Runtime, id string) string

func DeploymentPath

func DeploymentPath(cfg *config.Config, runtime Runtime, id string) string

func ExecInPod added in v0.10.0

func ExecInPod(cfg *config.Config, runtime Runtime, id string, argv []string) error

ExecInPod runs argv inside the agent pod identified by (runtime, id) using the bundled kubectl binary. Stdin/stdout/stderr are wired to the host TTY.

On non-zero exit from the in-pod command, ExecInPod calls os.Exit with the same status to preserve exit codes for shell scripting. A nil return means the command exited 0.

func HomePath

func HomePath(cfg *config.Config, runtime Runtime, id string) string

func Hostname

func Hostname(runtime Runtime, id string) string

func Hostnames

func Hostnames(runtime Runtime, id string) []string

func KeystoreVolumePath

func KeystoreVolumePath(cfg *config.Config, runtime Runtime, id string) string

func ListInstanceIDs

func ListInstanceIDs(cfg *config.Config, runtime Runtime) ([]string, error)

func MustDefaultDeploymentPath

func MustDefaultDeploymentPath(cfg *config.Config) string

func Namespace

func Namespace(runtime Runtime, id string) string

func RenderSoul added in v0.10.0

func RenderSoul(objective string) (string, error)

RenderSoul substitutes the operator's objective into the soul template. An empty objective renders the template verbatim — including a literal blank line where the objective would be — so callers can decide whether to enforce non-empty in their CRD validation.

func ResolveInstance

func ResolveInstance(cfg *config.Config, runtime Runtime, args []string) (id string, remaining []string, err error)

func ResolveSingleDefaultNamespace

func ResolveSingleDefaultNamespace(cfg *config.Config, runtime Runtime) (string, error)

func SkillsPath

func SkillsPath(cfg *config.Config, runtime Runtime, id string) string

func WorkspacePath

func WorkspacePath(cfg *config.Config, runtime Runtime, id string) string

Types

type DeploymentRef

type DeploymentRef struct {
	Runtime Runtime
	ID      string
}

type Descriptor

type Descriptor struct {
	Runtime       Runtime
	DisplayName   string
	ServiceName   string
	ConfigMapName string
	DataPVCName   string
	HomeDir       string
	DefaultPort   int
}

func Describe

func Describe(runtime Runtime) Descriptor

type Runtime

type Runtime string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL