Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

agent: Remove duplicated description from tool schema (#52678)

Bennet Bo Fenner46a0262dc5b0
diff --git a/crates/language_model/src/tool_schema.rs b/crates/language_model/src/tool_schema.rs
index 69afcd1f288..878870482a7 100644
--- a/crates/language_model/src/tool_schema.rs
+++ b/crates/language_model/src/tool_schema.rs
@@ -67,6 +67,7 @@ pub fn adapt_schema_to_format(
if let Value::Object(obj) = json {
obj.remove("$schema");
obj.remove("title");
+ obj.remove("description");
}
match format {