Repository navigation
Align examples with .NET samples - #430
Conversation
There was a problem hiding this comment.
Pull request overview
This PR refreshes several Go examples so their scenarios and flow align more closely with corresponding .NET samples, including updates to memory usage, image inputs, MCP tooling instructions, and workflow-based examples.
Changes:
- Updates the memory example to persist richer user state (name + age) and demonstrate session serialization/deserialization.
- Refactors multiple workflow examples (human-in-the-loop guessing game, conditional multi-selection routing, group chat tool approval) to match updated scenarios and outputs.
- Updates the image example to embed a local image asset and send it as in-memory base64 data instead of a remote URI.
Show a summary per file
| File | Description |
|---|---|
| examples/03-workflows/human-in-the-loop/human_in_the_loop_basic/main.go | Replaces the approval pause flow with a request-port-driven number guessing game. |
| examples/03-workflows/conditional-edges/03_multi_selection/main.go | Extends analysis routing to compute and propagate an email summary through the workflow. |
| examples/03-workflows/agents/group_chat_tool_approval/main.go | Improves agent metadata, termination logic, and console output formatting for the group chat workflow. |
| examples/02-agents/providers/foundry/step09_mcp_client_as_tools/main.go | Updates agent instructions to encourage explicit use of the Microsoft Learn MCP tool. |
| examples/02-agents/agents/step11_using_images/main.go | Switches the image input from remote URI to embedded base64 data content. |
| examples/01-get-started/04_memory/main.go | Expands the memory provider to store/restore user name + age and demonstrates session persistence. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 6/7 changed files
- Comments generated: 4
- Review effort level: Low
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Copilot fix ci |
Co-authored-by: qmuntal <3747816+qmuntal@users.noreply.github.com>
Addressed in Local validation now passes:
|
Cross-repo parity review — aligns well with .NETThis PR explicitly targets alignment with ✅ Changes that are well-aligned
i️ Minor observation (no action required)
No cross-repo consistency issues found. The PR preserves semantic parity with the .NET implementations for all changed examples and adds a Go-equivalent of the .NET
|
Summary
Validation
go test -count=1 ./examples/01-get-started/04_memory ./examples/02-agents/agents/step11_using_images ./examples/02-agents/providers/foundry/step09_mcp_client_as_tools ./examples/03-workflows/agents/group_chat_tool_approval ./examples/03-workflows/conditional-edges/03_multi_selection ./examples/03-workflows/human-in-the-loop/human_in_the_loop_basic