File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -162,7 +162,6 @@ export const useWorkflowAgent = ({
162162 const spaceId = sdk . ids . space ;
163163 const environmentId = sdk . ids . environment ;
164164 const threadId = [ crypto . randomUUID ( ) , WORKFLOW_AGENT_ID ] . join ( '-' ) ;
165- const contentTypeIdsCsv = contentTypeIds . join ( ',' ) ;
166165
167166 const payload : AgentGeneratePayload = {
168167 messages : [
@@ -180,9 +179,7 @@ export const useWorkflowAgent = ({
180179 ] ,
181180 metadata : {
182181 documentId,
183- // TEMP workaround: send as comma-separated string for now; API workflow normalizes back to string[].
184- contentTypeIds : contentTypeIdsCsv ,
185- // contentTypeIds,
182+ contentTypeIds,
186183 oauthToken,
187184 } ,
188185 threadId,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export interface AgentGeneratePayload {
1717 } > ;
1818 metadata : {
1919 documentId : string ;
20- contentTypeIds : string ;
20+ contentTypeIds : string [ ] ;
2121 oauthToken : string ;
2222 } ;
2323 threadId : string ;
You can’t perform that action at this time.
0 commit comments