Add action log to thinking tool (#26802)

Release Notes:

- N/A
This commit is contained in:
Richard Feldman 2025-03-14 16:44:36 -04:00 committed by GitHub
parent 8490d0d4ef
commit f40b22c02a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,7 @@
use std::sync::Arc;
use anyhow::{anyhow, Result};
use assistant_tool::Tool;
use assistant_tool::{ActionLog, Tool};
use gpui::{App, Entity, Task};
use language_model::LanguageModelRequestMessage;
use project::Project;
@ -36,6 +36,7 @@ impl Tool for ThinkingTool {
input: serde_json::Value,
_messages: &[LanguageModelRequestMessage],
_project: Entity<Project>,
_action_log: Entity<ActionLog>,
_cx: &mut App,
) -> Task<Result<String>> {
// This tool just "thinks out loud" and doesn't perform any actions.