docs/agent-api/index.html

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>EzAgent APIs and addon contracts</title>
<style>
:root {
  color-scheme:dark;
  --bg:#0d1319;
  --panel:#151d26;
  --panel2:#1b2530;
  --line:#2b3947;
  --text:#e7edf3;
  --muted:#9eacba;
  --accent:#69d2ff
}
* {
  box-sizing:border-box
}
body {
  max-width:900px;
  margin:auto;
  padding:48px 24px 72px;
  background:var(--bg);
  color:var(--text);
  font:16px/1.6 system-ui,-apple-system,Segoe UI,sans-serif
}
a {
  color:var(--accent)
}
h1 {
  font-size:clamp(30px,5vw,46px);
  line-height:1.1;
  margin:0 0 14px
}
h2 {
  margin:0 0 8px;
  font-size:22px
}
.lead {
  color:var(--muted);
  max-width:760px
}
.exit {
  padding:12px 15px;
  border-left:3px solid var(--accent);
  background:var(--panel2);
  color:var(--muted)
}
.api {
  margin-top:18px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel)
}
.api p {
  margin:7px 0 0;
  color:var(--muted)
}
.shortcuts {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:13px 0 0
}
.shortcuts a {
  padding:3px 8px;
  border:1px solid var(--line);
  border-radius:6px;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:14px;
  text-decoration:none
}
.shortcuts a:hover {
  background:var(--panel2)
}
footer {
  margin-top:32px;
  color:var(--muted);
  font-size:14px
}
</style>
</head>
<body>
<h1>EzAgent APIs and addon contracts</h1>
<p class="lead">Choose the authoring API, wire contract, or payload convention you need. This hub includes
both human-facing library guidance and exact interoperability contracts; those roles are labeled separately
below.</p>
<p class="exit">Need complete frame and service-event lifecycle detail? Open the
<a href="jsonl-api.html">Typed JSONL API</a>. Need Go frame ownership or validation boundaries? See
<a href="../pkg/protocol.md">protocol</a>. Need project routing? Return to the
<a href="../index.md">documentation index</a>.</p>

<section class="api">
<h2><a href="jsonl-api.html">Typed JSONL API</a></h2>
<p><strong>Use when:</strong> implementing a client/TUI or a tool, plugin, or macro provider.</p>
<p><strong>Form:</strong> interactive catalog of generic wire frames, lifecycle, calls, and results.</p>
<nav class="shortcuts" aria-label="Typed JSONL shortcuts">
<a href="jsonl-api.html#hello">#hello</a>
<a href="jsonl-api.html#prompt">#prompt</a>
<a href="jsonl-api.html#tool_call">#tool_call</a>
<a href="jsonl-api.html#macro_call_ipc">#macro_call_ipc</a>
</nav>
</section>

<section class="api">
<h2><a href="external-model-providers.md">External model providers</a></h2>
<p><strong>Use when:</strong> implementing a configured external command, including its explicit model catalog
discovery.</p>
<p><strong>Form:</strong> process and discovery contract; model metadata remains ordinary provider
configuration.</p>
</section>

<section class="api">
<h2><a href="../ez-agent-ruby/lib/ez_agent/webfetch.md">Ruby WebFetch API</a></h2>
<p><strong>Use when:</strong> delegating HTTP(S) or message-oriented WebSockets to the standalone webfetch
executable from Ruby.</p>
<p><strong>Form:</strong> process adapter reference. The Go executable owns transport, TLS, and RFC 6455.</p>
</section>

<section class="api">
<h2><a href="ruby-workflow-lifecycle.html">Ruby Workflow lifecycle for authors</a></h2>
<p><strong>Use when:</strong> learning when declarations and callbacks run, which declarations are scheduled
operations or evidence resources, what an append-only tail may declare, and how replay reaches quiescence.</p>
<p><strong>Form:</strong> human-facing naming taxonomy, lifecycle charts, event ordering, callback timing,
declaration-scope matrix, and a Ruby syntax reading guide. This is neither the agent-facing Workflow skill nor
a wire/payload contract.</p>
<nav class="shortcuts" aria-label="Ruby Workflow lifecycle shortcuts">
<a href="ruby-workflow-lifecycle.html#taxonomy">taxonomy</a>
<a href="ruby-workflow-lifecycle.html#lifecycle">lifecycle</a>
<a href="ruby-workflow-lifecycle.html#query">query events</a>
<a href="ruby-workflow-lifecycle.html#callbacks">callbacks</a>
<a href="ruby-workflow-lifecycle.html#tails">tails</a>
</nav>
</section>

<section class="api">
<h2><a href="../ez-agent-ruby/lib/ez_agent/workflow.md">Prepared Ruby Workflow API reference</a></h2>
<p><strong>Use when:</strong> implementing against exact Workflow signatures, validation, replay, scheduling,
and result behavior.</p>
<p><strong>Form:</strong> detailed <code>EzAgent::Workflow &lt; EzAgent::WorkflowAgent</code> library
reference over typed service calls, not a JSONL frame set.</p>
<nav class="shortcuts" aria-label="Prepared Ruby Workflow reference shortcuts">
<a href="../ez-agent-ruby/lib/ez_agent/workflow.md#replay-identity-and-lifecycle">replay</a>
<a href="../ez-agent-ruby/lib/ez_agent/workflow.md#one-recursive-agent-interface">keys</a>
<a href="../ez-agent-ruby/lib/ez_agent/workflow.md#done-callbacks-and-append-only-tails">tails</a>
<a href="../ez-agent-ruby/lib/ez_agent/workflow.md#results-and-dependency-handles">results</a>
</nav>
</section>

<section class="api">
<h2><a href="ruby-workflow-0.1.html">Ruby Workflow visualizer payload 0.1</a></h2>
<p><strong>Use when:</strong> producing or consuming the prepared Workflow's lossy
<code>ruby.workflow//0.1</code> progress projection.</p>
<p><strong>Form:</strong> exact static, versioned visualization payload contract riding generic progress and
macro frames. It observes Workflow state; it does not define the Workflow lifecycle or authoring API.</p>
<nav class="shortcuts" aria-label="Ruby Workflow visualizer shortcuts">
<a href="ruby-workflow-0.1.html#discovery">#discovery</a>
<a href="ruby-workflow-0.1.html#envelope">#envelope</a>
<a href="ruby-workflow-0.1.html#reply-schema">#reply-schema</a>
<a href="ruby-workflow-0.1.html#current-fanout">#current-fanout</a>
</nav>
</section>

<section class="api">
<h2><a href="ez-agent-csv.html">EzAgent CSV</a></h2>
<p><strong>Use when:</strong> producing or consuming an explicitly EzAgent-CSV row (prepared Workflow
identifiers and the existing Workflow visualizer payload).</p>
<p><strong>Form:</strong> static encoding reference for one ordered row. Each owning contract defines its
field meanings and validation.</p>
<nav class="shortcuts" aria-label="EzAgent CSV shortcuts">
<a href="ez-agent-csv.html#format">#format</a>
<a href="ez-agent-csv.html#example">#example</a>
<a href="ez-agent-csv.html#consumers">#consumers</a>
<a href="ez-agent-csv.html#schema">#schema</a>
</nav>
</section>

<footer>For project-wide documentation, return to <a href="../index.md">the documentation index</a>.</footer>
</body>
</html>