Skip to content
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

Add metadata field to SendMessageRequest and Message model #399

Merged
merged 8 commits into from
Dec 20, 2024

Conversation

devin-ai-integration[bot]
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Dec 20, 2024

Changes

  • Added metadata field (Dict[str, Any]) to Message (fixes Add metadata field to SendMessageRequest model #394)
  • Added metadata field (Dict[str, Any]) to CreateDraftRequest (fixes Add metadata field to SendMessageRequest model #394)
  • Added test cases for metadata in draft creation and message sending
  • Updated docstring to include metadata field description
  • Added examples/metadata_field_demo/metadata_example.py demonstrating:
    • Creating drafts with metadata fields
    • Sending messages with metadata fields
    • Proper error handling and validation
    • Environment variable configuration
  • Added comprehensive README with setup instructions and usage examples

Testing

  • Updated unit tests
  • The example has been designed to work with real API credentials
  • Includes proper error handling for common scenarios
  • Documentation follows SDK patterns and conventions

devin-ai-integration bot and others added 6 commits December 11, 2024 16:33
- Added metadata field to CreateDraftRequest which is inherited by SendMessageRequest
- Added test cases for metadata in draft creation and message sending
- Updated docstring to include metadata field description

Fixes #394

Co-Authored-By: Aaron de Mello <[email protected]>
…metadata-field

# Conflicts:
#	CHANGELOG.md

Co-Authored-By: Aaron de Mello <[email protected]>
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Add "(aside)" to your comment to have me ignore it.

@AaronDDM AaronDDM changed the title Add E2E example for metadata field functionality Add metadata field to SendMessageRequest and Message model Dec 20, 2024
@AaronDDM AaronDDM changed the title Add metadata field to SendMessageRequest and Message model Add E2E Example for Metadata Field Functionality Dec 20, 2024
@AaronDDM AaronDDM changed the title Add E2E Example for Metadata Field Functionality Add metadata field to SendMessageRequest and Message model Dec 20, 2024
@AaronDDM AaronDDM merged commit e0c4cf2 into main Dec 20, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add metadata field to SendMessageRequest model
1 participant