feat(model): add ServerConfig and ClientConfig (#1266)
This commit is contained in:
parent
fbfc5cc96e
commit
165ff92df1
1 changed files with 331 additions and 303 deletions
|
|
@ -147,8 +147,8 @@ impl ElicitationServer {
|
|||
|
||||
#[tool_handler(router = self.tool_router)]
|
||||
impl ServerHandler for ElicitationServer {
|
||||
fn get_info(&self) -> InitializeResult {
|
||||
InitializeResult::new(ServerCapabilities::builder().enable_tools().build())
|
||||
fn get_info(&self) -> ServerConfig {
|
||||
ServerConfig::new(ServerCapabilities::builder().enable_tools().build())
|
||||
.with_server_info(Implementation::from_build_env())
|
||||
.with_instructions(
|
||||
"Simple server demonstrating elicitation for user name collection".to_string(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue