mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 22:18:09 +01:00
29 lines
668 B
Python
29 lines
668 B
Python
from dataclasses import dataclass
|
|
from typing import List
|
|
|
|
|
|
@dataclass
|
|
class ToolArgument:
|
|
name: str
|
|
type: str
|
|
description: str
|
|
|
|
|
|
@dataclass
|
|
class ToolDefinition:
|
|
name: str
|
|
description: str
|
|
arguments: List[ToolArgument]
|
|
|
|
@dataclass
|
|
class AgentGoal:
|
|
id: 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"
|
|
)
|