Skip to content

Commit b15cf0a

Browse files
committed
feat: Add response modalities and media resolution to multiple agents
- Added responseModalities: ['TEXT', 'IMAGE'] and mediaResolution: 'MEDIA_RESOLUTION_MEDIUM' to acpAgent, businessLegalAgents, contentStrategistAgent, copywriterAgent, editorAgent, reportAgent, researchAgent, and scriptWriterAgent. - Standardized maxOutputTokens and other parameters across agents for consistency.
1 parent 2493998 commit b15cf0a

9 files changed

Lines changed: 22 additions & 5 deletions

src/mastra/agents/acpAgent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ export const acpAgent = new Agent({
124124
thinkingBudget: -1,
125125
},
126126
media_resolution: "MEDIA_RESOLUTION_MEDIUM",
127+
responseModalities: ['TEXT', 'IMAGE'],
127128
maxOutputTokens: 64000,
128129
},
129130
},

src/mastra/agents/businessLegalAgents.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,12 @@ ${PGVECTOR_PROMPT}
102102
thinkingLevel: 'high',
103103
includeThoughts: true,
104104
thinkingBudget: -1,
105-
}
105+
},
106+
mediaResolution: 'MEDIA_RESOLUTION_MEDIUM',
107+
responseModalities: ['TEXT', 'IMAGE'],
108+
maxOutputTokens: 64000,
109+
temperature: 0.2,
110+
topP: 1.0
106111
}
107112
}
108113
}

src/mastra/agents/contentStrategistAgent.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ Output:
8181
thinkingLevel: 'medium',
8282
includeThoughts: true,
8383
thinkingBudget: -1,
84-
}
84+
},
85+
mediaResolution: 'MEDIA_RESOLUTION_MEDIUM',
86+
responseModalities: ['TEXT', 'IMAGE'],
87+
maxOutputTokens: 64000,
8588
}
8689
}
8790
}

src/mastra/agents/copywriterAgent.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@ Provide the final content in a clear, well-structured format appropriate for the
117117
thinkingLevel: 'medium',
118118
includeThoughts: true,
119119
thinkingBudget: -1,
120-
}
120+
},
121+
responseModalities: ['TEXT', 'IMAGE'],
122+
mediaResolution: 'MEDIA_RESOLUTION_MEDIUM',
123+
maxOutputTokens: 64000,
121124
}
122125
}
123126
}

src/mastra/agents/editorAgent.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ You must respond with a JSON object in the following format:
112112
thinkingLevel: 'medium',
113113
includeThoughts: true,
114114
thinkingBudget: -1,
115-
}
115+
},
116+
responseModalities: ['TEXT', 'IMAGE'],
116117
}
117118
}
118119
}

src/mastra/agents/image.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export const imageAgent = new Agent({
3333
providerOptions: {
3434
google: {
3535
numberOfImages: 4,
36+
3637
}
3738
}
3839
}

src/mastra/agents/reportAgent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export const reportAgent = new Agent({
9898
thinkingBudget: -1,
9999
},
100100
mediaResolution: 'MEDIA_RESOLUTION_MEDIUM',
101+
responseModalities: ['TEXT', 'IMAGE'],
101102
maxOutputTokens: 64000,
102103
temperature: 0.2,
103104
topP: 1.0

src/mastra/agents/researchAgent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ export const researchAgent = new Agent({
165165
providerOptions: {
166166
google: {
167167
structuredOutput: true,
168+
responseModalities: ['TEXT', 'IMAGE'],
168169
thinkingConfig: {
169170
thinkingLevel: 'high',
170171
includeThoughts: true,

src/mastra/agents/scriptWriterAgent.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ export const scriptWriterAgent = new Agent({
5656
thinkingLevel: 'medium',
5757
includeThoughts: true,
5858
thinkingBudget: -1,
59-
}
59+
},
60+
responseModalities: ['TEXT', 'IMAGE'],
6061
}
6162
}
6263
}

0 commit comments

Comments
 (0)