ีupdate

This commit is contained in:
2026-07-29 13:50:00 +07:00
parent efa18ba800
commit 8fd72f8d37
7 changed files with 214 additions and 214 deletions
+12 -12
View File
@@ -8,14 +8,14 @@
└─────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────┐
│ AgentTool │
│ - name: String (identifier) │
│ - label: String (display name) │
│ - description: String (what it does) │
│ - parameters: JSON schema │
│ - execute::Function (main logic) │
│ - prepare_arguments::Union{Function, Nothing} │
│ - execution_mode::Union{ToolExecutionMode, Nothing} │
│ AgentTool
│ - name: String (identifier)
│ - label: String (display name)
│ - description: String (what it does)
│ - parameters: JSON schema
│ - execute::Function (main logic)
│ - prepare_arguments::Union{Function, Nothing}
│ - execution_mode::Union{ToolExecutionMode, Nothing}
└─────────────────────────────────────────────────────────────────────────────┘
┌───────────────┼───────────────┐
@@ -47,8 +47,8 @@
┌────────────────────────────────────────────────────────┐
│ AgentLoop.executeToolCalls() │
│ - Extract ToolCalls from message content │
│ - Determine execution mode (sequential/parallel) │
│ - Extract ToolCalls from message content
│ - Determine execution mode (sequential/parallel)
└────────────────────────────────────────────────────────┘
├─► executeToolCallsSequential()
@@ -77,7 +77,7 @@
┌────────────────────────────────────────────────────────┐
│ ToolResultMessage │
│ - tool_call_id: "ref to original ToolCall" │
│ - tool_call_id: "ref to original ToolCall"
│ - tool_name: "bash" │
│ - content: [TextContent("file1.md\nfile2.md\n")] │
│ - is_error: false │
@@ -85,7 +85,7 @@
┌────────────────────────────────────────────────────────┐
│ AgentState.messages.append(tool_result) │
│ AgentState.messages.append(tool_result)
│ - Next turn: LLM sees tool results │
└────────────────────────────────────────────────────────┘
```