agent() API Agent, runtime, context, skill, memory, MCP, and RLM APIs. python api api/agent packages/python/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(signature, config=None)
ReturnsAxAgent

Important Options

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

Examples

Python
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(signature, config=None)
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(transport, options=None)
ReturnsMCP client

Important Options

  • transport
  • client info
  • roots
  • tool overrides

Examples

Python
client = AxMCPClient(transport)

Full reference

AxMCPStreamableHTTPTransport

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

FieldValue
Kindtype
Ax conceptAxMCPStreamableHTTPTransport
API sectionMCP
FormAxMCPStreamableHTTPTransport(endpoint, options=None)
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(command, options=None)
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(command, env=None)
ReturnsAxCodeRuntime

Important Options

  • command
  • env
  • cwd
  • timeout

Examples

Python
runtime = ProcessCodeRuntime(["node", "runtime-server.mjs"])

Full reference

RuntimeCapabilities

Runtime capability envelope visible to the agent runtime policy.

FieldValue
Kindtype
Ax conceptRuntimeCapabilities
API sectionRuntime Profiles
FormRuntimeCapabilities(...).to_dict()
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.from_result(...)
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 python --runtime-profiles javascript-quickjs
ReturnsAxCodeRuntime-compatible actor execution profile

Important Options

  • actor language: javascript
  • support mode: process-adapter
  • dependency mode: optional-env
  • 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 python --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 Python reference. This page highlights the agent symbols most relevant to everyday use.

Docs