forge.agent
Python agent package; imports are explicit from this package.
Python agent package; imports are explicit from this package.
Package contract
| Field | Value |
|---|---|
| Language | python |
| Source version | 0.1.0 |
| Manifest | forge-py/pyproject.toml |
| Source files | 7 |
| Evidence | Source reference; registry publication and runtime conformance are separate checks |
Import boundary
import forge.agentUse a source checkout or your verified private registry. Manifest coordinates identify the package; they do not establish that a public registry release exists.
Source reference
Download package reference JSON. Each original source file and generated declaration artifact has its own SHA-256 digest. Function bodies and constant values are omitted from downloads. These are source declaration inventories, not compiler-resolved rustdoc, TypeDoc, DocC, or Dokka output. Private modules can contain public declarations that are not reachable through the package boundary; consult the entry point before importing.
agent.py
Read declaration text · 9 declaration entries
class AgentConfig()
class AgentOutput()
class Agent(ABC)
def __init__(self, config: AgentConfig) -> None
def config(self) -> AgentConfig
def health(self) -> HealthProfile
def lifecycle(self) -> LifecycleManager
def state(self) -> LifecycleState
async def run(self, input_text: str) -> AgentOutputloop_control.py
Read declaration text · 7 declaration entries
class LoopControl(ABC)
def should_continue(self, step: int, result: GenerateResult) -> bool
class StopOnCompleteControl(LoopControl)
def should_continue(self, step: int, result: GenerateResult) -> bool
class MaxStepsControl(LoopControl)
def __init__(self, max_steps: int) -> None
def should_continue(self, step: int, result: GenerateResult) -> boolmessaging.py
Read declaration text · 2 declaration entries
class AgentMessage()
def to_dict(self) -> dict[str, Any]subagent.py
Read declaration text · 1 declaration entries
class SubAgentConfig()tool_loop.py
Read declaration text · 3 declaration entries
class ToolLoopAgent(Agent)
def __init__(self, config: AgentConfig, model: LanguageModel, tool_registry: ToolRegistry, tool_executor: ToolExecutor, loop_control: LoopControl | None=None) -> None
async def run(self, input_text: str) -> AgentOutputworkflow.py
Read declaration text · 5 declaration entries
class WorkflowStep()
class SequentialWorkflow()
def __init__(self, steps: list[WorkflowStep]) -> None
def steps(self) -> list[WorkflowStep]
def resolve_input(self, template: str, context: dict[str, str]) -> str