| llm_tool_signature | R Documentation |
Returns a SHA-256 hash over a tool's name, description, and parameter
schema (its implementation function is deliberately excluded, so the
signature tracks the contract a model sees, not the R code). Use it to detect
when a tool's advertised interface has changed, for example to pin a tool
schema and notice a silent redefinition.
llm_tool_signature(tool)
tool |
An |
A 64-character lowercase hex string.
llm_tool(), llm_hash().
tl <- llm_tool(function(x) x, "echo", "Echo a value",
parameters = list(x = list(type = "string")))
llm_tool_signature(tl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.