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 AnnotationMessage implementation #243

Closed
wants to merge 32 commits into from

Conversation

devin-ai-integration[bot]
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Nov 26, 2024

Add AnnotationMessage Implementation

Changes

  • Add AnnotationMessage type for metadata and documentation purposes
  • Implement annotate! utility for adding annotations to messages
  • Add comprehensive tests for construction and rendering
  • Ensure proper rendering skipping across all providers
  • Add serialization support

Implementation Details

  • AnnotationMessage is a subtype of AbstractAnnotationMessage
  • Supports content, extras (Dict), tags (Vector{Symbol}), and comments
  • annotate! utility handles both single messages and vectors
  • Proper rendering filtering across OpenAI, Anthropic, Ollama, and Google schemas
  • Full serialization support for persistence

Testing

All tests passing across:

  • Basic construction and field access
  • annotate! utility functionality
  • Rendering skipping across all providers
  • Serialization roundtrip
  • Edge cases with multiple annotations

Link to Devin run: https://preview.devin.ai/devin/1313c322110e474eb7be51c54071a39c

If you have any feedback, you can leave comments in the PR and I'll address them in the app!

- Add AnnotationMessage struct for metadata and documentation
- Implement annotate! utility for single/vector messages
- Add comprehensive tests for construction and rendering
- Ensure proper rendering skipping across all providers
- Add serialization support
@svilupp svilupp closed this Nov 26, 2024
@svilupp svilupp deleted the devin/1732580074-annotation-message branch November 26, 2024 10:21
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.

1 participant