Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions crates/goose-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ impl Default for MessageMetadata {
}
}

pub type MessageProviderMetadata = serde_json::Map<String, serde_json::Value>;

impl MessageMetadata {
pub fn agent_only() -> Self {
Self {
Expand Down
7 changes: 2 additions & 5 deletions crates/goose/src/conversation/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ use crate::mcp_utils::{extract_text_from_resource, ToolResult};
use crate::utils::sanitize_unicode_tags;
use chrono::Utc;
pub use goose_types::{
InferenceMetadata, MessageMetadata, RedactedThinkingContent, ThinkingContent,
InferenceMetadata, MessageMetadata, MessageProviderMetadata as ProviderMetadata,
RedactedThinkingContent, ThinkingContent,
};
use rmcp::model::{
AnnotateAble, CallToolRequestParams, CallToolResult, Content, ImageContent, JsonObject,
Expand Down Expand Up @@ -74,10 +75,6 @@ where
Ok(content)
}

/// Provider-specific metadata for tool requests/responses.
/// Allows providers to store custom data without polluting the core model.
pub type ProviderMetadata = serde_json::Map<String, serde_json::Value>;

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
#[derive(ToSchema)]
Expand Down