-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix(api): tool input parsing into table from agent output #2879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryRefactored Key Changes:
Issues Found:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Agent as Agent Output
participant Tool as HTTP Request Tool
participant Transform as transformTable()
participant API as External API
Agent->>Tool: Provide table data (string/object/array)
Tool->>Transform: Call transformTable(params.headers)
alt Input is string (JSON)
Transform->>Transform: JSON.parse(table)
Transform->>Transform: Recursive call with parsed data
end
alt Input is array (TableRow[])
Transform->>Transform: Iterate rows, extract Key/Value from cells
Transform-->>Tool: Return key-value object
end
alt Input is plain object
Transform-->>Tool: Return object as-is
end
alt Input is null/undefined
Transform-->>Tool: Return empty object
end
Tool->>API: Send HTTP request with transformed headers
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9 files reviewed, 2 comments
Summary
Type of Change
Testing
Tested manually
Checklist