mirror of
https://github.com/microsoft/autogen.git
synced 2025-08-10 01:32:03 +00:00

* add new autogen-studio renamed folder * remove old autogen-assistant files * formatting updates * add support for upsert/updates to agents and workflows * version bump, general fixes * support deleting db items * add support for summary method to flowmanager * formatting updates * update serverl urls * version bump * add support for updated metadata messages object to include sender information * formatting updates * update documentation and blog post * blog post update * add description field example to agent workflow spec * readme and blog update * Update website/blog/2023-12-01-AutoGenStudio/index.mdx Co-authored-by: Chi Wang <wang.chi@microsoft.com> * add fix to ensure working directory is cleared after each run * update version * minor updates * formatting updates --------- Co-authored-by: Chi Wang <wang.chi@microsoft.com>
49 lines
874 B
Python
49 lines
874 B
Python
import os
|
|
from typing_extensions import Annotated
|
|
import typer
|
|
import uvicorn
|
|
|
|
from .version import VERSION
|
|
|
|
app = typer.Typer()
|
|
|
|
|
|
@app.command()
|
|
def ui(
|
|
host: str = "127.0.0.1",
|
|
port: int = 8081,
|
|
workers: int = 1,
|
|
reload: Annotated[bool, typer.Option("--reload")] = False,
|
|
docs: bool = False,
|
|
):
|
|
"""
|
|
Launch the AutoGen Studio UI CLI .Pass in parameters host, port, workers, and reload to override the default values.
|
|
"""
|
|
|
|
os.environ["AUTOGENUI_API_DOCS"] = str(docs)
|
|
|
|
uvicorn.run(
|
|
"autogenstudio.web.app:app",
|
|
host=host,
|
|
port=port,
|
|
workers=workers,
|
|
reload=reload,
|
|
)
|
|
|
|
|
|
@app.command()
|
|
def version():
|
|
"""
|
|
Print the version of the AutoGen Studio UI CLI.
|
|
"""
|
|
|
|
typer.echo(f"AutoGen Studio UI CLI version: {VERSION}")
|
|
|
|
|
|
def run():
|
|
app()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app()
|