Class AiToolRegistry

java.lang.Object
com.kingsrook.qqq.backend.core.actions.ai.AiToolRegistry
All Implemented Interfaces:
MetaDataProducerOutput, QMetaDataObject, QSupplementalInstanceMetaData, TopLevelMetaDataInterface, Serializable

public class AiToolRegistry extends Object implements QSupplementalInstanceMetaData
Tools contributed to the AI tool kernel by qbits and applications. A qbit registers typed tools here while it produces its meta-data; every AiToolKernel built over the instance afterwards offers them next to the built-in tools, and runs them through the same path: the caller's session in QContext, strict input-key validation, the untrusted-data envelope, redaction, outcome mapping (DENIED / NOT_FOUND / INVALID_INPUT / ERROR) and the tool's own use of AiToolContext.prepareInput (core permission enforcement and record security locks). Only READ and NAVIGATION tools may be registered. The kernel has no approval flow, so a WRITE_PROPOSAL tool is refused: a qbit that lets a model propose changes runs those tools in its own, approval-aware runtime. Contributed tool names must not collide with the built-in tools or each other; registration refuses a duplicate, and the instance validator reports a collision with a built-in name. Not published to frontends: the v1 meta-data response only includes supplemental instance meta-data it knows, and this class exposes no frontend settings.
See Also: