Skip to content
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

[Autogen Studio Feature Request]: The ability to export agents and workflows as python code. #1287

Closed
tjthejuggler opened this issue Jan 16, 2024 · 4 comments
Labels
proj-studio Related to AutoGen Studio.

Comments

@tjthejuggler
Copy link

Is your feature request related to a problem? Please describe.

I want to create workflows in Studio and then be able to export them to be used in other programs. Sorry if this is already a feature, but I've been unable to find any way to do it.

Describe the solution you'd like

No response

Additional context

No response

@victordibia
Copy link
Collaborator

Hi @tjthejuggler ,

Thanks for opening this issue. I agree that it is important and we are already thinking of this.
Currently, we have an example notebook that shows how you can load a workflow spec (json) and run tasks against it in python code.

What we will need to add is the ability to download the workflow created in the UI.

import json

from autogenstudio import AgentWorkFlowConfig, AutoGenWorkFlowManager

# load an agent specification in JSON
agent_spec = json.load(open("agent_spec.json"))

# Creat a An AutoGen Workflow Configuration from the agent specification
agent_work_flow_config = AgentWorkFlowConfig(**agent_spec)

# # Create a Workflow from the configuration 
agent_work_flow = AutoGenWorkFlowManager(agent_work_flow_config) 

# # Run the workflow on a task
task_query = "What is the height of the Eiffel Tower?. Dont write code, just respond to the question."
agent_work_flow.run(message=task_query)

Does this address the use case you have in mind?

Image

I have added a work item to the task #1285 to track this.

@tjthejuggler
Copy link
Author

Yes, that is exactly what I was imagining, that would be awesome! Thanks so much for the response and for working on this awesome project!

@rmtbb
Copy link

rmtbb commented Feb 9, 2024

Thank you for making this awesome tool.

@monkeydust
Copy link

Also would like to see this. Autogenstudio is a great nocode way to get hooked but now finding myself wanting to step into the code for some deeper POCs but would be great to have a path from the Studio to help me achieve that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proj-studio Related to AutoGen Studio.
Projects
None yet
Development

No branches or pull requests

5 participants