-
Notifications
You must be signed in to change notification settings - Fork 3.1k
feat(tools): added sqs integration #2310
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
|
@EstebanCanela is attempting to deploy a commit to the Sim Team on Vercel. A member of the Team first needs to authorize it. |
Greptile OverviewGreptile SummaryThis PR adds Amazon SQS integration for sending messages to both Standard and FIFO queues. Key Changes
Implementation Details
Issues Found
Confidence Score: 4/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant User
participant Block as SQS Block
participant Tool as sqs_send Tool
participant API as /api/tools/sqs/send
participant Utils as SQS Utils
participant AWS as AWS SQS
User->>Block: Configure SQS operation
Block->>Block: Parse JSON data field
Block->>Block: Build tool params
Block->>Tool: Execute sqs_send
Tool->>API: POST request
API->>API: Validate with Zod schema
API->>Utils: createSqsClient(config)
Utils->>Utils: Initialize SQSClient
API->>Utils: sendMessage(client, params)
Utils->>AWS: SendMessageCommand
AWS-->>Utils: SendMessageCommandOutput
Utils-->>API: {id: MessageId}
API->>Utils: client.destroy()
API-->>Tool: {message, id}
Tool-->>Block: Transform response
Block-->>User: Display result
|
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.
Additional Comments (1)
-
apps/sim/app/api/tools/sqs/utils.ts, line 25-29 (link)syntax: debug
console.logleft in production code
14 files reviewed, 1 comment
|
Hey guys, I hope you're well. I added the Amazon SQS integration to support sending messages to both Standard and FIFO queues. Thanks in advance 🚀 |
|
@EstebanCanela looks good to me, can you include a video of you using the block as a sanity check? thanks for the contribution! |
|
@waleedlatif1 thanks for checking the PR. I recorded a Loom Video and uploaded it as mp4. btw, I fixed the linter issues 😄 sqs.mp4 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Summary
Type of Change
Testing
Tested manually
Checklist
Screenshots/Videos
https://www.loom.com/share/35559cfd4ae64e0ba194f6abcebccd43