Uses of Class
com.tnsai.metadata.ActionMetadata
Packages that use ActionMetadata
Package
Description
Action execution framework for agent tool/function calling.
Design-by-contract support for action execution with pre/post condition validation.
Specialized action executors for different execution contexts.
Runtime enforcement of
InputGuardrail and
OutputGuardrail annotations declared on
@ActionSpec methods or their declaring Role classes.Metadata extraction and representation for actions, tools, and roles.
Canonical RAG configuration and retrieval contracts.
Resilience patterns for fault-tolerant agent and action execution.
Role definitions and capabilities for agents in the TnsAI framework.
Role export system for converting TnsAI roles to various formats.
JSON Schema generation for LLM function calling tool definitions.
Security SPI contracts and human-in-the-loop approval for TnsAI agents.
-
Uses of ActionMetadata in com.tnsai.actions
Methods in com.tnsai.actions with parameters of type ActionMetadataModifier and TypeMethodDescriptionActionExecutor.authorizeAction(ActionMetadata action, Object target, Map<String, Object> parameters) Side-effect-free authorization preflight; does not consume approval or execute hooks.voidActionExecutor.authorizeMcpAlias(ActionMetadata action, Role role, String alias, Map<String, Object> parameters) Discovered endpoint aliases need their own explicit registration in secured dispatch.Executes an action without additional context.ActionExecutor.execute(ActionMetadata action, Role role, Map<String, Object> parameters, Map<String, Object> context) Executes an action with the given parameters and context.ActionExecutor.execute(ActionMetadata action, Object target, Map<String, Object> parameters, Map<String, Object> context) Executes an action on a generic Object target. -
Uses of ActionMetadata in com.tnsai.actions.contracts
Methods in com.tnsai.actions.contracts with parameters of type ActionMetadataModifier and TypeMethodDescriptiondefault voidActionContract.validatePostConditions(ActionMetadata action, Object result) Runs after the action returns.default voidActionContract.validatePreConditions(ActionMetadata action, Map<String, Object> parameters) Runs before the action is invoked. -
Uses of ActionMetadata in com.tnsai.actions.executors
Methods in com.tnsai.actions.executors with parameters of type ActionMetadataModifier and TypeMethodDescriptionLLMRoleExecutor.execute(ActionMetadata action, Role role, Map<String, Object> parameters, Map<String, Object> context) McpToolExecutor.execute(ActionMetadata action, Role role, Map<String, Object> parameters, Map<String, Object> context) TypedActionExecutor.execute(ActionMetadata action, Role role, Map<String, Object> parameters, Map<String, Object> context) Executes an action with the given parameters and context.WebServiceExecutor.execute(ActionMetadata action, Role role, Map<String, Object> parameters, Map<String, Object> context) -
Uses of ActionMetadata in com.tnsai.guardrails
Methods in com.tnsai.guardrails with parameters of type ActionMetadataModifier and TypeMethodDescriptionEnforces the (possibly inherited) input guardrail onparams.static ObjectOutputGuardrailEnforcer.enforce(ActionMetadata action, Role role, Object result) Enforces the (possibly inherited) output guardrail onresult.InputGuardrailEnforcer.enforceForTarget(ActionMetadata action, Object target, Map<String, Object> params) Enforces method- or class-level input guardrails for a generic action target. -
Uses of ActionMetadata in com.tnsai.metadata
Methods in com.tnsai.metadata that return ActionMetadataModifier and TypeMethodDescriptionDiscoveredRoleActions.findAction(String actionName) Finds an action by name.ActionConfig.toActionMetadata()Converts this config into the runtimeActionMetadatashape that reflection produces for@ActionSpecmethods — no reflectiveMethod; dispatch goes throughActionConfig.handler().Methods in com.tnsai.metadata that return types with arguments of type ActionMetadataModifier and TypeMethodDescriptionDiscoveredRoleActions.getActions()Gets all discovered actions as an immutable list.Methods in com.tnsai.metadata with parameters of type ActionMetadataModifier and TypeMethodDescriptionActionParams.firstStringValueInDeclarationOrder(ActionMetadata action, Map<String, Object> parameters) Returns the value of the firstString-typed parameter in declaration order whose entry inparametersis a non-blank String.ActionParams.parameterNames(ActionMetadata action) Returns the declared parameter names ofaction, in declaration order.Constructor parameters in com.tnsai.metadata with type arguments of type ActionMetadataModifierConstructorDescriptionDiscoveredRoleActions(Class<?> roleClass, List<ActionMetadata> actions) Creates a container for discovered role actions. -
Uses of ActionMetadata in com.tnsai.rag
Methods in com.tnsai.rag with parameters of type ActionMetadataModifier and TypeMethodDescriptionvoidRetrievalSpi.enforce(ActionMetadata action, Role role, Map<String, Object> params, Map<String, Object> context) Resolves the knowledge the given action names (it may name none) and, if any, gives or searches it against the host's declared knowledge according to each entry'suse.default voidRetrievalSpi.enforce(ActionMetadata action, Object target, Map<String, Object> params, Map<String, Object> context) Same contract asRetrievalSpi.enforce(ActionMetadata, Role, Map, Map)for a target that is not aRole. -
Uses of ActionMetadata in com.tnsai.resilience
Methods in com.tnsai.resilience with parameters of type ActionMetadataModifier and TypeMethodDescriptionstatic TracedSpanOpens a traced span for the given action invocation.static MeteredHandleMeteredResolver.start(ActionMetadata action, Role role) Opens a metered span for the given action invocation.static ObjectFallbackResolver.tryRecover(ActionMetadata action, Role role, Map<String, Object> params, Throwable failure, FallbackResolver.RetryCallback retryCallback) Attempts to recover from a failed action invocation by invoking the matching@Fallbackhandler.static ObjectFallbackResolver.tryRecover(ActionMetadata action, Role role, Map<String, Object> params, Throwable failure, FallbackResolver.RetryCallback retryCallback, Consumer<Method> beforeFallback) Managed dispatch supplies the common gate immediately before a fallback body. -
Uses of ActionMetadata in com.tnsai.roles
Methods in com.tnsai.roles that return types with arguments of type ActionMetadataModifier and TypeMethodDescriptionfinal Optional<ActionMetadata> final List<ActionMetadata> Role.getActions()Gets all discovered actions. -
Uses of ActionMetadata in com.tnsai.roles.export
Methods in com.tnsai.roles.export that return types with arguments of type ActionMetadata -
Uses of ActionMetadata in com.tnsai.schema
Methods in com.tnsai.schema with parameters of type ActionMetadataModifier and TypeMethodDescriptionToolSchemaGenerator.generateToolSchema(ActionMetadata action) Generates tool schema for a single action. -
Uses of ActionMetadata in com.tnsai.security
Methods in com.tnsai.security with parameters of type ActionMetadataModifier and TypeMethodDescriptionvoidSecurityEnforcerHandle.audit(ActionMetadata action, Role role, String callerAgentId, Map<String, Object> parameters, Object result, long durationMs) Logs audit information based on audit level.voidSecurityEnforcerHandle.enforceAccessControl(ActionMetadata action, Role role, String callerAgentId, Set<String> callerRoles) Enforces access control based on @Security annotation.<T> TSecurityEnforcerHandle.executeWithTimeout(ActionMetadata action, Role role, Callable<T> task) Executes an action with security timeout enforcement.SecurityEnforcerHandle.processParameters(ActionMetadata action, Role role, Map<String, Object> parameters) Processes parameters based on security settings.SecurityEnforcerHandle.processResult(ActionMetadata action, Role role, Object result) Processes the result based on security settings.