Python: Fix code samples in AGENTS.md files that fail pre-commit checks (#3779)

* Fix code samples in AGENTS.md files that fail pre-commit checks

* Fixes
This commit is contained in:
Evan Mattson
2026-02-10 16:15:36 +09:00
committed by GitHub
Unverified
parent 9f14a0f33f
commit 56603ab472
3 changed files with 156 additions and 122 deletions
+7 -2
View File
@@ -20,8 +20,13 @@ YAML/JSON-based declarative agent and workflow definitions.
```python
from agent_framework.declarative import AgentFactory, WorkflowFactory
agent = AgentFactory.create_from_file("agent.yaml")
workflow = WorkflowFactory.create_from_file("workflow.yaml")
# 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")
```
## Import Path