@zephyrcloudio/harness-worker-host

The embeddable Harness host for Durable Objects. This is the only Ze Harness package embedding hosts install: every other workspace package is bundled into dist at build time.

import { WorkerHarnessHost } from '@zephyrcloudio/harness-worker-host';

Embedding

One Durable Object instance shares one host-provided Workspace (file home plus Computer backend) across N HarnessSessions on one SQLite database, with injected providerDefinitions (embedder-implemented providers, selected per turn), contentResolver (attachment references, resolved only after visibility filtering), imageNormalizer (attached images resized once at admission; see "Image normalization"), toolDispatch (host custody after Harness permission resolution), and an optional requestSizeEstimator (a RequestSizeEstimator, such as a provider tokenizer, replacing Core's portable request-size estimate for context admission and compaction). Credentials arrive only through injected ports; ambient discovery stays disabled.

const host = new WorkerHarnessHost({
  server: ServerName.make('embedded'),
  state: ctx,
  workspace,
  revisionId: 'host-revision-1',
  model: ModelRef.make('example/model'),
  providerDefinitions: { example: exampleProvider },
  contentResolver: hostContentResolver,
  toolDispatch: hostToolDispatch,
});

model is the optional room default. Without it, prompts that name no model and title generation use the catalog's first available model; a per-turn model on the prompt request always wins, and the admitting turn's model also titles the session.

One multiplexed DO alarm serves Harness recovery, Computer pulls, and host-owned participants (registerAlarmParticipant + setParticipantDue). Direct SessionServices admissions call notifyAdmission() so the drain runs via waitUntil. Harness never closes the provided Workspace; the owning DO retains its lifetime.

Computer and the container

The host DO builds the Workspace and its container backend; Harness only uses them. With @cloudflare/computer 0.6:

  • Construct the Workspace with storage, backends, and sessionId only. Computer no longer takes a retry scheduler: the host arms each post-command pull on its own alarm and resumes unfinished pulls from host.alarm(), so the DO's alarm() must delegate to it.
  • A container under platform scheduling (instance_type and max_instances in the containers block) uses LegacyContainerBackend and withLegacyWorkspaceContainer from @cloudflare/computer/backends/container-legacy. ContainerBackend from .../backends/container serves scheduling_policy: "durable_object" with an images map instead, which needs wrangler 4.148 or later.
  • computerd dials back to /api (it was /ws before Computer 0.3). Route that path to backend.handleFetch before host.fetch, and re-export WorkspaceProxy from the Worker entry module so ctx.exports.WorkspaceProxy exists.
  • The container image is ghcr.io/cloudflare/computer-computerd-linux-x64 at the same version as the package. An older image refuses the bearer token Computer 0.3 and later send.
  • Computer 0.6 imports node:fs, which Workers serve under nodejs_compat from compatibility date 2025-09-15.
export { WorkspaceProxy } from '@cloudflare/computer';

class AgentBase extends withLegacyWorkspaceContainer(class extends DurableObject<Env> {}) {}

export class Agent extends AgentBase {
  readonly #backend = new LegacyContainerBackend({
    container: () => this,
    workspace: { binding: 'AGENTS', id: this.ctx.id.toString() },
    egress: { mode: 'direct' },
    id: 'container',
  });
  readonly #workspace = new Workspace({
    storage: this.ctx.storage,
    backends: [this.#backend],
    sessionId: 'agent',
  });
  readonly #host = new WorkerHarnessHost({
    state: this.ctx,
    server: ServerName.make('agent'),
    workspace: this.#workspace,
    revisionId: 'host-revision-1',
  });

  override fetch(request: Request): Promise<Response> {
    if (new URL(request.url).pathname === '/api') return this.#backend.handleFetch(request);
    return this.#host.fetch(request);
  }

  override alarm(): Promise<void> {
    return this.#host.alarm();
  }
}

Hybrid CodeMode

Agents can combine tool calls using CodeMode. It is on by default and needs no additional dependency. To turn it off, pass codemode: { enabled: false } to WorkerHarnessHost. Interrupted scripts are not automatically replayed after a restart.

Watching a Turn

host.watchTurn(sessionId, turnId, { afterRevision }) returns the live events of one Turn as an Effect Stream<TurnStreamEvent, UnavailableError>, exactly as the /turns/:turnId/events SSE route streams them but with no HTTP request or SSE parsing: durable rows after the cursor, synthesized deltas, heartbeats, and one terminal event after which the stream ends. Omit afterRevision to receive only events after the current revision; pass the last revision you saw to resume without a gap.

import { Effect, Stream } from 'effect';

const events = await host.watchTurn(sessionId, turnId, { afterRevision });
await Effect.runPromise(Stream.runForEach(events, (event) => Effect.sync(() => render(event))));

Watching a Session or the server

host.watchSession(sessionId, { afterActivityCursor }) returns the Session's activity as a Stream<SessionStreamEvent, UnavailableError> and host.watchServer({ afterServerCursor }) returns the whole server's activity (Session creations, titles, deletions, and every Turn change on any Session) as a Stream<ServerStreamEvent, UnavailableError>, exactly as the /sessions/:sessionId/events and /events SSE routes stream them. Omitting the Session cursor replays that Session's history. Omitting the server cursor starts live: the first event is a server.cursor naming the current cursor, so list Sessions and pending requests after it and nothing is missed; pass the last cursor you saw to replay every stamped row after it. Neither stream ends on its own and neither admits work or arms recovery: interrupt the stream to stop watching. A session.created event is an upsert by session.id, since a watch that starts after an existing Session was retitled sees it again.

const activity = await host.watchServer(); // live; resume later with { afterServerCursor }
await Effect.runPromise(
  Stream.runForEach(activity, (event) =>
    Effect.sync(() => {
      if (event.type === 'session.created') upsertSession(event.session);
    }),
  ),
);

host.fetch also serves the server-level routes (the Session list, the activity stream, and server deletion), so an in-process client built on it reaches them without a gateway.

Unknown provider ids

providers is an allowlist compiled against the host's catalog (the bundled snapshot, or a newer modelCatalog, below). By default (unknownProviders: 'fail') an id with no catalog entry and no complete definition fails host construction, and therefore every session on the object. Pass unknownProviders: 'report' to drop such ids instead: the host constructs with the remaining providers and reports what it dropped on resources(), so the embedder learns about every rejected id rather than finding out at the first turn.

const host = new WorkerHarnessHost({ ...options, providers, unknownProviders: 'report' });
const { providerIds, rejectedProviders } = await host.resources();
for (const { providerId, message } of rejectedProviders) {
  console.warn(`provider ${providerId} dropped: ${message}`);
}

rejectedProviders is empty under 'fail'. Diagnostics name only the provider id, never a credential.

Default output cap

On the Anthropic Messages wire every request carries an output cap (max_tokens): the one the catalog, provider configuration, Agent or Turn sets, otherwise the model's catalog output limit. A model with neither fails the request instead of sending it uncapped. The Chat Completions and Responses wires send a cap only when one of those layers sets it, so a response there can run to the provider's maximum: a model stuck in a loop can spend more than 100,000 output tokens on one response. defaultMaxOutputUnits gives every model a cap, clamped to each model's own output limit:

const host = new WorkerHarnessHost({ ...options, providers, defaultMaxOutputUnits: 32_000 });

A cap set by the catalog, the provider configuration, the Agent or the Turn still wins. A value that is not a positive whole number rejects host construction.

Runtime provider credentials

Injected-only hosts (credentialMode: 'injected-only') write one provider's key at a time, at any point in the host's life. Turns read the live key at acquire time, so a write or rotation takes effect on the next turn with no reload; removals fail new acquires closed while in-flight attempts keep the key they acquired.

await host.setProviderCredential('example', apiKey);
const live = await host.hasProviderCredential('example');
await host.removeProviderCredential('example');

Keys live in memory only: never persisted, never logged, cleared on restart. Presence is boolean-only; the key is never exposed. Unknown provider ids throw on write and remove (has answers false). These methods throw on non-injected hosts, where the live port mirrors durable storage instead.

Per-turn credentials

The slot holds one key per provider for the whole object. When several callers share one host and each should run on their own key, give the host a resolver instead of writing the slot per admission. The harness calls it on every model acquisition that serves session work, naming that work, and uses the answer for that acquisition only:

const host = new WorkerHarnessHost({
  // ...
  credentialMode: 'injected-only',
  resolveProviderCredential: async ({ providerId, scope }) => {
    // scope.kind is 'turn' | 'compaction' | 'detached'; every scope carries sessionId,
    // a turn carries turnId (and cause: { sessionId, turnId } when the harness started it),
    // a compaction carries compactionId, and a detached title call carries its cause:
    // { kind: 'turn', sessionId, turnId } or { kind: 'entry', entryId, authorId? }.
    const owner = await lookupOwner(scope);
    if (owner === undefined) return undefined; // fall through to the slot
    const supplied = await custody.supply({ providerId, owner });
    return supplied.ok
      ? { apiKey: supplied.apiKey }
      : { denied: supplied.message, code: supplied.code };
  },
});

Precedence at acquire time is fixed in Core (packages/harness/src/plugin/setup.ts): the frozen config key, the provider's OAuth connection (only without a config key), the live port, then the environment. credentialMode: 'injected-only' drops the config key and the environment, so on this host the live port is the only source, and the live port asks the resolver first and falls through to the slot when it returns undefined or a blank key.

Every detached title call names what caused it. A title scheduled by an admitted prompt carries cause: { kind: 'turn', sessionId, turnId }. A title scheduled by appending a Session's first conversation entry carries cause: { kind: 'entry', entryId, authorId }, where authorId is the entry's recorded attribution.authorId; it is absent when the entry was appended without an author, so bill that case by your own rule rather than assuming one.

Not every Turn is one you admitted. The harness starts a Turn itself for each sub-agent the task tool runs, in a child Session, and for the result of a background task, in the Session that started it. Such a Turn's scope carries cause: { sessionId, turnId }: the Turn you admitted that it runs for, and the Session you admitted it in, however deeply sub-agents nest. Resolve the key from cause when it is present, so the work is paid for and attributed as the Turn that caused it. A title scheduled by such a Turn names the same Turn in its own cause, whose sessionId is then not the scope's.

The cause has often ended by the time it is named. A background sub-agent outlives the Turn that started it, and the Turn its result wakes the Session with only starts once that Turn is over. Keep what you need to resolve a key for a Turn after it ends.

Only the credential scope carries cause. resolveExecEnvironment and resolveMcpRequestHeaders still name a sub-agent's own Turn alone, so a sub-agent runs its shell commands and MCP calls without whatever you resolve per admitted Turn.

A Turn acquires its model once and reuses it for the tool loop, in-turn compaction, and steering continuations, so the resolver runs once per Turn. A Turn still pending across a restart asks again when it starts, so a revoked or rotated key takes effect at that point and nothing about the binding is persisted by the harness. { denied } fails the acquire with ModelAuthenticationFailure; on a Turn that surfaces as TurnFault.code === 'model_run_failed' with the denial text as the message, so the text must name no secret. code becomes the fault's providerCode, for embedders that project fault codes and drop messages; it must match [A-Za-z0-9][A-Za-z0-9._:/-]* and be at most 128 characters, and a code outside that shape is dropped while the denial still surfaces.

Plugin models that delegate to a sibling (the Auto lanes) pick their candidate siblings from the host-wide sources only, so which providers qualify is the same for every caller; the chosen sibling is then acquired through the resolver with the Turn's scope, like a native model. A resolver-only host that uses such plugins must still hold a slot or environment key for each provider they may delegate to, or no sibling qualifies and the Turn fails with "No configured sibling model is available". Scope-free reads (provider discovery, hasProviderCredential) and every write go to the slot and never call the resolver. Resolver exceptions fail the acquire the same way with a diagnostic that names only the provider.

Per-turn shell environment

Shell commands run in the one container the host shares. When each Turn should run commands with its author's environment (for example credentials for that person), give the host a resolver. The harness calls it before each shell command that runs for a Turn and adds the returned variables to that command only:

const host = new WorkerHarnessHost({
  // ...
  resolveExecEnvironment: async ({ scope }) => {
    // scope carries the sessionId and turnId the command runs for.
    const grant = await grants.forTurn(scope.turnId);
    return grant?.env; // undefined adds nothing
  },
});

A rejection, or an answer that is not a record of strings, fails the command with environment_unavailable and the command does not run. Commands that serve no Turn (setup, sync) never call the resolver. For plugins loaded as Worker bundles the host uses the Turn of the tool call it is serving; a bundle cannot name another Turn.

Turns the harness starts itself, such as a sub-agent's Turn in its child Session, reach the resolver with their own Turn id, not the parent's. A host that only knows the Turns it admitted decides what those get: return undefined to run them without the environment, or reject to fail their commands.

Per-turn MCP request headers

Remote MCP servers connect once and every Turn shares that connection. When each Turn should reach a server as its author (for example a gateway that injects that person's upstream credentials), give the host a resolver. The harness calls it for every request a Turn makes to a remote server, the tools/list that builds that Turn's tool set and its tools/calls, and adds the returned headers to that request only:

import { McpRemoteServerDefinition, WorkerHarnessHost } from '@zephyrcloudio/harness-worker-host';
import { Schema } from 'effect';

// Decoding fills the defaults (enabled, capabilities, limits, reconnect policy).
const gateway = Schema.decodeUnknownSync(McpRemoteServerDefinition)({
  kind: 'remote',
  id: 'gateway',
  name: 'gateway',
  // This server lists different tools for each person; see below.
  toolsPerTurn: true,
  protocolVersions: ['2025-06-18'],
  transport: { kind: 'streamable-http', endpoint: 'https://mcp-gateway.example/mcp', headers: {} },
});

const host = new WorkerHarnessHost({
  // ...
  mcpServers: [gateway],
  resolveMcpRequestHeaders: async ({ server, scope }) => {
    // server is the configured MCP server name; scope carries sessionId and turnId.
    if (server !== 'gateway') return undefined; // undefined adds nothing
    const grant = await grants.forTurn(scope.turnId);
    return grant?.mcpHeaders;
  },
});

Servers marked toolsPerTurn: true list tools per Turn: each Turn's model sees the tools the server lists for that Turn's headers, read once per Turn and connection and reused by every model request of that Turn. Other servers keep one list per connection, and the resolver still adds headers to their calls. The connection-level catalog (inventory, resources, prompts) is unchanged. A rejection fails that request with a transport error that names no secret: a call fails as a tool error, and a failed listing leaves that server without tools for the Turn; the shared connection stays up. The server refusing a Turn's headers (a 401, or plain HTTP) fails that request the same way, and never refreshes the connection's own OAuth token. Requests that serve no Turn (connect, initialize, catalog refreshes) never call the resolver.

Author profiles

A Session several people share carries each person's authorId on their input, and once more than one of them has written, the model reads [author <id>] at the head of each message. To have it read who that is, write the person's profile to the host's author directory. Await the write before submitting input you want read with it:

const { authors, prompts } = await host.sessions();

await Effect.runPromise(
  authors.putProfile({
    authorId: AuthorId.make(user.id),
    revision: user.profileRevision, // your own counter; it only grows as the profile changes
    username: user.handle,
    displayName: user.name,
    kind: 'human',
  }),
);

The write answers { outcome, profile }. stored replaced the whole profile, so a field you leave out is cleared. unchanged is a retry of the revision and values already held. conflict is the same revision with different values and stale a lower revision; both leave the held profile in place and return it. The directory belongs to the host, so one write serves every Session on it. Each model request lists the profiles of the authors it names, and who requested the Turn, in its runtime-context message.

Runtime context lines

Some of what a model should know is the host's alone and changes while a Session lives: who is in a shared room right now, which channel it is. Give the host resolveRuntimeContext and the harness adds what it answers to the runtime-context message it sends after the conversation:

const host = new WorkerHarnessHost({
  // ...
  resolveRuntimeContext: async ({ scope, authorId }) => {
    // scope carries sessionId and turnId; authorId is who the Turn answers.
    const members = await room.members();
    return [`Room members: ${members.map((member) => member.id).join(', ')}`];
  },
});

The harness calls it before every model request of a Turn, once per request, and puts each string on one line in the request it measures and sends. Nothing is stored, and the next request asks again, so a change the host learns of mid-Turn reaches the model on that Turn's next request; a request already sent keeps what it had. Context summaries never call it. Returning undefined adds nothing, and so does a rejection or an answer that is not a list of strings, with a warning. The harness already lists the authors a request names (see "Author profiles"); this is for what only the host knows.

Image normalization

Attached images (prompt parts and tool result screenshots) change once, when they enter a Session, and never per model request, so history and the provider's prompt cache see one set of bytes. Hand images in inline, as base64 parts, so admission sees them: content behind a durable content reference is resolved at request time and never normalized, and an image over the limits behind one is lowered to a placeholder in each request rather than refused. The host supplies the pixels work: give it an ImageNormalizer, and Core calls it with the decoded bytes once per admitted image, with the images policy's bounds as the profile:

import { ImageNormalizationError, WorkerHarnessHost } from '@zephyrcloudio/harness-worker-host';
import { Effect } from 'effect';

const host = new WorkerHarnessHost({
  // ...
  imageNormalizer: {
    normalize: ({ bytes, mimeType, profile, signal }) =>
      Effect.tryPromise({
        // Fit profile.maxLongEdge and profile.maxBase64Bytes (absent means unlimited): scale
        // the long edge, apply EXIF orientation, keep PNG for transparency, re-encode opaque
        // images as JPEG and step quality down until the base64 bound holds.
        try: () => resize(bytes, mimeType, profile, signal),
        catch: (cause) => new ImageNormalizationError({ code: 'failed', message: String(cause) }),
      }),
  },
  images: {
    maxLongEdge: { kind: 'finite', value: 2_000 },
    maxBase64Bytes: { kind: 'finite', value: 5_000_000 },
    maxPerMessage: { kind: 'unlimited' },
  },
});

normalize returns { kind: 'normalized', bytes, mimeType, width, height } or { kind: 'unchanged', width, height } when the image already fits. A typed ImageNormalizationError keeps the image as sent. Without a normalizer, Core keeps the bytes and records the dimensions it can read from the image header. images sets the policy over the documented provider defaults (2000 px long edge, 5,000,000 base64 bytes, 100 images per message, resizing on); every field is optional and { kind: 'unlimited' } removes a limit. After normalization Core still enforces maxBase64Bytes and maxPerMessage: an over-limit prompt fails admission with image_too_large or too_many_images, and an over-limit tool result settles as a failed tool that asks the model for a smaller capture. The @zephyrcloudio/harness README, "Image admission", has the defaults' sources.

Provider catalog

The bundle exports the harness's provider catalog so embedders can build their providers allowlist and model pickers from the same data the host compiles against instead of hardcoding ids. loadBundledModelsDevSnapshot() returns the models.dev snapshot copied into the harness at build time (providers is keyed by provider id; each record carries displayName, api, and models), and defaultProviderIds names the ids a host enables when providers is omitted. What this host actually compiled, after providers, providerDefinitions, and enabled filtering, is (await host.resources()).providerIds.

import {
  loadBundledModelsDevSnapshot,
  defaultProviderIds,
} from '@zephyrcloudio/harness-worker-host';

const { providers } = loadBundledModelsDevSnapshot();
const choices = Object.values(providers).map(({ id, displayName, models }) => ({
  id,
  displayName,
  modelIds: Object.keys(models),
}));
const compiled = (await host.resources()).providerIds; // ids live on this host
void defaultProviderIds; // ['openai', 'opencode-go', 'openrouter']

The snapshot is a point-in-time copy of models.dev bundled into the package, not a live feed; a newer harness release carries a newer snapshot, and modelCatalog (below) catches a host up without one. Type-only exports NormalizedModelsDevSnapshot, NormalizedProviderRecord, NormalizedModelRecord, ProviderConfigMap, and ProviderConfigEntry describe the snapshot and the providers option.

Published catalog

Pass modelCatalog: { document, publishedAt } to compile from a catalog you fetched instead of the bundled snapshot. document is the parsed JSON of a models.dev-format catalog, the same document the Node daemon refreshes from ZE_HARNESS_MODELS_URL (default https://models.dev/api.json), passed unmodified: the host normalizes it exactly as the Node refresh does, keeping providers and per-model packages that map to a native protocol. publishedAt is when that document was published, in epoch milliseconds: the response's Last-Modified (R2 sets it at upload). Keep it with your cached copy; a 304 does not change it, and when you fetched the document does not count.

The bundled snapshot is the floor, as on the Node host. The supplied catalog is used only when it is valid and publishedAt is at or after the bundled snapshot's build time, so a newer release is never dragged back by a stale published catalog; otherwise the host uses the bundled snapshot. An invalid or older catalog never fails host construction: the host logs a warning and reports which catalog it compiled on resources().modelCatalog (source is 'supplied' or 'bundled', with contentRevision, publishedAt (the bundled snapshot's build time when it is the source), and a diagnostic when a supplied catalog was not used). The catalog is read once, when the host first starts; a newer catalog takes effect on the next host construction, so refresh it on your own schedule and pass the latest copy when the object starts. A response without Last-Modified proves no publish time; pass a publishedAt only when your source states one.

Fetching and caching are the embedder's: use conditional requests (If-None-Match) and keep the last good document. validateModelCatalog({ document, publishedAt }) applies the host's normalization without starting a host, so a degraded upstream response can be refused before it replaces your cached copy; it rejects with ModelsDevSourceError naming the problem. The models.dev document is several megabytes, more than one Durable Object storage value holds, so keep the cached copy somewhere sized for it (R2, Workers KV, or the Cache API). Normalizing it costs CPU on each host start, the same work the Node refresh does once per fetch.

import { validateModelCatalog, WorkerHarnessHost } from '@zephyrcloudio/harness-worker-host';

const response = await fetch(catalogUrl, {
  headers: cached?.etag === undefined ? {} : { 'If-None-Match': cached.etag },
});
const lastModified = Date.parse(response.headers.get('last-modified') ?? '');
if (response.ok && Number.isFinite(lastModified)) {
  const fetched = { document: await response.json(), publishedAt: lastModified };
  await validateModelCatalog(fetched); // rejects: keep the previous copy
  cached = { ...fetched, etag: response.headers.get('etag') ?? undefined };
} // a 304 keeps `cached` exactly as stored
const host = new WorkerHarnessHost({
  ...options,
  ...(cached === undefined
    ? undefined
    : { modelCatalog: { document: cached.document, publishedAt: cached.publishedAt } }),
});
const { modelCatalog } = await host.resources();
if (modelCatalog.diagnostic !== undefined) console.warn(modelCatalog.diagnostic);

Dashboard

Pass dashboard: true and host.fetch serves the Harness dashboard at GET /dashboard, filled in with the host's server. It is the same single HTML page the Node daemon serves. The page sends document-relative v1/servers/<server>/… requests, so mount it under any prefix that forwards GETs to host.fetch with the prefix stripped:

const host = new WorkerHarnessHost({ server, state: ctx, workspace, revisionId, dashboard: true });

// In the embedder's proxy: <prefix>/dashboard and <prefix>/v1/... reach the host as /dashboard and /v1/...
const response = await host.fetch(new Request(new URL(path, 'https://harness.local'), request));

host.fetch trusts its caller, so the page never asks for a token, and it hides the log panel because this host has no v1/logs. The response allows framing (no frame-ancestors) and limits API calls to connect-src 'self', so the page and its API share one origin; a custom-scheme page needs a scheme with a real (non-opaque) origin. An embedding parent can restyle the page with frame.contentWindow.postMessage({ type: 'ze-harness:theme', tokens: { '--zh-bg': '#fff' } }, '*'); the token names are listed in the harness-server README.

Peers and versions

The only runtime peers are effect and @cloudflare/computer, pinned exactly to this repo's catalog. They must be singletons shared with the host worker: duplicate effect breaks context tags and layers, and a duplicate Computer Workspace breaks file-home identity. The bundle has no top-level cloudflare:workers import, so it loads in plain Node (unit tests, tooling) without the cloudflare: scheme; platform APIs are only required when the host runs inside a Durable Object. Pin this package exactly; all Ze Harness packages share one version and pack:smoke enforces it.

Public TypeScript exports

  • AppendConversationCommand
  • AuthorId
  • AuthorProfile
  • AuthorProfileWrite
  • ClientId
  • ConversationEntryConflict
  • ConversationEntryId
  • DurableContentResolutionError
  • DurableContentResolver
  • ExecEnvironmentResolver
  • ExecEnvironmentScope
  • HistoryVisibility
  • ImageNormalizationError
  • ImageNormalizationProfile
  • ImageNormalizationResult
  • ImageNormalizer
  • InvalidServerCursor
  • KnownTurnFaultCode
  • McpRemoteServerDefinition
  • McpRequestHeadersResolver
  • McpServerName
  • ModelCallIdentity
  • ModelEvent
  • ModelFailure
  • ModelRef
  • ModelRequest
  • ModelsDevSourceError
  • ModelService
  • ModelTurnContext
  • ModelUsage
  • NormalizedModelRecord
  • NormalizedModelsDevSnapshot
  • NormalizedProviderRecord
  • PermissionRequest
  • PermissionRequestId
  • PermissionRequestNotFound
  • PromptAttribution
  • PromptConflict
  • PromptContent
  • ProviderConfigEntry
  • ProviderConfigMap
  • ProviderCredentialResolution
  • ProviderCredentialResolver
  • ProviderCredentialScope
  • ProviderDefinition
  • ProviderDefinitionMap
  • ProviderModelAcquisitionInput
  • PublicPromptAdmission
  • QuestionRequest
  • QuestionRequestId
  • QuestionRequestNotFound
  • ReplyPermissionInput
  • ReplyQuestionInput
  • RequestSizeEstimationError
  • RequestSizeEstimator
  • RuntimeContextResolver
  • RuntimeContextScope
  • ServerActivityCursor
  • ServerName
  • ServerStreamEvent
  • SessionActivityCursor
  • SessionActivityPage
  • SessionConflict
  • SessionId
  • SessionNotFound
  • SessionServices
  • SessionStreamEvent
  • SessionTitle
  • SessionTurnState
  • SteerId
  • SteerRejected
  • StorageError
  • StorageFailure
  • SubmitPromptCommand
  • ToolApprovalSnapshot
  • ToolDispatchError
  • ToolDispatchLease
  • ToolDispatchLifecycle
  • ToolDispatchOutcome
  • ToolQuestionSnapshot
  • TurnEvent
  • TurnEventsPage
  • TurnFault
  • TurnId
  • TurnNotFound
  • TurnOutcome
  • TurnPart
  • TurnPhase
  • TurnSnapshot
  • TurnStreamEvent
  • TurnTextPart
  • TurnToolPart
  • UnavailableError
  • WatchSessionActivityInput
  • WatchTurnEvent
  • WorkerHarnessHost
  • WorkerHarnessHostOptions
  • WorkerModelCatalog
  • WorkerModelCatalogStatus
  • WorkerServerPlugin
  • WorkerServerPluginConflict
  • WorkerServerPluginContribution
  • WorkerServerPluginRejected
  • WorkerServerPluginStatus
  • WorkerStaticSessionPlugin