Skip to content

Document how agents and tools receive configuration from the UI. #1436

Closed as not planned

Description

@esnible

The env vars are documented in scattered locations, and the platform-injected
defaults are only documented in code.

Here's what exists:

┌──────────────────────────────────────────────────────────┬───────────────┬───────────────────────────────────────────┐    
│                         Category                         │     Vars      │             Where documented              │
├──────────────────────────────────────────────────────────┼───────────────┼───────────────────────────────────────────┤    
│ LLM config (LLM_API_BASE, LLM_API_KEY, LLM_MODEL)        │ User-supplied │ docs/local-models.md — explicit table     │
├──────────────────────────────────────────────────────────┼───────────────┼───────────────────────────────────────────┤    
│ MCP connection (MCP_URL, MCP_URLS)                       │ User-supplied │ docs/new-tool.md                          │    
├──────────────────────────────────────────────────────────┼───────────────┼───────────────────────────────────────────┤    
│ .env import format (how to set any var)                  │ User-supplied │ docs/new-agent.md, docs/dev-guide.md      │    
├──────────────────────────────────────────────────────────┼───────────────┼───────────────────────────────────────────┤    
│ Platform-injected defaults (PORT, HOST,                  │ Always        │ Code only —                               │
│ OTEL_EXPORTER_OTLP_ENDPOINT, KEYCLOAK_URL, UV_CACHE_DIR) │ injected      │ kagenti/backend/app/core/constants.py     │    
├──────────────────────────────────────────────────────────┼───────────────┼───────────────────────────────────────────┤
│ AGENT_ENDPOINT (agent's own URL)                         │ Agents only   │ Code only — constants.py + agents.py      │    
└──────────────────────────────────────────────────────────┴───────────────┴───────────────────────────────────────────┘

The gap: There's no single doc page that says "here's every env var your agent/tool container will receive" and distinguishes platform-injected vars from user-supplied ones. The five DEFAULT_ENV_VARS plus AGENT_ENDPOINT are injected silently by the backend with only a Python docstring as documentation.

Would you like me to create that reference doc?

Activity

  1. added
    documentation
    ux
    on May 3, 2026
  2. esnible commented on May 4, 2026

    @esnible
    MemberAuthor

    It is worth pointing out that Kagenti does not have a "getting started" page for agent and tool developers.

    I believe the configuration that Kagenti provides to agents and tools is an important part of what the Kagenti service offers and should be front-and-center.

    A "getting started" page could link to that page. I asked Claude if we had a getting started page, it said

    ⏺ Looking at the repo structure and documentation, there isn't a dedicated "getting started" guide for agent and tool developers.
      Here's what exists:
    
      - docs/install.md — Installation guide (platform setup, not agent development)
      - docs/components.md — Component overview
      - kagenti/examples/ — Example agents/tools (closest thing to developer guidance)
      - docs/demos/README.md — Demo walkthroughs
      - AuthBridge demos in kagenti-extensions — Zero-trust agent examples
    
  3. github-actions commented on Jul 21, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. If this issue is still relevant, please comment or remove the stale label.

  4. github-actions commented on Aug 4, 2026

    @github-actions

    This issue was closed because it has been stale for 14 days with no activity. Feel free to reopen if this is still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationstaleux

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions