litellm - 💡(How to fix) Fix [Bug]: In playground the langgraph agent repsonse is not parsing properly [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#24777Fetched 2026-04-08 01:54:05
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×2closed ×1commented ×1

Code Example

sy @ c8eee6971ca36303.js:17
c8eee6971ca36303.js:1 Could not extract text from A2A response, showing raw JSON: Object
e_ @ c8eee6971ca36303.js:1
c8eee6971ca36303.js:1 Could not extract text from A2A response, showing raw JSON: Object
e_ @ c8eee6971ca36303.js:1
c8eee6971ca36303.js:1 Could not extract text from A2A response, showing raw JSON: Objectmessage: {role: 'agent', parts: Array(1), messageId: '28f53fb11e854382aedf98995e23ddac'}[[Prototype]]: Object
e_ @ c8eee6971ca36303.js:1
RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

What happened?

A bug happened!

<img width="1243" height="531" alt="Image" src="https://github.com/user-attachments/assets/6fe2c45c-a4c4-4231-ab7c-daea358b764b" /> <img width="438" height="177" alt="Image" src="https://github.com/user-attachments/assets/ee0373e1-6908-439b-b545-2517ad6c310f" />

Steps to Reproduce

  1. Create sample langgraph agent
  2. Add it via agents tab
  3. chat with created agent from playground tab

Relevant log output

sy @ c8eee6971ca36303.js:17
c8eee6971ca36303.js:1 Could not extract text from A2A response, showing raw JSON: Object
e_ @ c8eee6971ca36303.js:1
c8eee6971ca36303.js:1 Could not extract text from A2A response, showing raw JSON: Object
e_ @ c8eee6971ca36303.js:1
c8eee6971ca36303.js:1 Could not extract text from A2A response, showing raw JSON: Objectmessage: {role: 'agent', parts: Array(1), messageId: '28f53fb11e854382aedf98995e23ddac'}[[Prototype]]: Object
e_ @ c8eee6971ca36303.js:1

What part of LiteLLM is this about?

UI Dashboard

What LiteLLM version are you on ?

v1.82.4

Twitter / LinkedIn details

No response

extent analysis

Fix Plan

The fix involves modifying the JavaScript code to handle the A2A response correctly.

  • Update the c8eee6971ca36303.js file to parse the JSON response from the A2A request.
  • Add error handling to ensure the code doesn't break when encountering unexpected responses.

Example code snippet:

try {
  const response = await fetch('A2A_ENDPOINT');
  const jsonData = await response.json();
  const text = jsonData.parts[0].text;
  // Process the extracted text
} catch (error) {
  console.error('Error extracting text from A2A response:', error);
  // Display a user-friendly error message
}

Verification

To verify the fix, follow these steps:

  • Create a sample langgraph agent and add it via the agents tab.
  • Chat with the created agent from the playground tab.
  • Check the console logs for any errors related to A2A responses.
  • Verify that the UI dashboard displays the expected text extracted from the A2A response.

Extra Tips

  • Ensure that the A2A endpoint is correctly configured and responding with the expected JSON format.
  • Consider adding additional logging or monitoring to detect and diagnose any future issues with A2A responses.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

litellm - 💡(How to fix) Fix [Bug]: In playground the langgraph agent repsonse is not parsing properly [1 comments, 2 participants]