-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Summary
When analyzing errors in the search_events agent, Seer AI suggested adding maxToolRoundtrips: 3
to the generateText
call. However, this property doesn't exist in the AI SDK's generateText options, leading to TypeScript errors.
Problem
- Seer AI provides analysis and suggestions that may not always be accurate or applicable
- Our tools should not blindly trust Seer's suggestions without validation
- We need better error messaging to indicate when Seer's suggestions might be incorrect
Context
From issue MCP-SERVER-ECD: https://sentry.sentry.io/issues/6761713004/
- Error:
AI_NoObjectGeneratedError: No object generated: could not parse the response.
- Seer suggested: "Add maxToolRoundtrips: 3 to generateText call"
- Reality: This property doesn't exist in the AI SDK
Proposed Solution
- Add disclaimers in the analyze_issue_with_seer tool output indicating that suggestions should be validated
- Include context about the tool's limitations in the response
- Consider adding validation for common incorrect suggestions
Related Code
- packages/mcp-server/src/tools/search-events/agent.ts:491-499
- packages/mcp-server/src/tools/analyze-issue-with-seer/handler.ts
Labels
- bug
- tool-improvement
- seer-ai
Metadata
Metadata
Assignees
Labels
No labels