package
Version:
v0.16.7
Opens a new window with list of versions in this module.
Published: Jan 31, 2026
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func BytesHash(input []byte) string
-
func ComputeToolHash(serverName, toolName, description string, inputSchema interface{}) string
-
func StringHash(input string) string
-
func ToolHash(serverName, toolName, description string, parametersSchema interface{}) (string, error)
-
func VerifyToolHash(serverName, toolName, description string, parametersSchema interface{}, ...) (bool, error)
BytesHash computes SHA-256 hash of byte slice
func ComputeToolHash(serverName, toolName, description string, inputSchema interface{}) string
ComputeToolHash computes a SHA256 hash for a tool (alias for ToolHash that doesn't return error)
StringHash computes SHA-256 hash of a string
func ToolHash(serverName, toolName, description string, parametersSchema interface{}) (string, error)
ToolHash computes SHA-256 hash for tool change detection
Format: sha256(serverName + toolName + description + parametersSchemaJSON)
func VerifyToolHash(serverName, toolName, description string, parametersSchema interface{}, storedHash string) (bool, error)
VerifyToolHash verifies if the current tool matches the stored hash
Source Files
¶
Click to show internal directories.
Click to hide internal directories.