Skip to content

fix: exclude none conversational fields in output#631

Merged
maxduu merged 4 commits intomainfrom
refine-conversational-evals
Feb 26, 2026
Merged

fix: exclude none conversational fields in output#631
maxduu merged 4 commits intomainfrom
refine-conversational-evals

Conversation

@maxduu
Copy link
Contributor

@maxduu maxduu commented Feb 25, 2026

https://uipath.atlassian.net/browse/JAR-9364

Before:
The conversational-agent graph would output None fields in the terminate_node, which would eventually be serialized into an empty dict (which is a separate discussion, code here and thread here).

image

After:
This change simply excludes the None fields from being emitted which is better in my opinion than emitting {} or null, since these fields could confuse users doing evaluations.

─────────────────────────────────────────────────────── Execution Logs: Simulated Web Search, With Chat-History ────────────────────────────────────────────────────────
  Success result output: {'uipath__agent_response_messages': [{'role': 'assistant', 'contentParts': [], 'toolCalls': [{'name': 'Web_Search', 'input': {'provider': 
'GoogleCustomSearch', 'query': 'How many people have successfully climbed Mount Everest', 'num': 10, 'start': 1}}], 'interrupts': []}, {'role': 'assistant', 
'contentParts': [{'mimeType': 'text/markdown', 'data': {'inline': 'As of 2026, it is estimated that over 6,000 people have successfully climbed Mount Everest. This 
number changes each year as new climbers reach the summit.<uip:cite title="Mount Everest Climbing Statistics 2026" 
url="https://www.example.com/everest-climbing-stats-2026"/>'}, 'citations': []}], 'toolCalls': [], 'interrupts': []}]}

Note the lack of isTranscript, name, isIncomplete

@maxduu maxduu changed the base branch from main to feat/logistic-agent-sample February 26, 2026 06:06
@maxduu maxduu changed the base branch from feat/logistic-agent-sample to main February 26, 2026 06:07
@maxduu maxduu merged commit 16850be into main Feb 26, 2026
60 of 61 checks passed
@maxduu maxduu deleted the refine-conversational-evals branch February 26, 2026 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants