Expand description
Agent execution service — single place handling conversation history loading, memory injection, tool coordination, observability, usage/cost, token budget, and loop detection.
Structs§
- Agent
Request - Request for unified agent execution.
- Execute
- Unified agent execution service — the single place handling:
- Execution
Result - Model
Override - Canonical per-request model override used by the LLM interceptor.
- Tools
- Tenant-aware tool capability.
Enums§
- Agent
Source - Result of
Execute::runincluding resolution metadata.
Traits§
- RunTracker
- Trait for tracking active agent runs. Implemented by the root crate’s
ActiveRunsand injected intoExecutevia the Context.
Functions§
- request_
tenant_ ctx - Request-path tenant: open the realm (or isolate) then intercept
TenantContext. Background jobs keep usingtenant_scope(isolate only, no intercept). - request_
user_ scope - JWT
user:isolate when no tenant is present. Does not inventTenantContext. - tenant_
scope - Derive tenant for
executewithout requiring the postgres-only resolver module. Scope tools and execution to one tenant. Isolate wins over intercept. - user_
id_ from_ ctx - Derive user/tenant scope:
Executeisolate label (striptenant:/user:), thenTenantContextintercept, thenfallback.