# Conflicts:
#	mcp_server_collection/Cargo.toml
This commit is contained in:
2026-05-24 13:02:13 +02:00
9 changed files with 398 additions and 53 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ impl AgentChat {
/// let result = AgentChat::parse_tool_name("example:get_foo".to_string());
/// assert_eq!(result.unwrap(), ("example".to_string(), "get_foo".to_string()))
/// ```
fn parse_tool_name(name: String) -> Result<(String, String), ChatError> {
pub fn parse_tool_name(name: String) -> Result<(String, String), ChatError> {
let (mcp_server_name, tool_name) = name
.split_once(":")
.ok_or(ChatError::FunctionParseError(name.clone()))?;