mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 05:58:08 +01:00
Model Context Protocol (MCP) support with new use case (#42)
* initial mcp * food ordering with mcp * prompt eng * splitting out goals and updating docs * a diff so I can get tests from codex * a diff so I can get tests from codex * oops, missing files * tests, file formatting * readme and setup updates * setup.md link fixes * readme change * readme change * readme change * stripe food setup script * single agent mode default * prompt engineering for better multi agent performance * performance should be greatly improved * Update goals/finance.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update activities/tool_activities.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * co-pilot PR suggested this change, and now fixed it * stronger wording around json format response * formatting * moved docs to dir * moved image assets under docs * cleanup env example, stripe guidance * cleanup --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
1811e4cf59
commit
5d55a9fe80
@@ -9,9 +9,9 @@ from temporalio.api.enums.v1 import WorkflowExecutionStatus
|
||||
from temporalio.client import Client
|
||||
from temporalio.exceptions import TemporalError
|
||||
|
||||
from goals import goal_list
|
||||
from models.data_types import AgentGoalWorkflowParams, CombinedInput
|
||||
from shared.config import TEMPORAL_TASK_QUEUE, get_temporal_client
|
||||
from tools.goal_registry import goal_list
|
||||
from workflows.agent_goal_workflow import AgentGoalWorkflow
|
||||
|
||||
app = FastAPI()
|
||||
@@ -24,8 +24,8 @@ load_dotenv()
|
||||
def get_initial_agent_goal():
|
||||
"""Get the agent goal from environment variables."""
|
||||
env_goal = os.getenv(
|
||||
"AGENT_GOAL", "goal_choose_agent_type"
|
||||
) # if no goal is set in the env file, default to choosing an agent
|
||||
"AGENT_GOAL", "goal_event_flight_invoice"
|
||||
) # if no goal is set in the env file, default to single agent mode
|
||||
for listed_goal in goal_list:
|
||||
if listed_goal.id == env_goal:
|
||||
return listed_goal
|
||||
|
||||
Reference in New Issue
Block a user