Skip to content

Conversation

@saksharthakkar
Copy link
Contributor

@saksharthakkar saksharthakkar commented Jan 15, 2026

Summary

  • Parse JSON-encoded attribute strings back to objects before final serialization
  • Fixes double-encoding issue where inputSchema, outputSchema, settings, toolCalls, usage were escaped strings instead of objects
  • Matches Temporal schema format

Test plan

  • Existing tests pass
  • Validate trace output

##Before

Screen.Recording.2026-01-15.at.3.17.04.PM.mov

##After
image

🤖 Generated with Claude Code

@github-actions github-actions bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Jan 15, 2026
@saksharthakkar saksharthakkar marked this pull request as draft January 15, 2026 21:29
saksharthakkar and others added 2 commits January 15, 2026 13:51
OTEL only accepts primitives, so agents serialize dicts to JSON strings.
This caused double-encoding when the exporter serialized the entire
Attributes dict. Parse these fields back to objects before final
serialization to match Temporal schema (inputSchema, outputSchema,
settings, toolCalls, usage as objects not escaped strings).

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Detect any string starting with { or [ and parse as JSON.
More maintainable - no need to update field list when new attributes added.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@saksharthakkar saksharthakkar force-pushed the fix/temporal-attribute-parity branch from 581dee2 to ecba87e Compare January 15, 2026 21:51
saksharthakkar and others added 4 commits January 15, 2026 15:06
- Add test_json_strings_parsed_to_objects to verify JSON-encoded strings
  starting with { or [ are parsed to objects before final serialization
- Remove docs/plans/proposal-interruptible-trace-context.md (unrelated)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@saksharthakkar saksharthakkar marked this pull request as ready for review January 15, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant