mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 14:08: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
@@ -6,7 +6,11 @@ import os
|
||||
from dotenv import load_dotenv
|
||||
from temporalio.worker import Worker
|
||||
|
||||
from activities.tool_activities import ToolActivities, dynamic_tool_activity
|
||||
from activities.tool_activities import (
|
||||
ToolActivities,
|
||||
dynamic_tool_activity,
|
||||
mcp_list_tools,
|
||||
)
|
||||
from shared.config import TEMPORAL_TASK_QUEUE, get_temporal_client
|
||||
from workflows.agent_goal_workflow import AgentGoalWorkflow
|
||||
|
||||
@@ -48,7 +52,7 @@ async def main():
|
||||
print("===========================================================\n")
|
||||
|
||||
print("Worker ready to process tasks!")
|
||||
logging.basicConfig(level=logging.WARN)
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
|
||||
# Run the worker
|
||||
with concurrent.futures.ThreadPoolExecutor(max_workers=100) as activity_executor:
|
||||
@@ -60,7 +64,9 @@ async def main():
|
||||
activities.agent_validatePrompt,
|
||||
activities.agent_toolPlanner,
|
||||
activities.get_wf_env_vars,
|
||||
activities.mcp_tool_activity,
|
||||
dynamic_tool_activity,
|
||||
mcp_list_tools,
|
||||
],
|
||||
activity_executor=activity_executor,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user