mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 22:18:09 +01:00
* 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>
42 lines
1.0 KiB
Python
42 lines
1.0 KiB
Python
from dataclasses import dataclass
|
|
from typing import Dict, List, Optional
|
|
|
|
|
|
@dataclass
|
|
class MCPServerDefinition:
|
|
"""Definition for an MCP (Model Context Protocol) server connection"""
|
|
|
|
name: str
|
|
command: str
|
|
args: List[str]
|
|
env: Optional[Dict[str, str]] = None
|
|
connection_type: str = "stdio"
|
|
included_tools: Optional[List[str]] = None
|
|
|
|
|
|
@dataclass
|
|
class ToolArgument:
|
|
name: str
|
|
type: str
|
|
description: str
|
|
|
|
|
|
@dataclass
|
|
class ToolDefinition:
|
|
name: str
|
|
description: str
|
|
arguments: List[ToolArgument]
|
|
|
|
|
|
@dataclass
|
|
class AgentGoal:
|
|
id: str
|
|
category_tag: str
|
|
agent_name: str
|
|
agent_friendly_description: str
|
|
tools: List[ToolDefinition]
|
|
description: str = "Description of the tools purpose and overall goal"
|
|
starter_prompt: str = "Initial prompt to start the conversation"
|
|
example_conversation_history: str = "Example conversation history to help the AI agent understand the context of the conversation"
|
|
mcp_server_definition: Optional[MCPServerDefinition] = None
|