Config Reference

Complete reference for all config.yaml keys — types, defaults, and examples.


Every Configent client is defined by a single YAML file in config/ at the repo root. This page documents every key, its type, default, and valid values. All keys are validated against a Pydantic schema at startup — invalid configs fail fast rather than at request time.

Top-level keys

KeyTypeRequiredDescription
client_idstring✓Unique identifier. Used as the pgvector namespace, URL slug, and log prefix. Must match ^[a-z0-9][a-z0-9-]*[a-z0-9]$.
namestring✓Human-readable client name. Used in logs and the UI header.

Any other top-level key fails at load: a leftover escalation: beside handoff: would otherwise read like it does something.

client_id: gcp-platform-support
name: "Cloud Platform Support"

This page uses Cloud Platform Support, the client the repo ships, as its running example. Its file is config/gcp-platform-support.yaml.


branding

Controls UI presentation for this client.

KeyTypeRequiredDescription
branding.logostring✓Path to the client logo, relative to the repo root.
branding.primary_colorstring✓Hex colour used for the chat UI accent.
branding.assistant_namestring✓Name displayed in the chat header.
branding.taglinestringEmpty-state copy. Unset, the UI falls back to a generic line.
branding.suggested_questionslist[string]Up to 5 starter questions shown on an empty chat.
branding:
  logo: assets/gcp-platform-support/logo.svg
  primary_color: "#1a73e8"
  assistant_name: "DeployBot"
  suggested_questions:
    - "My Cloud Run container fails to start — what does the PORT error mean?"
    - "Can you raise my Cloud Run instance quota for europe-west1?"

corpus

Configures the document source and chunking settings.

KeyTypeDefaultDescription
corpus.sourcestring—Path to the document directory, relative to the repo root. .md, .markdown, .txt, .docx, .pdf, .html and .htm files are ingested recursively; other files are listed as unsupported in the ingest report.
corpus.source_url_templatestring""Fallback citation link for a file with no url: front matter. {stem} and {path} (relative path, no extension) are filled in. Empty means plain-text citations. Joins the fingerprint when set.
corpus.embedding.modelstringvoyage-3Voyage AI model for chunks and questions alike. Must emit 1024 dimensions: voyage-3, voyage-3-large or voyage-3.5. Anything else fails at load.
corpus.chunking.chunk_sizeint800Maximum tokens per chunk. Larger values preserve more context per retrieval hit.
corpus.chunking.overlapint100Token overlap between adjacent chunks. Prevents mid-sentence splits from degrading retrieval quality.
corpus.chunking.prefix_titleboolfalseStart each chunk with <title> — <heading path>, before embedding and keyword indexing. Joins the fingerprint when on: turning it on rebuilds the index.
corpus:
  source: corpora/gcp-platform-support/
  embedding:
    model: voyage-3
  chunking:
    chunk_size: 512
    overlap: 64

Supported file types: .pdf, .md / .markdown, .html / .htm.

Embedding: requires a VOYAGE_API_KEY environment variable.

Incremental ingestion: ingest skips a file when its bytes and the embedding, chunking and source_url_template settings are unchanged. Edit a file and only that file is rebuilt. Change a setting and every file is rebuilt. Delete a file and its document is pruned. Until ingest runs after a settings change, chat answers 409 index_out_of_date. See Ingestion Pipeline.


agent

Selects the client’s template with agent.template (required, no default) and tunes it. The keys below are the support graph’s (template: documents). Each template accepts only its own keys; the text-to-SQL keys are in their own section below.

KeyTypeDefaultDescription
agent.templatestring—documents or database. A name with no registered template fails at load.
agent.modelstring—OpenRouter model id for a Claude model, such as anthropic/claude-haiku-4.5 (D14). Only Claude models read search_result blocks, so another model cannot answer or cite. Every model call in the graph uses it. It must have a row in config/pricing/claude.yaml, or startup fails. The shipped client runs anthropic/claude-haiku-4.5.
agent.structured_modelstringagent.modelModel for every structured-output call: grading, rewriting, SQL generation and repair, the ticket draft. Any model that follows a JSON schema, such as deepseek/deepseek-v4.1-flash; the cited answer stays on agent.model. Must have a price row (D14).
agent.system_prompt_filestring—Path to the answering prompt, relative to the repo root. grade.md, rewrite.md and ticket_draft.md must sit beside it.
agent.max_tokensint4096Maximum output tokens for the answering call. The grade, rewrite and draft calls have fixed limits.
agent.retrieval_drop_floorfloat0.3Similarity below which a retrieved chunk is discarded before the model sees it. Applied by retrieve and the dense half of Level 2.
agent.escalate_belowfloat0.45Similarity below which the best surviving chunk fails Level 1. Level 2 has no cosine floor.
agent.confidence_thresholdfloat0.6Groundedness score below which a level falls short. Applies at both levels.
agent.corrective.enabledbooltrueWhether a turn that fails Level 1 gets corrective retrieval or goes straight to a ticket offer.
agent.corrective.query_rewritesint3Query variants the Level 2 rewrite returns, each embedded and searched. Between 1 and 5.
agent:
  template: documents
  model: anthropic/claude-haiku-4.5
  system_prompt_file: prompts/gcp-platform-support/answer.md
  max_tokens: 2048
  retrieval_drop_floor: 0.3
  escalate_below: 0.45
  confidence_threshold: 0.6
  corrective:
    enabled: true
    query_rewrites: 3

Unknown keys fail at load. AgentConfig forbids extra keys. mode, tools and effort belonged to the retired loop engine, and a config that still sets one is rejected rather than silently ignored.

Falling short of a threshold does not file a ticket. At Level 1 it sends the turn to Level 2, or to a conversational reply if the grader called it a greeting. At Level 2 it produces a drafted ticket the user is asked to confirm. See The Guardrail.

escalate_below must exceed retrieval_drop_floor. They act on the same number at different points: the drop floor discards, the escalate floor routes. If the escalate floor were the lower of the two, it could never fire, because every surviving hit is at or above the drop floor by construction. The config validator rejects that relationship at startup. See The Guardrail.

One pass, no iteration cap. A turn runs at most seven nodes: Level 1, Level 2, the ticket offer and the ticket itself.


agent (database)

The text-to-SQL template’s keys (template: database). A database client takes no corpus: or retrieval: block; either one fails at load.

KeyTypeDefaultDescription
agent.modelstring—OpenRouter id of a Claude model, priced in config/pricing/claude.yaml like any other.
agent.structured_modelstringagent.modelModel for every structured-output call: grading, rewriting, SQL generation and repair, the ticket draft. Any model that follows a JSON schema, such as deepseek/deepseek-v4.1-flash; the cited answer stays on agent.model. Must have a price row (D14).
agent.system_prompt_filestring—Path to answer.md; generate.md and ticket_draft.md must sit beside it.
agent.max_tokensint4096Maximum output tokens for the answering call.
agent.database.dialectstring—sqlite only. A Postgres client would be a second dialect, not another template.
agent.database.pathstring—SQLite file, relative to the repo root. A missing file is not a load error: chat answers 409 until it exists (make data-bird for the demo).
agent.context.sourcestring—The notes folder: descriptions/<table>.csv, glossary.md, rules.md. Merged with the introspected DDL into the schema context at ingest.
agent.guard.row_limitint200Rows returned to the answering call; more are cut and the result says it was truncated.
agent.guard.timeout_msint5000A query still running after this is interrupted. SQLite has no statement timeout, so a progress handler enforces it.
agent.repair_attemptsint2Repairs allowed after a rejected or failed query before the turn escalates. Between 0 and 3.
agent:
  template: database
  model: anthropic/claude-haiku-4.5
  system_prompt_file: prompts/f1-analyst/answer.md
  database:
    dialect: sqlite
    path: data/bird/formula_1.sqlite
  context:
    source: corpora/f1-analyst/
  guard:
    row_limit: 200
    timeout_ms: 5000
  repair_attempts: 1

Changing the database or a notes file needs an ingest. The schema context is fingerprinted from the DDL and the notes; until make ingest runs, chat answers 409.


handoff

Required for every client. What happens when a turn can’t be answered from the sources (D9, amended). The decision is the template’s and is made in Python; this block picks only the action. The block is a union tagged by mode, so a ticket key under mode: message fails at load.

KeyTypeDefaultDescription
handoff.modemessage | ticketmessagemessage: reply with fixed text, no ticket and no model call. ticket: draft a ticket, offer it, file it once on the user’s confirmation.
handoff.messagestring—message mode only, and required there. The whole reply; name a contact.
handoff.categoriesmap or list—ticket mode only, and required there. Ticket categories the draft may use. A map gives each id a label for the offer; a list uses the id with spaces. Must include other.
handoff.product_areaslist[string][]ticket mode. Empty: the draft has no product-area field.
handoff.queuestring—ticket mode. Queue sent with the ticket. Unset, the ticket service routes by product area.
handoff.teamstringplatform teamticket mode. Who the offer and the failure message say will take the ticket.
handoff.preamblestringThat one needs a human.ticket mode. First sentence of the ticket offer.
handoff:
  message: "I couldn't find that in the documentation. Email support@acme.com."
handoff:
  mode: ticket
  queue: data-team
  team: data team
  categories: [missing_data, data_request, other]

A message turn’s trail ends in a decline step and its outcome is decline; a ticket turn’s ends in escalate, then ticket once confirmed.


retrieval (optional)

How the index is queried (D12). Every key defaults to today’s behaviour, and a file without the block loads and retrieves identically. All keys are query-side, so editing them needs no re-ingest. Unknown keys fail at load.

KeyTypeDefaultDescription
retrieval.top_kint5Chunks kept per ranked list and after fusion. Must be above 0.
retrieval.rrf_kint60Reciprocal rank fusion constant. Must be above 0. Only affects Level 2.
retrieval.keyword.enabledbooltrueWhether Level 2 also runs full-text search on the rewrite’s keywords.
retrieval:
  top_k: 5
  rrf_k: 60
  keyword:
    enabled: true

The drop floor and escalate_below stay under agent:: they are a validated pair of guardrail thresholds, not retriever parameters.


Model pricing

# config/pricing/claude.yaml — USD per million tokens
anthropic/claude-haiku-4.5:
  input: 1.00
  output: 5.00
  cache_write: 1.25   # the 5-minute TTL
  cache_read: 0.10

Every cost_usd in the system comes from this table: the step trail, the done event, the conversation total and the daily budget check. It is one file for the deployment, keyed by the exact model id a client config uses.

  • Checked in and dated. Anthropic publishes prices on its pricing page; no API returns them.
  • Copy every column. Cache rates are listed per model; don’t derive them from a multiplier.
  • An unpriced model fails startup. The registry calls price_for(agent.model) for every client at load.
  • An estimate, not the bill. Billed cost comes from the Admin API cost report. See Decisions → Known gaps.

limits

Controls per-client rate limiting and cost guardrails.

KeyTypeDefaultDescription
limits.rate_limit_per_minuteint20Maximum requests per minute for this client.
limits.daily_budget_usdfloat2.00Maximum spend in USD per day, at the rates in config/pricing/claude.yaml. Requests are rejected once the budget is exhausted.
limits:
  rate_limit_per_minute: 60
  daily_budget_usd: 2.00

evals (optional)

Configures automated evaluation against a golden set. Omit if not using evals.

KeyTypeDefaultDescription
evals.golden_setstring—Path to a .jsonl golden set, relative to the repo root.
evals.judge_modelstringanthropic/claude-sonnet-4.6Claude model used as the LLM judge for eval scoring.
evals:
  golden_set: evals/gcp-platform-support/golden.jsonl
  judge_model: anthropic/claude-sonnet-4.6

Complete example

The shipped config/gcp-platform-support.yaml, with comments and the tagline trimmed:

client_id: gcp-platform-support
name: "Cloud Platform Support"

branding:
  logo: assets/gcp-platform-support/logo.svg
  primary_color: "#1a73e8"
  assistant_name: "DeployBot"
  suggested_questions:
    - "My Cloud Run container fails to start — what does the PORT error mean?"
    - "Why won't my GKE node pool scale down after I deleted the workload?"
    - "Can you raise my Cloud Run instance quota for europe-west1?"

corpus:
  source: corpora/gcp-platform-support/
  embedding:
    model: voyage-3
  chunking:
    chunk_size: 512
    overlap: 64

agent:
  template: documents
  model: anthropic/claude-haiku-4.5
  system_prompt_file: prompts/gcp-platform-support/answer.md
  max_tokens: 2048
  retrieval_drop_floor: 0.3
  escalate_below: 0.45
  confidence_threshold: 0.6
  corrective:
    enabled: true
    query_rewrites: 3

handoff:
  mode: ticket
  categories:
    account_config: project configuration
    quota_or_billing: quota or billing
    incident: suspected incident
    access_request: access request
    docs_gap: documentation gap
    other: other
  product_areas: [cloud_run, gke, iam, other]
  preamble: >-
    That one needs a human: it depends on your own project configuration, and my
    knowledge base is public Google Cloud documentation only.

evals:
  golden_set: evals/gcp-platform-support/golden.jsonl
  judge_model: anthropic/claude-sonnet-4.6

limits:
  rate_limit_per_minute: 60
  daily_budget_usd: 2.00