YAML/JSON-based declarative agent and workflow definitions.
AgentFactory- Creates agents from declarative definitionsWorkflowFactory- Creates workflows from declarative definitionsWorkflowState- State management for declarative workflowsProviderTypeMapping- Maps provider types to implementationsDeclarativeLoaderError/ProviderLookupError- Error types
ExternalInputRequest/ExternalInputResponse- Human-in-the-loop supportAgentExternalInputRequest/AgentExternalInputResponse- Agent-level input requests
from agent_framework.declarative import AgentFactory, WorkflowFactory
# Create agent from YAML file
agent_factory = AgentFactory()
agent = agent_factory.create_agent_from_yaml_path("agent.yaml")
# Create workflow from YAML file
workflow_factory = WorkflowFactory()
workflow = workflow_factory.create_workflow_from_yaml_path("workflow.yaml")from agent_framework.declarative import AgentFactory, WorkflowFactory
# or directly:
from agent_framework_declarative import AgentFactory