mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 14:08:08 +01:00
33 lines
509 B
Python
33 lines
509 B
Python
from dataclasses import dataclass, field
|
|
from typing import List, Dict, Any
|
|
|
|
|
|
@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]
|
|
|
|
|
|
@dataclass
|
|
class ToolInvocation:
|
|
tool: str
|
|
args: Dict[str, Any]
|
|
|
|
|
|
@dataclass
|
|
class MultiToolSequence:
|
|
tool_invocations: List[ToolInvocation] = field(default_factory=list)
|