Ana içerik geç

Agent runtime — /api/zeq/agent/*

Genetic agents that evolve operator combinations across generations, gated by ZeqProof at the precision you choose. Mid-run skill synthesis and operator derivation fill in coverage gaps when the 1,500+-operator catalogue can't quite solve the problem.

Concept: Agents. Source: shared/api-core/src/routes/zeqAgent.ts.

Endpoints

Lifecycle

MethodPathCostAuth
POST/api/zeq/agent/spawn75 ZEQBearer
POST/api/zeq/agent/tick/:id5 ZEQBearer
POST/api/zeq/agent/kill/:id0Bearer

Read

MethodPathCostWhat
GET/api/zeq/agent/list0Your agents.
GET/api/zeq/agent/status/:id0One agent's state + last tick.
GET/api/zeq/agent/lineage/:id0Ancestry of an evolved agent.
GET/api/zeq/agent/context-hash0Hash of the agent knowledge base.
GET/orb/:userZid0Legacy alias — a user's Pulse agent.

All reads require Authorization: Bearer … (viewer+ on the agent's chain).

Mesh

MethodPathCostWhat
GET/api/zeq/agent/mesh/:master_id0Read a mesh of agents under a master.
POST/api/zeq/agent/mesh/:master_id/publish0Publish a mesh result.

LLM-backed

MethodPathCostAuth
POST/api/zeq/agent/page-chat25 ZEQBearer or CORS guest
POST/api/zeq/agent/generate-html100 ZEQBearer

Skills & operators

MethodPathCostWhat
GET/api/zeq/agent/skills0List synthesised skills.
GET/api/zeq/agent/skills/:id0One synthesised skill.
POST/api/zeq/agent/skills/synthesise50 ZEQSynthesise a skill (open during wizard).
GET/api/zeq/agent/operators/custom0List derived operators.
POST/api/zeq/agent/operators/derive50 ZEQDerive a new operator.
POST/api/zeq/agent/operators/promote0Promote a derived operator (foundation).

All paid endpoints call chargeForCompute() atomically before doing work. If the wallet is short, the endpoint returns HTTP 402 INSUFFICIENT_BALANCE and nothing is performed.

Cost rationale

TierCostWhy
Reads (/list, /:id, /mesh)0Pure DB SELECTs.
Lifecycle (kill, promote)0Bookkeeping only.
Tick5Same as a contract transition — that's what every tick writes.
Skill / operator50LLM call + storage + verification path.
Page-chat25Per-message LLM.
Spawn75State machine + first LLM call + ZID provision.
HTML generation1005–20K LLM tokens, full page worth.

Using BYOK (credential_id) doesn't reduce the framework charge — it covers the entangled state write + audit envelope work. The LLM tokens hit your provider's bill instead of the framework's pool.

Common request shape

All POST endpoints accept JSON. Auth is one of:

  • Authorization: Bearer zeq_ak_… — account key (preferred)
  • Cookie session (after /api/zeq-auth/verify-v3)
  • For /page-chat: CORS-open, supports unauthed guest mode (data-zid="guest")
  • Agents — concept page
  • BYOK — bring your own LLM provider
  • ZEQ economy — what every action costs
  • Pulse — the Pulse routes to /page-chat