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
Original file line number Diff line number Diff line change
Expand Up @@ -1727,7 +1727,7 @@ async def _invoke_agent(
last: ChatMessage = messages[-1]
author = last.author_name or self._agent_id
role: Role = last.role if last.role else Role.ASSISTANT
text = last.text or str(last)
text = last.text or ""
msg = ChatMessage(role=role, text=text, author_name=author)
await self._emit_agent_message_event(ctx, msg)
return msg
Expand Down
2 changes: 1 addition & 1 deletion python/packages/devui/agent_framework_devui/_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@ async def _convert_workflow_event(self, event: Any, context: dict[str, Any]) ->
"trace_type": "magentic_orchestrator",
"orchestrator_id": orchestrator_id,
"kind": kind,
"text": text or str(message),
"text": text or "",
"timestamp": datetime.now().isoformat(),
},
span_id=f"magentic_orch_{uuid4().hex[:8]}",
Expand Down
Loading