Files
temporal-ai-agent/models/tool_definitions.py
2025-01-03 15:05:27 -08:00

26 lines
532 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 ToolsData:
tools: List[ToolDefinition]
description: str = "Description of the tools purpose and overall goal"
example_conversation_history: str = (
"Example conversation history to help the AI agent understand the context of the conversation"
)