Skip to content

Conversation

@dsuresh-ap
Copy link
Member

Summary

  • Added json_body_section field to ActivityMetadata to carry the multipart JSON part name from agent config to HTTP request construction
  • Updated _build_activity_request_spec to use json_body_section (defaulting to "body") instead of hardcoding the multipart part name as "body"
  • The Content Generation activity's bodyStructure specifies "jsonBodySection": "RagRequest", but the SDK was always placing the JSON body in a part named "body", causing the Integration Service endpoint to return HTTP 400 "The request body is empty"
  • Added tests for multipart requests with custom and default json_body_section

🤖 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 Feb 12, 2026
@dsuresh-ap dsuresh-ap force-pushed the fix/gen-ai-content-gen-PC-3936 branch from 464466d to 27d824a Compare February 12, 2026 21:09
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 27d824a to a96fbf3 Compare February 12, 2026 21:22
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