add goose-llm crate to be used by goose service (#2354)

This commit is contained in:
Salman Mohammed
2025-04-28 17:50:12 -03:00
committed by GitHub
parent 2f0fd50a84
commit 711554cbcf
10 changed files with 390 additions and 0 deletions
@@ -7,6 +7,7 @@ use chrono::Utc;
use indoc::indoc;
use mcp_core::tool::ToolAnnotations;
use mcp_core::{tool::Tool, TextContent};
use serde::{Deserialize, Serialize};
use serde_json::{json, Value};
use std::collections::HashSet;
use std::sync::Arc;
@@ -152,6 +153,7 @@ pub async fn detect_read_only_tools(
}
// Define return structure
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct PermissionCheckResult {
pub approved: Vec<ToolRequest>,
pub needs_approval: Vec<ToolRequest>,