Skip to content

Conversation

hashemix
Copy link
Member

📌 Summary

Added a new handy function to get the tool name from the CallToolRequest object:

Usage Example:

async fn handle_call_tool_request( &self, request: CallToolRequest)->CallToolResult{

       if request.tool_name() == SayHelloTool::tool_name() {
            CallToolResult::text_content( "Hello World!".to_string(), None )
        }

}

@hashemix hashemix self-assigned this Mar 18, 2025
@hashemix hashemix merged commit 2489d90 into main Mar 18, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant