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

agent() API

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

Most Used

Ax.agent

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

FieldValue
Kindfunction
Ax conceptagent
API sectionAgents And RLM
FormAx.agent(signature, options)
ReturnsAxAgent

Important Options

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

Examples

Java
AxAgent helper = Ax.agent("query:string -> answer:string", Map.of());

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
Formnew AxAgent(signature, options)
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
Formnew AxMCPClient(transport, options)
ReturnsMCP client

Important Options

  • transport
  • client info
  • roots
  • tool overrides

Examples

Java
AxMCPClient client = new AxMCPClient(transport);

Full reference

AxMCPStreamableHTTPTransport

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

FieldValue
Kindtype
Ax conceptAxMCPStreamableHTTPTransport
API sectionMCP
Formnew AxMCPStreamableHTTPTransport(endpoint, options)
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
Formnew AxMCPStdioTransport(command, options)
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
Formnew AxProcessCodeRuntime(command, env)
ReturnsAxCodeRuntime

Important Options

  • command
  • env
  • cwd
  • timeout

Examples

Java
AxCodeRuntime runtime = new AxProcessCodeRuntime(List.of("node", "runtime-server.mjs"), Map.of());

Full reference

RuntimeCapabilities

Runtime capability envelope visible to the agent runtime policy.

FieldValue
Kindtype
Ax conceptRuntimeCapabilities
API sectionRuntime Profiles
Formnew AxRuntimeCapabilities()
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
FormAxRuntimeEnvelope
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 java --runtime-profiles javascript-quickjs
ReturnsAxCodeRuntime-compatible actor execution profile

Important Options

  • actor language: javascript
  • support mode: embedded
  • dependency mode: optional-classpath
  • environment gate: AXIR_QUICKJS4J_CP
  • environment gate: AXIR_QUICKJS4J_CP_FILE
  • environment gate: AXIR_QUICKJS4J_RESOLVE

Full reference

python-pyodide

Optional runtime profile for python actor code.

FieldValue
Kindruntime-profile
Ax conceptruntime-profile:python-pyodide
API sectionRuntime Profiles
Formtools/axir verify --targets java --runtime-profiles python-pyodide
ReturnsAxCodeRuntime-compatible actor execution profile

Important Options

  • actor language: python
  • support mode: process-adapter
  • dependency mode: optional-env
  • environment gate: AXIR_PYODIDE_RUNTIME_SERVER
  • environment gate: AXIR_PYODIDE_RESOLVE

Full reference

Full Reference

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

Docs