chore: fix typos (#79)

This commit is contained in:
Bob Liu 2025-04-02 01:15:01 +08:00 • committed by GitHub
commit 6a648b8827
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 14 deletions

View file

@ -20,14 +20,14 @@ impl Calculator {
(a + b).to_string()
}
#[tool(description = "Calculate the sum of two numbers")]
#[tool(description = "Calculate the sub of two numbers")]
fn sub(
&self,
#[tool(param)]
#[schemars(description = "the left hand side number")]
a: i32,
#[tool(param)]
#[schemars(description = "the left hand side number")]
#[schemars(description = "the right hand side number")]
b: i32,
) -> Json<i32> {
Json(a - b)

View file

@ -146,7 +146,7 @@ impl ServerHandler for Counter {
next_cursor: None,
prompts: vec![Prompt::new(
"example_prompt",
Some("This is an example prompt that takes one required agrument, message"),
Some("This is an example prompt that takes one required argument, message"),
Some(vec![PromptArgument {
name: "message".to_string(),
description: Some("A message to put in the prompt".to_string()),