Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/packages/ag-ui/agent_framework_ag_ui/_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ async def event_generator():
)
except Exception as e:
logger.error(f"Error in agent endpoint: {e}", exc_info=True)
return {"error": str(e)}
return {"error": "An internal error has occurred."}
2 changes: 1 addition & 1 deletion python/packages/ag-ui/tests/test_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ async def test_endpoint_error_handling():
assert response.status_code == 200
content = json.loads(response.content)
assert "error" in content
assert "Expecting value" in content["error"]
assert content["error"] == "An internal error has occurred."


async def test_endpoint_multiple_paths():
Expand Down