fix: Comment out setTemperature calls for deterministic output in agents and utils

This commit is contained in:
Willie Zutz 2025-06-23 09:06:09 -06:00
parent b97383bf0f
commit feec1cd608
5 changed files with 14 additions and 9 deletions

View file

@ -19,7 +19,7 @@ export type PreviewContent = {
// Zod schema for structured preview analysis output
const PreviewAnalysisSchema = z.object({
isSufficient: z.boolean().describe('Whether the preview content is sufficient to answer the task query'),
reason: z.string().optional().nullable().describe('Specific reason why full content analysis is required (only if isSufficient is false)')
reason: z.string().nullable().describe('Specific reason why full content analysis is required (only if isSufficient is false)')
});
export const analyzePreviewContent = async (
@ -80,11 +80,6 @@ Snippet: ${content.snippet}
- Be specific in your reasoning when the content is not sufficient
- The original query is provided for additional context, only use it for clarification of overall expectations and intent. You do **not** need to answer the original query directly or completely
# Response Format
You must return a JSON object with:
- isSufficient: boolean indicating whether preview content is sufficient
- reason: string explaining why full content analysis is required (only if isSufficient is false)
# Information Context:
Today's date is ${formatDateForLLM(new Date())}
@ -99,6 +94,11 @@ ${taskQuery}
# Search Result Previews to Analyze:
${formattedPreviewContent}
# Response Format
You must return a JSON object with:
- isSufficient: boolean indicating whether preview content is sufficient
- reason: string explaining why full content analysis is required (only if isSufficient is false)
`,
{ signal },
);