-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy pathmain.py
More file actions
33 lines (23 loc) · 1014 Bytes
/
main.py
File metadata and controls
33 lines (23 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
"""DevUI entrypoint for the local Foundry multi-agent workflow.
This mirrors the structure of `multi_workflow_ghmodel_devui/main.py` but
uses the locally defined planning + research workflow found in
`workflow/workflow.py`.
"""
from agent_framework.devui import serve
from dotenv import load_dotenv
from workflow import workflow
import logging
# Load .env early so that any provider specific environment variables are present
load_dotenv()
# noqa: E402 (import after dotenv)
def main() -> None:
"""Launch the planning/research workflow in the DevUI."""
logging.basicConfig(level=logging.INFO, format="%(message)s")
logger = logging.getLogger(__name__)
logger.info("Starting FoundryLocal Planning Workflow")
logger.info("Available at: http://localhost:8091")
logger.info("Entity ID: workflow_foundrylocal_plan_research")
# Serve the composed workflow
serve(entities=[workflow], port=8091, auto_open=True)
if __name__ == "__main__": # pragma: no cover
main()