-
Notifications
You must be signed in to change notification settings - Fork 606
feat(models): tool calling flow diagram #1222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Mintlify preview ID generated: preview-mdrxym-1761932888-352d89c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a Mermaid sequence diagram to the Tool Calling section of the models documentation to visually illustrate the basic tool calling flow. The diagram demonstrates how a model handles parallel tool calls and processes their results.
Key Changes
- Adds a sequence diagram showing the interaction between User, Model, and Tools
- Illustrates parallel tool execution using Mermaid's
parsyntax - Uses a weather query example consistent with the code examples later in the document
| sequenceDiagram | ||
| participant U as User | ||
| participant M as Model | ||
| participant T as Tools | ||
| U->>M: "What's the weather in SF and NYC?" | ||
| M->>M: Analyze request & decide tools needed | ||
| par Parallel Tool Calls | ||
| M->>T: get_weather("San Francisco") | ||
| M->>T: get_weather("New York") | ||
| end | ||
| par Tool Execution | ||
| T-->>M: SF weather data | ||
| T-->>M: NYC weather data | ||
| end | ||
| M->>M: Process results & generate response | ||
| M->>U: "SF: 72°F sunny, NYC: 68°F cloudy" |
Copilot
AI
Oct 31, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The diagram lacks consistent styling found in other Mermaid diagrams throughout the documentation. Consider adding an init block with fontFamily, curve settings, and themeVariables as seen in agents.mdx and short-term-memory.mdx (e.g., %%{ init: { "fontFamily": "monospace", "themeVariables": {"edgeLabelBackground": "transparent"} } }%%).
No description provided.