agent() API Agent, runtime, context, skill, memory, MCP, and RLM APIs. rust api api/agent packages/rust/axir-api.json api agent() API

agent() API

Agent, RLM runtime, context, memory, skill, MCP, and delegation APIs.

Most Used

agent

Create an AxAgent from a signature and agent/runtime options.

FieldValue
Kindfunction
Ax conceptagent
API sectionAgents And RLM
Formagent(spec: &str)
ReturnsAxResult

Important Options

  • name
  • description
  • runtime
  • maxSteps
  • context fields
  • discovery
  • recall
  • functions

Examples

Rust
let helper = agent("query:string -> answer:string")?;

Full reference

AxAgent

RLM agent with Core-owned envelopes, state, traces, discovery, recall, delegation, and final typed responses.

FieldValue
Kindtype
Ax conceptAxAgent
API sectionAgents And RLM
FormAxAgent
Returnsagent program

Important Options

  • executor model
  • runtime
  • policy
  • context
  • optimizer metadata

Full reference

AxMCPClient

MCP client that lists tools/prompts/resources and converts MCP tools to Ax functions.

FieldValue
Kindtype
Ax conceptAxMCPClient
API sectionMCP
FormAxMCPClient::new(transport, options)
ReturnsMCP client

Important Options

  • transport
  • client info
  • roots
  • tool overrides

Examples

Rust
let client = AxMCPClient::new(transport, json!({}));

Full reference

AxMCPStreamableHTTPTransport

Streamable HTTP transport with session headers, OAuth options, and SSRF protection.

FieldValue
Kindtype
Ax conceptAxMCPStreamableHTTPTransport
API sectionMCP
FormAxMCPStreamableHTTPTransport
ReturnsMCP transport

Important Options

  • endpoint
  • headers
  • OAuth
  • SSRF protection

Full reference

AxMCPStdioTransport

Stdio transport with JSON-RPC framing for local MCP servers.

FieldValue
Kindtype
Ax conceptAxMCPStdioTransport
API sectionMCP
FormAxMCPStdioTransport
ReturnsMCP transport

Important Options

  • command
  • args
  • env

Full reference

Advanced / internals / full reference

ProcessCodeRuntime

Process/JSONL runtime adapter for actor-code sessions and runtime protocol tests.

FieldValue
Kindtype
Ax conceptProcessCodeRuntime
API sectionRuntime Profiles
FormProcessCodeRuntime::new(command)
ReturnsAxCodeRuntime

Important Options

  • command
  • env
  • cwd
  • timeout

Examples

Rust
let runtime = ProcessCodeRuntime::new(vec!["node".into(), "runtime-server.mjs".into()]);

Full reference

RuntimeCapabilities

Runtime capability envelope visible to the agent runtime policy.

FieldValue
Kindtype
Ax conceptRuntimeCapabilities
API sectionRuntime Profiles
FormRuntimeCapabilities
Returnscapability record

Important Options

  • language
  • snapshot
  • patch
  • abort
  • usage instructions

Full reference

RuntimeEnvelope

Actor primitive envelope for final, clarification, discovery, recall, used, guidance, and runtime results.

FieldValue
Kindtype
Ax conceptRuntimeEnvelope
API sectionRuntime Profiles
FormRuntimeEnvelope
Returnsruntime envelope

Important Options

  • type
  • args
  • result
  • error

Full reference

javascript-quickjs

Optional runtime profile for javascript actor code.

FieldValue
Kindruntime-profile
Ax conceptruntime-profile:javascript-quickjs
API sectionRuntime Profiles
Formtools/axir verify --targets rust --runtime-profiles javascript-quickjs
ReturnsAxCodeRuntime-compatible actor execution profile

Important Options

  • actor language: javascript
  • support mode: embedded
  • dependency mode: optional-feature
  • feature gate: runtime-quickjs

Full reference

Full Reference

Open the full Rust reference. This page highlights the agent symbols most relevant to everyday use.

Docs