LiyaEngine Docs
Platform

Agent Orchestration

Multi-step execution, tool calls, and retry — handled inside the engine, not in your application code.

Dashboard

The orchestrator runs inside the engine on every intent call — invisible to callers. It decides whether to use single-shot or multi-step agentic execution, which tools to invoke, and how many reasoning steps to take. You call an intent; you never manage prompts, tool schemas, or agent loops directly.

What the engine handles

Automatic mode selection

Inspects intent complexity and routes to single-shot or multi-step execution automatically.

Managed tool registry

Tools are pre-registered per domain — DB lookups, document retrieval, scoring functions, external APIs.

Built-in error recovery

Retry logic, exponential backoff, and fallback paths are handled at the engine layer.

Full execution trace

Every call returns steps taken, tool calls made, latency per step, and agent mode used.

Agent Runtime API

Beyond per-intent orchestration, you can define standing agents — configured entities with their own capabilities, tools, and memory — and run them directly via the Agent Runtime API.

GET    /dashboard/agent-runtime                    # list agents
POST   /dashboard/agent-runtime                     # create an agent
GET    /dashboard/agent-runtime/:agentId             # get an agent
PATCH  /dashboard/agent-runtime/:agentId             # update an agent
DELETE /dashboard/agent-runtime/:agentId             # delete an agent
POST   /dashboard/agent-runtime/:agentId/run          # run the agent
GET    /dashboard/agent-runtime/:agentId/runs         # list runs
GET    /dashboard/agent-runtime/:agentId/runs/:runId   # get a run + its steps

Run an agent:

POST https://api.liyaengine.ai/dashboard/agent-runtime/agt_01HZ.../run
Authorization: Bearer <jwt>
Content-Type: application/json

{
  "input": { "message": "Summarize open tickets from the last 24 hours" }
}

Response:

{
  "success": true,
  "data": {
    "run": {
      "id": "run_01HZ...",
      "status": "completed",
      "steps": [
        { "type": "tool_call", "tool": "fetch_tickets", "latencyMs": 120 },
        { "type": "tool_call", "tool": "summarize", "latencyMs": 340 }
      ],
      "output": { "summary": "..." },
      "latencyMs": 480
    }
  }
}

Each run is persisted with its full step-by-step execution graph, queryable via GET .../runs/:runId — the same data the dashboard's Agent Runtime UI renders.

On this page