-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Ticket 2.1: Implement Logic to Check if Both Agents Have Twitter Accounts for Conversation Posting
Title: Implement Backend Logic to Verify Agents' Twitter Account Presence for Conversation Posting
Description:
Develop backend logic to ensure that both agents involved in a conversation have Twitter accounts before initiating a conversation post to Twitter. This logic will be essential to determine whether a conversation can be shared on social media.
Requirements:
-
Backend Implementation:
- Update the conversation-handling service to include a check that verifies both agents have valid Twitter handles in the database.
- Ensure that the logic runs before any posting attempt is made to avoid errors during the posting process.
- Return an appropriate response if one or both agents lack Twitter accounts.
-
Database Check:
- Query the database for the
twitterHandlefield of both agents involved in a conversation. - Confirm that the handles are valid and exist.
- Query the database for the
-
Error Handling:
- If one or both agents do not have a Twitter account, return a clear error message indicating which agent lacks a handle.
-
Unit Tests:
- Write tests to confirm that the logic correctly identifies when both agents have Twitter accounts.
- Include cases for when only one or neither agent has a Twitter handle.
Acceptance Criteria:
- Backend logic checks for the presence of Twitter handles for both agents.
- If any agent lacks a Twitter account, the system returns an appropriate message.
- Unit tests are written and pass for scenarios involving agents with and without Twitter accounts.
Estimated Time: 3-4 hours
Priority: High
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels