The getting started example is not working any more for AG UI Integration
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- python
- Domain
- documentation
Research direction
Open agent-framework/integrations/ag-ui/backend-tool-rendering.md around line 549 and inspect the AG-UI chat client example. Compare its imports and tool-call display logic with the working changes shown in the issue. Done means the getting-started example no longer imports unavailable content classes and correctly displays tool calls and results.
Written by the indexing model from the issue text.
Description
Error thrown on executing the AG_UI Chat client -
Traceback (most recent call last):
File "...\AG_UI_ChatClient.py", line 6, in
from agent_framework import Agent, ToolCallContent, ToolResultContent
ImportError: cannot import name 'ToolCallContent' from 'agent_framework' (...\Lib\site-packages\agent_framework_init_.py)
Proposed changes that are working -
............
Create AG-UI chat client
chat_client = AGUIChatClient(**endpoint**=server_url)
..........
Display tool calls and results
for content in (update.contents or []):
content_type = getattr(content, "type", "")
if content_type == "function_call":
tool_name = getattr(content, "name", None) or "unknown"
print(f"\n\033[95m[Calling tool: {tool_name}]\033[0m")
elif content_type in {"function_result", "tool_result"}:
result = getattr(content, "result", None)
if result is None:
result = getattr(content, "tool_result", None)
result_text = result if isinstance(result, str) else str(result)
print(f"\033[94m[Tool result: {result_text}]\033[0m")
- Dominant language
- Mermaid
- Stars
- 263
- Forks
- 167
- Avg merge
- 3h 2m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MicrosoftDocs/semantic-kernel-docs
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
MicrosoftDocs/semantic-kernel-docs#434 · 1 reaction ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
-
Difficulty 3/5 1-2 days Newbie friendliness 78/100
All issues in MicrosoftDocs/semantic-kernel-docs
Similar issues
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
fullcalendar/fullcalendar#8106 ·