Uses of Enum Class
com.tnsai.enums.ActionType
Packages that use ActionType
Package
Description
Action execution framework for agent tool/function calling.
Shared enumerations used across the TnsAI framework.
Custom exceptions for the TnsAI framework.
Metadata extraction and representation for actions, tools, and roles.
Security SPI contracts and human-in-the-loop approval for TnsAI agents.
-
Uses of ActionType in com.tnsai.accountability
Methods in com.tnsai.accountability that return ActionTypeMethods in com.tnsai.accountability that return types with arguments of type ActionTypeModifier and TypeMethodDescriptionAuthorityScope.allowedActions()Returns the value of theallowedActionsrecord component.Methods in com.tnsai.accountability with parameters of type ActionTypeModifier and TypeMethodDescriptionstatic ActionAction.of(ActionType type, String name, String description) Convenience: action with no target and no parameters.booleanAuthorityScope.permits(ActionType action) Constructors in com.tnsai.accountability with parameters of type ActionTypeModifierConstructorDescriptionAction(ActionType type, String name, Optional<String> target, Map<String, Object> parameters, String description) Creates an instance of aActionrecord class.Constructor parameters in com.tnsai.accountability with type arguments of type ActionTypeModifierConstructorDescriptionAuthorityScope(Set<ActionType> allowedActions, Set<String> targetSystems, Optional<BigDecimal> spendCeilingUSD, Duration validFor, Instant issuedAt) Creates an instance of aAuthorityScoperecord class. -
Uses of ActionType in com.tnsai.actions
Methods in com.tnsai.actions with parameters of type ActionTypeModifier and TypeMethodDescriptionvoidActionExecutor.registerExecutor(ActionType type, TypedActionExecutor executor) Registers a custom executor for a specific action type. -
Uses of ActionType in com.tnsai.enums
Methods in com.tnsai.enums that return ActionTypeModifier and TypeMethodDescriptionstatic ActionTypeReturns the enum constant of this class with the specified name.static ActionType[]ActionType.values()Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of ActionType in com.tnsai.exceptions
Methods in com.tnsai.exceptions that return ActionTypeModifier and TypeMethodDescriptionActionExecutionException.getActionType()Gets the type of the action that failed.Methods in com.tnsai.exceptions with parameters of type ActionTypeModifier and TypeMethodDescriptionstatic ActionExecutionExceptionActionExecutionException.fromApiError(String actionName, ActionType actionType, int statusCode, String responseMessage, Throwable cause) Factory method to create exception from API errors (with HTTP status code).static ActionExecutionExceptionActionExecutionException.fromInvocationError(String actionName, ActionType actionType, Exception cause) Factory method to create exception from invocation errors (reflection, etc.).static ActionExecutionExceptionActionExecutionException.fromLLMError(String actionName, ActionType actionType, Exception cause) Factory method to create exception from LLM errors.static ActionExecutionExceptionActionExecutionException.fromNetworkError(String actionName, ActionType actionType, Exception cause) Factory method to create exception from IOException (network errors).static ActionExecutionExceptionActionExecutionException.fromParameterError(String actionName, ActionType actionType, String details, Throwable cause) Factory method to create exception from parameter validation errors.Constructors in com.tnsai.exceptions with parameters of type ActionTypeModifierConstructorDescriptionActionExecutionException(String message, Throwable cause, String actionName, ActionType actionType) Creates an ActionExecutionException with unknown category.ActionExecutionException(String message, Throwable cause, String actionName, ActionType actionType, ActionExecutionException.ErrorCategory category) Creates an ActionExecutionException with default retryable flag from category.ActionExecutionException(String message, Throwable cause, String actionName, ActionType actionType, ActionExecutionException.ErrorCategory category, boolean retryable) -
Uses of ActionType in com.tnsai.hooks.events
Methods in com.tnsai.hooks.events that return ActionTypeModifier and TypeMethodDescriptionOnCapabilityDispatch.dispatchType()Returns the value of thedispatchTyperecord component.OnActionError.type()Returns the value of thetyperecord component.PostAction.type()Returns the value of thetyperecord component.PreAction.type()Returns the value of thetyperecord component.Constructors in com.tnsai.hooks.events with parameters of type ActionTypeModifierConstructorDescriptionOnActionError(String eventId, Instant timestamp, HookContext context, ActionRequest request, Throwable cause, ActionType type, int attempt, boolean retryable) Creates an instance of aOnActionErrorrecord class.OnCapabilityDispatch(String eventId, Instant timestamp, HookContext context, String capabilityInterface, String methodName, List<Object> args, ActionType dispatchType) Creates an instance of aOnCapabilityDispatchrecord class.PostAction(String eventId, Instant timestamp, HookContext context, ActionRequest request, ActionResponse response, ActionType type, Duration elapsed) Creates an instance of aPostActionrecord class.PreAction(String eventId, Instant timestamp, HookContext context, ActionRequest request, ActionType type) Creates an instance of aPreActionrecord class. -
Uses of ActionType in com.tnsai.metadata
Methods in com.tnsai.metadata that return ActionTypeModifier and TypeMethodDescriptionRoleSpecReader.RoleSpec.ActionSpec.getType()ActionConfig.type()Returns the value of thetyperecord component.Methods in com.tnsai.metadata with parameters of type ActionTypeModifier and TypeMethodDescriptionvoidRoleSpecReader.RoleSpec.ActionSpec.setType(ActionType type) Constructors in com.tnsai.metadata with parameters of type ActionTypeModifierConstructorDescriptionActionConfig(String name, String description, ActionType type, List<ParamSpec> parameters, ActionHandler handler, ContractSpec contract, InputGuardrailConfig inputGuardrail, OutputGuardrailConfig outputGuardrail) Creates an instance of aActionConfigrecord class.ActionMetadata(String name, String description, ActionType type, List<ParamSpec> parameters, ActionHandler handler) Creates action metadata for a programmatically-defined action (TNS-551) — no reflectiveMethod; dispatch goes through the suppliedActionHandler.ActionMetadata(String name, String description, ActionType type, List<ParamSpec> parameters, ActionHandler handler, ContractSpec contractSpec) AsActionMetadata(String, String, ActionType, List, ActionHandler)but with a declarativeContractSpec(TNS-637) — the programmatic equivalent of@Contractfor builder-added actions.ActionMetadata(String name, String description, ActionType type, List<ParamSpec> parameters, ActionHandler handler, ContractSpec contractSpec, InputGuardrailConfig inputGuardrailConfig, OutputGuardrailConfig outputGuardrailConfig) AsActionMetadata(String, String, ActionType, List, ActionHandler, ContractSpec)but also carrying per-action programmatic guardrails (TNS-643) — the builder equivalent of method-level@InputGuardrail/@OutputGuardrail, for builder-added actions that have no method to read the annotation from. -
Uses of ActionType in com.tnsai.security
Methods in com.tnsai.security that return ActionTypeModifier and TypeMethodDescriptionAccessRequest.actionType()Returns the value of theactionTyperecord component.Methods in com.tnsai.security with parameters of type ActionTypeModifier and TypeMethodDescriptionAccessGate.check(String name, ActionType type, Object target, Method method, ExecutionRule dynamicRule, AgentPrincipal principal, AuthorityScope authority) Constructors in com.tnsai.security with parameters of type ActionTypeModifierConstructorDescriptionAccessRequest(String actionName, ActionType actionType, Object target, AccessDeclaration declaration, InvocationContext invocation, AgentPrincipal executor, AuthorityScope authority, AccessSubject executingAgent, String targetSystem, String bindingFingerprint, String partitionFingerprint) Creates an instance of aAccessRequestrecord class.