Skip to main content

OmniCoreAgent

Constructor

agent_config takes the agent settings, and telemetry_config the telemetry settings.

Methods

abandon_run

Close a run this agent did not finish itself.

budget_status

Every budget covering a run, with its limit and what it has spent.

cleanup

Clean up resources

cleanup_mcp_servers

Clean up MCP servers without removing the agent and the config

clear_session_history

Clear session history for a specific session ID or all history

connect_mcp_servers

Connect to MCP servers if MCP tools are configured

deny_budget

Refuse a waiting run’s budget: resume(run_id) ends it cleanly.

export_trace

Export a telemetry trace through configured or supplied exporters.

generate_run_id

Generate a unique run ID inside a session.

generate_session_id

Generate a new session ID for the session

get_latest_trace

No description in the code yet.

get_memory_store_type

Get the current memory store type.

get_metrics

Get the cumulative metrics for the lifecycle of the agent.

get_run

A run’s durable record, or None if it has none.

get_run_trajectory

One durable run as a single story across its trace segments (each pause, resume, recovery, or new attempt is a segment), with totals summed over the segments. The run’s saved conversation is not included.

get_session_history

Get session history for a specific session ID

get_telemetry_events_after

No description in the code yet.

get_telemetry_stream_cursor

No description in the code yet.

get_telemetry_trace

No description in the code yet.

get_trace

Return telemetry trace data.

get_trace_family

Return all locally stored traces linked to one execution boundary.

get_trajectory

Return one run as an ordered trajectory, from request to final answer.

grant_budget

Add to the budget a waiting run ran out of, so it can carry on.

initialize

Initialize the agent resources (memory, config, tools)

interrupt

Ask a running run to stop at its next step boundary; it becomes interrupted and resume continues it.

list_all_available_tools

List all available tools (MCP and local)

list_runs

Run records, oldest first, optionally for one session or status.

list_telemetry_traces

No description in the code yet.

prune_telemetry

Apply the configured trace and payload retention now.

prune_telemetry_payloads

Prune payloads while retaining references in currently stored traces.

read_telemetry_payload

Read a redacted oversized payload referenced by telemetry.

record_outcome

Record what a run turned out to be worth, whenever that is known.

resolve_approval

Decide an approval a run is waiting for.

resume

Continue a run: one waiting for approval once every approval is decided (see resolve_approval), or one whose process stopped (its heartbeat is older than run_lease_seconds). Completed tool calls never run again.

run

Run the agent with a query and optional session ID.

steer

Send a message to a run; it arrives as a user message at the run’s next step boundary (or when a waiting or interrupted run resumes).

stream

Stream live intermediate text and one terminal result from the same run loop.

stream_telemetry_after

No description in the code yet.

switch_memory_store

Switch to a different memory store type.

telemetry_retention_status

Report the retention policy and the most recent cleanup results.

training_records

Finished runs as one record each, for a trainer or an evaluator.