Files
microsoft--semantic-kernel/docs/decisions/diagrams/tool-call-auto-invoke.mmd
T
wehub-resource-sync b957a53def
CodeQL / Analyze (csharp) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:21:23 +08:00

27 lines
909 B
Plaintext

---
title: Tool Call with Auto Invoke Kernel Functions
---
sequenceDiagram
participant Client
participant Plugin
participant Kernel
participant AI Service
participant LLM
Client->>+AI Service: Invoke Chat Completion with Auto Function Call
AI Service->>+LLM: Chat Completion
loop For Each Tool LLM Requires
LLM->>-AI Service: Tool Call Request
AI Service->>AI Service: Update Local Chat History
loop For Each Tool in Tool Call Request
AI Service->>+Kernel: Function Call
Kernel->>+Plugin: Invoke Function
Plugin->>-Kernel: Function Result
Kernel->>-AI Service: Function Call Result
end
AI Service->>AI Service: Update Local Chat History
AI Service->>+LLM: Tool Call Response
end
LLM->>-AI Service: Chat Completion Response
AI Service->>AI Service: Update Local Chat History
AI Service->>-Client: Chat Completion Response