Skip to content

Commit b9a4211

Browse files
authored
fix: mastra bug workaround, change contentTypeIds type back to string[] (#10837)
1 parent 95558dd commit b9a4211

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

apps/google-docs/src/hooks/useWorkflowAgent.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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,

apps/google-docs/src/services/agents-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)