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.

432 B
Raw Blame
//! Zed built-in tool schema dump.
//!
//! This example serializes the same normalized built-in tool definitions used
//! to construct language model requests.

use anyhow::Result;

fn main() -> Result<()> {
    let mut tools = agent::built_in_tools().collect::<Vec<_>>();
    tools.sort_by(|left, right| left.name.cmp(&right.name));
    serde_json::to_writer_pretty(std::io::stdout().lock(), &tools)?;
    println!();
    Ok(())
}