Spaces:
Running
Running
Fix Agno workflow import
Browse files- src/workflows_v2.py +3 -4
src/workflows_v2.py
CHANGED
|
@@ -5,8 +5,8 @@ from agno.agent import Agent
|
|
| 5 |
from agno.models.openai import OpenAIChat
|
| 6 |
from agno.tools.googlesearch import GoogleSearchTools
|
| 7 |
from agno.utils.pprint import pprint_run_response
|
| 8 |
-
from agno.workflow import
|
| 9 |
-
from agno.workflow.
|
| 10 |
from pydantic import BaseModel, Field
|
| 11 |
|
| 12 |
from dotenv import load_dotenv
|
|
@@ -443,8 +443,7 @@ async def startup_validation_execution(
|
|
| 443 |
startup_validation_workflow = Workflow(
|
| 444 |
name="Startup Idea Validator",
|
| 445 |
description="Comprehensive startup idea validation with market research and competitive analysis",
|
| 446 |
-
steps=startup_validation_execution
|
| 447 |
-
workflow_session_state={}, # Initialize empty workflow session state
|
| 448 |
)
|
| 449 |
|
| 450 |
|
|
|
|
| 5 |
from agno.models.openai import OpenAIChat
|
| 6 |
from agno.tools.googlesearch import GoogleSearchTools
|
| 7 |
from agno.utils.pprint import pprint_run_response
|
| 8 |
+
from agno.workflow.v2.types import WorkflowExecutionInput
|
| 9 |
+
from agno.workflow.v2.workflow import Workflow
|
| 10 |
from pydantic import BaseModel, Field
|
| 11 |
|
| 12 |
from dotenv import load_dotenv
|
|
|
|
| 443 |
startup_validation_workflow = Workflow(
|
| 444 |
name="Startup Idea Validator",
|
| 445 |
description="Comprehensive startup idea validation with market research and competitive analysis",
|
| 446 |
+
steps=startup_validation_execution # Single function replaces all steps (Workflows 2.0 pattern)
|
|
|
|
| 447 |
)
|
| 448 |
|
| 449 |
|