internal/

directory
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2026 License: AGPL-3.0

Directories

Path Synopsis
Tool-activity events: the structured "what is the assistant doing right now" signal clients render while a turn is in flight.
Tool-activity events: the structured "what is the assistant doing right now" signal clients render while a turn is in flight.
Package agent orchestrates one conversational task: it loads the project's capability documents, composes them into knowledge and provider tools, drives the agentcore tool-use loop against the resolved model, and meters the run's usage.
Package agent orchestrates one conversational task: it loads the project's capability documents, composes them into knowledge and provider tools, drives the agentcore tool-use loop against the resolved model, and meters the run's usage.
Package agentwiring builds the agent-execution stack — model, capability source, conversation/memory/gap-report stores, usage emitter — and adapts it to assistanta2a.AgentRunner.
Package agentwiring builds the agent-execution stack — model, capability source, conversation/memory/gap-report stores, usage emitter — and adapts it to assistanta2a.AgentRunner.
Package apiserver assembles the conversations aggregated API server: the runtime scheme/codecs for the assistant group and the generic apiserver wiring that installs the bespoke Conversation REST (a read view over the shared history store) — no etcd, no generic registry.
Package apiserver assembles the conversations aggregated API server: the runtime scheme/codecs for the assistant group and the generic apiserver wiring that installs the bespoke Conversation REST (a read view over the shared history store) — no etcd, no generic registry.
registry/capabilitygapreport
Package capabilitygapreport is the bespoke read-only REST storage backing the conversations aggregated apiserver's capabilitygapreports resource.
Package capabilitygapreport is the bespoke read-only REST storage backing the conversations aggregated apiserver's capabilitygapreports resource.
registry/conversation
Package conversation is the bespoke read-only REST storage backing the conversations aggregated apiserver.
Package conversation is the bespoke read-only REST storage backing the conversations aggregated apiserver.
registry/endpoint
Package endpoint is the read-only REST storage backing the aggregated apiserver's assistantendpoints resource: it tells a client where to send A2A traffic.
Package endpoint is the read-only REST storage backing the aggregated apiserver's assistantendpoints resource: it tells a client where to send A2A traffic.
Package auth splits request handling into two deliberately separate seams:
Package auth splits request handling into two deliberately separate seams:
Package basetools is the set of tools every project's Patch has, whoever the providers are.
Package basetools is the set of tools every project's Patch has, whoever the providers are.
Package capability owns the assistant's capability-document schema and the composition that turns a project's documents into the model's system-prompt knowledge and provider tools.
Package capability owns the assistant's capability-document schema and the composition that turns a project's documents into the model's system-prompt knowledge and provider tools.
Package config is the single place that reads the environment.
Package config is the single place that reads the environment.
Package gapreport stores capability-gap reports: durable records the assistant writes when a provider service let a user down — either no tool existed for what they needed, or a tool ran and handed back something thin, misleading, or unactionable — so the provider's own team, not the consumer project the conversation happened in, can act on it.
Package gapreport stores capability-gap reports: durable records the assistant writes when a provider service let a user down — either no tool existed for what they needed, or a tool ran and handed back something thin, misleading, or unactionable — so the provider's own team, not the consumer project the conversation happened in, can act on it.
Package history stores conversation turns so a follow-up message in the same A2A context is answered with the prior exchange in the prompt.
Package history stores conversation turns so a follow-up message in the same A2A context is answered with the prior exchange in the prompt.
Package logger provides the service's structured logger: a thin wrapper over log/slog so every package logs the same way and tests can silence output.
Package logger provides the service's structured logger: a thin wrapper over log/slog so every package logs the same way and tests can silence output.
Package memory stores durable project-scoped facts the assistant learns while working with a project — goals, conventions, decisions, standing constraints — so they persist across conversations and are visible to every user working on the same project.
Package memory stores durable project-scoped facts the assistant learns while working with a project — goals, conventions, decisions, standing constraints — so they persist across conversations and are visible to every user working on the same project.
Package metrics defines the assistant's application-level Prometheus collectors — conversation turns, tool calls, model calls, history compaction, and capability-gap reports — and the Metrics handle used to record them.
Package metrics defines the assistant's application-level Prometheus collectors — conversation turns, tool calls, model calls, history compaction, and capability-gap reports — and the Metrics handle used to record them.
Package patchcli is the Datum Cloud assistant (A2A) client shared by the two binaries that ship it: `patch` (cmd/patch, the standalone CLI the e2e harness drives) and `datumctl assistant` (cmd/milo-assistant, the datumctl plugin).
Package patchcli is the Datum Cloud assistant (A2A) client shared by the two binaries that ship it: `patch` (cmd/patch, the standalone CLI the e2e harness drives) and `datumctl assistant` (cmd/milo-assistant, the datumctl plugin).
Package plantoken proves that what is about to be applied is exactly what somebody was already shown.
Package plantoken proves that what is about to be applied is exactly what somebody was already shown.
Package projectapi is how Patch reads and writes one project's resources — always as the person who asked, never as itself.
Package projectapi is how Patch reads and writes one project's resources — always as the person who asked, never as itself.
Package server wires the assistant's HTTP surface: liveness at GET /healthz, readiness at GET /readyz, Prometheus telemetry at GET /metrics, the public agent card at /.well-known/agent-card.json (+ the legacy /.well-known/agent.json alias), and the POST /a2a JSON-RPC endpoint.
Package server wires the assistant's HTTP surface: liveness at GET /healthz, readiness at GET /readyz, Prometheus telemetry at GET /metrics, the public agent card at /.well-known/agent-card.json (+ the legacy /.well-known/agent.json alias), and the POST /a2a JSON-RPC endpoint.
Package taskstore provides a durable, tenant-aware taskstore.Store implementation for the A2A task lifecycle.
Package taskstore provides a durable, tenant-aware taskstore.Store implementation for the A2A task lifecycle.
Package tenant resolves the milo project that scopes a conversations apiserver request.
Package tenant resolves the milo project that scopes a conversations apiserver request.
Package tracing wires the OpenTelemetry Go SDK for the assistant's binaries.
Package tracing wires the OpenTelemetry Go SDK for the assistant's binaries.
Package usage builds and emits the assistant's billing usage as CloudEvents.
Package usage builds and emits the assistant's billing usage as CloudEvents.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL