feat: switch from mcp_core::Role to rmcp::model::Role (#3488)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/// Content sent around agents, extensions, and LLMs
|
||||
/// The various content types can be display to humans but also understood by models
|
||||
/// They include optional annotations used to help inform agent usage
|
||||
use super::role::Role;
|
||||
use super::Role;
|
||||
use crate::resource::ResourceContents;
|
||||
use chrono::{DateTime, Utc};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
/// Roles to describe the origin/ownership of content
|
||||
use serde::{Deserialize, Serialize};
|
||||
use utoipa::ToSchema;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, ToSchema)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
pub enum Role {
|
||||
User,
|
||||
Assistant,
|
||||
}
|
||||
// passthrough, which will be deleted with the rest of the mcp-core crate after it is no longer used
|
||||
// needed because it has internal references in this crate which leak out to usages used in goose etc crates
|
||||
pub use rmcp::model::Role;
|
||||
|
||||
Reference in New Issue
Block a user