@@ -659,24 +659,26 @@ type SamplingMessage struct {
659
659
Content interface {} `json:"content"` // Can be TextContent or ImageContent
660
660
}
661
661
662
+ type Annotations struct {
663
+ // Describes who the intended customer of this object or data is.
664
+ //
665
+ // It can include multiple entries to indicate content useful for multiple
666
+ // audiences (e.g., `["user", "assistant"]`).
667
+ Audience []Role `json:"audience,omitempty"`
668
+
669
+ // Describes how important this data is for operating the server.
670
+ //
671
+ // A value of 1 means "most important," and indicates that the data is
672
+ // effectively required, while 0 means "least important," and indicates that
673
+ // the data is entirely optional.
674
+ Priority float64 `json:"priority,omitempty"`
675
+ }
676
+
662
677
// Annotated is the base for objects that include optional annotations for the
663
678
// client. The client can use annotations to inform how objects are used or
664
679
// displayed
665
680
type Annotated struct {
666
- Annotations * struct {
667
- // Describes who the intended customer of this object or data is.
668
- //
669
- // It can include multiple entries to indicate content useful for multiple
670
- // audiences (e.g., `["user", "assistant"]`).
671
- Audience []Role `json:"audience,omitempty"`
672
-
673
- // Describes how important this data is for operating the server.
674
- //
675
- // A value of 1 means "most important," and indicates that the data is
676
- // effectively required, while 0 means "least important," and indicates that
677
- // the data is entirely optional.
678
- Priority float64 `json:"priority,omitempty"`
679
- } `json:"annotations,omitempty"`
681
+ Annotations * Annotations `json:"annotations,omitempty"`
680
682
}
681
683
682
684
type Content interface {
0 commit comments