Package com.tnsai.metadata
package com.tnsai.metadata
Metadata extraction and representation for actions, tools, and roles.
-
ClassDescriptionProgrammatic counterpart of
@ActionSpec(TNS-551) — declares a role action via a builder instead of an annotated method, soRoleBuilder.addAction(ActionConfig)can register actions that an agent dispatches identically to annotation-derived ones.Dispatch callback for a programmatically-defined action (TNS-551) — the lambda body of anActionConfig/RoleBuilder.addAction(...)action, the programmatic counterpart of an@ActionSpec-annotated method body.Immutable metadata about a Role method that becomes an Action.Static helpers for safely picking values out of an action'sMap<String, Object> parametersbag.Grouped configuration for action contracts and planning effects.Programmatic form of the@ContractDesign-by-Contract annotation (TNS-552) — the JEXL precondition / postcondition / invariant gates enforced around an action byContractValidator.Fluent builder for the programmatic path.Immutable container for actions discovered from a Role class via reflection.Spec for parameters exposed to LLM.Grouped configuration for MCP_TOOL actions.Immutable metadata about a method parameter.Reads role metadata from TnsAI annotations.Role metadata container.Immutable metadata about a tool usage example.Grouped configuration for WEB_SERVICE actions.