Framework-agnostic tool definition.
Description explaining what the tool does. Critical for LLM to choose correctly.
Schema describing the input parameters.
Extensible key-value metadata for application-level concerns (routing, categorization, feature flags, etc.). Not sent to the LLM — used by the tool framework and hosting application.
Unique name for the tool. Used by LLM to invoke it.
Return a copy of this definition with the given metadata entries merged in. Existing keys are overwritten by the new values.
Return a copy of this definition with a single metadata entry added.