autogen icon indicating copy to clipboard operation
autogen copied to clipboard

Expose ImportWorkflow Endpoint

Open ofimbres opened this issue 1 year ago • 2 comments

Why are these changes needed?

As of Sep 29th, there is an existing endpoint in autogen studio backend for exporting an entire workflow (including agents, models and skills), but no import workflow. This PR exposes a new endpoint for importing a workflow based on the output generated by export workflow and persist it into the database.

Checks

  • [X] I've included any doc changes needed for https://microsoft.github.io/autogen/. See https://microsoft.github.io/autogen/docs/Contribute#documentation to build and test documentation locally.
  • [X] I've added tests (if relevant) corresponding to the changes introduced in this PR.
  • [X] I've made sure all auto checks have passed.

ofimbres avatar Sep 29 '24 22:09 ofimbres

Hi,

@ofimbres , Thanks for this PR. Adding new datamodels tends to break existing db schema.
There is some work to be done to enable automatic database upgrade e..g, detect schema differences and update the database. (not specific to this PR, but useful overall for ags) Any chance you have explored this or have some thoughts?

victordibia avatar Oct 18 '24 20:10 victordibia

Hi,

@ofimbres , Thanks for this PR. Adding new datamodels tends to break existing db schema. There is some work to be done to enable automatic database upgrade e..g, detect schema differences and update the database. (not specific to this PR, but useful overall for ags) Any chance you have explored this or have some thoughts?

@victordibia This schema uses the same schema used for export. Export uses a new schema that is not defined by pydantic, as a dict. Now that there is a new version, I will look into the new architecture changes and rebase them

ofimbres avatar Oct 29 '24 23:10 ofimbres

Thanks for the contribution here @ofimbres ,

Given the recent rewrite of the AutoGen API and updates to AutoGen Studio (see docs below), I'll go ahead and close out this PR. Importantly, the new version of AGS has the concept of a Gallery that can be imported, downloaded, shared etc and IMO covers the functionality here.

Please feel free to reopen this if the new version does not fit your needs. image image


There is a new version of AutoGen, all behaviours are standardized on the updated AutoGen AgentChat api. See relevant documentation below.

See this video for a walkthrough of features - https://youtu.be/oum6EI7wohM

Designing With AI

  • AutoGen Studio documentation - https://microsoft.github.io/autogen/dev/user-guide/autogenstudio-user-guide/index.html
  • To learn about how code executors work ... https://microsoft.github.io/autogen/dev/user-guide/core-user-guide/design-patterns/code-execution-groupchat.html
  • How to convert any agentchat python code and use it in autogen studio - https://microsoft.github.io/autogen/dev/user-guide/autogenstudio-user-guide/usage.html#declarative-specification-of-componenents

victordibia avatar Feb 24 '25 18:02 victordibia