-
Notifications
You must be signed in to change notification settings - Fork 893
Python: Add declarative workflow runtime #2815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Python Test Coverage Report •
Python Unit Test Overview
|
||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
| self, | ||
| *, | ||
| agent_factory: AgentFactory | None = None, | ||
| agents: Mapping[str, Any] | None = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't we tighten this? AgentProtocol and AgentExecutor?
| if "kind" in agent_def: | ||
| # Convert to YAML and use AgentFactory | ||
| yaml_str = yaml.dump(agent_def) | ||
| return self._agent_factory.create_agent_from_yaml(yaml_str) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could just add a create_agent_from_dict method to the agent factory, so that we don't have to yaml dump first?
| import asyncio | ||
| from pathlib import Path | ||
|
|
||
| from agent_framework_declarative import WorkflowFactory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| from agent_framework_declarative import WorkflowFactory | |
| from agent_framework.declarative import WorkflowFactory |
Motivation and Context
Adds a graph-based runtime for executing declarative YAML workflows, enabling multi-agent orchestration without writing Python code.
Features
Samples
Description
Contribution Checklist