feat: add title field for data types (#410)
* feat(model): add title field to various structs * fix(test): fix test json schema * fix(model): allow boxed type in `ts_union` macro
This commit is contained in:
parent
fdd6bc0565
commit
1b70f5b032
3 changed files with 219 additions and 73 deletions
|
|
@ -22,6 +22,7 @@ async fn main() -> Result<()> {
|
|||
capabilities: ClientCapabilities::default(),
|
||||
client_info: Implementation {
|
||||
name: "test sse client".to_string(),
|
||||
title: None,
|
||||
version: "0.0.1".to_string(),
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ async fn main() -> Result<()> {
|
|||
capabilities: ClientCapabilities::default(),
|
||||
client_info: Implementation {
|
||||
name: "test sse client".to_string(),
|
||||
title: None,
|
||||
version: "0.0.1".to_string(),
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -105,6 +105,7 @@ impl ServerHandler for SamplingDemoServer {
|
|||
Ok(ListToolsResult {
|
||||
tools: vec![Tool {
|
||||
name: "ask_llm".into(),
|
||||
title: None,
|
||||
description: Some("Ask a question to the LLM through sampling".into()),
|
||||
input_schema: Arc::new(
|
||||
serde_json::from_value(serde_json::json!({
|
||||
|
|
|
|||
Loading…
Reference in a new issue