How sarthakrastogi/enterprise-agent-system works
Enterprise Agent System is an AWS-hosted platform for company AI agents. The main workflow is signed-in user → Streamlit chat → shared AgentCore runtime, where the request is authenticated and an agent is built and run → governed gateway tools or other integrations → streamed response. Agent definitions, memory, safety, and observability are distinct supporting stages. The README documents infrastructure capabilities whose Terraform implementations were not excerpted; those nodes and links reflect README claims, not inspected Terraform internals.
Main entry points: runtime/app.py Runtime entrypoint · builder.py Agent builder · gateway.tf AgentCore Gateway · frontend/app.py Chat UI
Components 26
Chat Experience
- Chat UI
frontend/app.py
Agent Runtime
- Agent definitions
agents - Agent specification
eap/spec.py - Agent registry
eap/registry.py - Runtime entrypoint
eap/runtime/app.py - Runtime configuration
eap/runtime/config.py - Caller identity
eap/runtime/identity.py - Agent builder
eap/runtime/builder.py - Tool adapters
eap/runtime/tools.py
Tools and Governance
- AgentCore Gateway
infra/gateway.tf - Cedar tool policy
infra/policy.tf - Request interceptor
lambdas/interceptor/handler.py - Knowledge MCP server
mcp_servers/knowledge/server.py - Ticket tools
lambdas/tickets/handler.py - Code interpreter
eap/runtime/tools.py
Platform Services
- Conversation memory
eap/runtime/memory.py - Bedrock model and guardrail
infra/guardrail.tf - Cognito SSO and authorization
infra/auth.tf - AgentCore Memory
infra/memory.tf - Agent metrics
eap/runtime/metrics.py - CloudWatch observability
infra/observability.tf - Online evaluations
infra/evals.tf
Other components
- Signed-in user
- CloudWatch
- Bedrock model service
- AgentCore Runtime
Connections 29
- Signed-in user → Chat UI: asks
README.md - Chat UI → AgentCore Runtime: invokes with JWT
README.md - AgentCore Runtime → Runtime entrypoint: runs shared image
README.md - Runtime entrypoint → Runtime configuration: loads settings
eap/runtime/app.py - Runtime entrypoint → Caller identity: derives caller
eap/runtime/app.py - Runtime entrypoint → Agent registry: loads agent
eap/runtime/app.py - Agent registry → Agent definitions: imports definitions
eap/registry.py - Agent definitions → Agent specification: defines agents
agents/it_helpdesk.py - Runtime entrypoint → Agent builder: builds agent
eap/runtime/app.py - Agent builder → Tool adapters: loads tool adapters
eap/runtime/builder.py - Agent builder → Conversation memory: recalls and checkpoints
eap/runtime/builder.py - Runtime entrypoint → Conversation memory: stores completed turn
eap/runtime/app.py - Conversation memory → AgentCore Memory: reads and writes
README.md - Agent builder → Bedrock model service: creates model client
eap/runtime/builder.py - Bedrock model service → Bedrock model and guardrail: uses configured guardrail
README.md - Agent builder → AgentCore Gateway: requests user tools
eap/runtime/builder.py - Tool adapters → AgentCore Gateway: lists tools with JWT
eap/runtime/tools.py - AgentCore Gateway → Cedar tool policy: checks permissions
README.md - AgentCore Gateway → Request interceptor: dispatches requests
README.md - AgentCore Gateway → Knowledge MCP server: routes MCP calls
README.md - AgentCore Gateway → Ticket tools: routes tool calls
README.md - Agent builder → Code interpreter: adds built-in tool
eap/runtime/builder.py - Cognito SSO and authorization → AgentCore Runtime: authorizes JWT
README.md - Runtime entrypoint → Agent metrics: publishes turn metrics
eap/runtime/app.py - Agent metrics → CloudWatch: publishes metrics
eap/runtime/metrics.py - CloudWatch observability → CloudWatch: configures telemetry
README.md - Online evaluations → CloudWatch: reports evaluations
README.md - Agent builder → Agent builder: delegates to sub-agent
eap/runtime/builder.py - Runtime entrypoint → Chat UI: streams response
README.md