Skip to content

Fix: Content Generation Activity from GenAI connector does not work in URT [PC-3936]#573

Open
dsuresh-ap wants to merge 1 commit intomainfrom
fix/gen-ai-content-gen-PC-3936
Open

Fix: Content Generation Activity from GenAI connector does not work in URT [PC-3936]#573
dsuresh-ap wants to merge 1 commit intomainfrom
fix/gen-ai-content-gen-PC-3936

Conversation

@dsuresh-ap
Copy link
Member

Summary

  • Updated convert_to_activity_metadata to extract jsonBodySection from body_structure and pass it through to ActivityMetadata
  • This enables the SDK to place the multipart JSON body in the correct part name (e.g., "RagRequest") instead of always using "body", fixing HTTP 400 errors for the Content Generation activity
  • Added tests verifying json_body_section is correctly set from bodyStructure, and defaults to None when not specified

🤖 Generated with Claude Code

Pass jsonBodySection from agent config body_structure through to
ActivityMetadata so the SDK uses the correct multipart part name.
@dsuresh-ap dsuresh-ap force-pushed the fix/gen-ai-content-gen-PC-3936 branch from 6398c6e to bec542a Compare February 12, 2026 21:10
@dsuresh-ap
Copy link
Member Author

Depends on UiPath/uipath-python#1309

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.

1 participant