Skip to content
Open
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
1 change: 1 addition & 0 deletions agentkit/apps/a2a_app/a2a_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ async def wrapper(*args, **kwargs):

with telemetry.tracer.start_as_current_span(name="a2a_invocation") as span:
exception = None
result = None
try:
result = await execute_func(
executor_instance, context=context, event_queue=event_queue
Expand Down
4 changes: 3 additions & 1 deletion agentkit/apps/agent_server_app/agent_server_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,9 @@ async def event_generator():
telemetry.trace_agent_server_finish(
path="/invoke", func_result="", exception=e
)
error_payload = f'data: {{"error": "{str(e)}"}}\n\n'
error_payload = (
"data: " + json.dumps({"error": str(e)}) + "\n\n"
)
if error_payload is not None:
# The identity path never suspends while retaining the
# original exception or its credential-bearing traceback.
Expand Down