test: add impl of list/get prompt to main.rs and stdio_integration to
test both new methods
This commit is contained in:
parent
7afab42c61
commit
ef9309cc78
1 changed files with 45 additions and 1 deletions
|
|
@ -82,5 +82,16 @@ async fn main() -> Result<(), ClientError> {
|
|||
let resource = client.read_resource("memo://insights").await?;
|
||||
println!("Resource: {resource:?}\n");
|
||||
|
||||
let prompts = client.list_prompts(None).await?;
|
||||
println!("Prompts: {prompts:?}\n");
|
||||
|
||||
let prompt = client
|
||||
.get_prompt(
|
||||
"example_prompt",
|
||||
serde_json::json!({"message": "hello there!"}),
|
||||
)
|
||||
.await?;
|
||||
println!("Prompt: {prompt:?}\n");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue