How agentera/agently works
Agently is an AI application runtime framework. A typical run starts with an application creating an Agent, which executes a request through prompt construction and a pluggable model provider, then parses and returns structured results. Agents can also invoke observable Actions, bind Skills, and run task or signal-driven workflows. The README documents these capabilities, but sampled source does not establish every runtime call path; edges below use documented relationships, and unsampled subsystems are represented by existing directories.
Main entry points: AgentExecution Agent execution · ModelRequester Model providers · Agent.py Agent · base.py Agently framework
Components 23
Agent runtime
- Agently framework
agently/base.py - Agent
agently/core/Agent.py - Agent execution
agently/builtins/plugins/AgentExecution - Execution result
agently/core/application/AgentExecution/Result.py - Task context
agently/core/context/TaskContext.py
Model and output
- Prompt generation
agently/builtins/plugins/PromptGenerator/AgentlyPromptGenerator.py - Model request
agently/core/model/ModelRequest.py - Model providers
agently/builtins/plugins/ModelRequester - Structured output
agently/core/model/StructuredOutputParser.py
Actions and Skills
- Action runtime
agently/core/operation/Action/ActionDispatcher.py - Action executors
agently/builtins/plugins/ActionExecutor - Execution resources
agently/builtins/plugins/ExecutionResourceProvider - Skill library
agently/core/application/SkillLibrary/SkillLibrary.py
Workflow orchestration
- Task Board
agently/core/orchestration/TaskBoard - Task DAG
agently/core/orchestration/TaskDAG - Dynamic Task
agently/core/application/DynamicTask/DynamicTask.py - TriggerFlow
agently/core/orchestration/TriggerFlow
State and services
- Task workspace
agently/core/TaskWorkspace/TaskWorkspace.py - Record store
agently/core/storage/RecordStore.py - Runtime events
agently/core/runtime/EventCenter.py - FastAPI integration
agently/integrations/fastapi.py
Other components
- Application
- Model service
Connections 23
- Application → Agently framework: creates runtime
- Agently framework → Agent: provides Agent
- Agent → Agent execution: starts run
agently/builtins/plugins/AgentExecution/long_task/TaskShared.py - Agent execution → Prompt generation: builds prompt
- Agent execution → Model request: issues request
- Model request → Model providers: routes request
- Model providers → Model service: sends request
- Model service → Model providers: returns response
- Model providers → Structured output: parses response
- Agent execution → Execution result: returns result
- Agent execution → Action runtime: invokes Actions
- Action runtime → Action executors: dispatches Actions
- Action executors → Execution resources: uses resources
- Agent execution → Skill library: binds Skills
- Agent execution → Task context: records evidence
- Application → Dynamic Task: creates task
- Dynamic Task → Task DAG: executes graph
- Agent execution → Task Board: uses strategy
agently/builtins/plugins/AgentExecution/long_task/TaskShared.py - Application → TriggerFlow: defines workflow
- Agent execution → Task workspace: delivers artifacts
- Agent → Record store: uses memory
- Agent execution → Runtime events: emits observations
- Application → FastAPI integration: exposes service