codetether-agent 4.7.0-a-002.4

A2A-native AI coding agent for the CodeTether ecosystem
Documentation
//! Tool trait implementation for `context_summarize`.

use super::super::{Tool, ToolResult};
use super::schema;
use super::tool_struct::ContextSummarizeTool;
use anyhow::Result;
use async_trait::async_trait;
use serde_json::Value;

#[async_trait]
impl Tool for ContextSummarizeTool {
    fn id(&self) -> &str {
        "context_summarize"
    }
    fn name(&self) -> &str {
        "ContextSummarize"
    }
    fn description(&self) -> &str {
        "Get or produce a cached summary for a turn range."
    }
    fn parameters(&self) -> Value {
        schema::parameters()
    }

    async fn execute(&self, args: Value) -> Result<ToolResult> {
        super::run::run(self, args).await
    }
}