Package com.tnsai.tools
Enum Class SideEffect
- All Implemented Interfaces:
Serializable,Comparable<SideEffect>,Constable
What part of the world a
can change. A tool declares its
effects via
; policy engines and sandbox
configurators use the set to decide whether to permit, route, or audit
the call.
invalid reference
Tool
invalid reference
Tool#getSideEffects()
An empty set means the tool is pure — it returns information without mutating anything reachable from the JVM.
- Since:
- 0.5.0 (issue #18)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReads or writes a database (SQL, NoSQL, cache, message broker).Reads or writes the local filesystem (paths inside or outside the workspace).Invokes git plumbing or porcelain commands locally.Sends a user-visible message on any channel (email, chat, SMS, push, social posting).Initiates outbound network requests (HTTP, gRPC, WebSocket, etc.).Triggers a financial transaction (payment, transfer, refund).Spawns a shell or executes binary commands. -
Method Summary
Modifier and TypeMethodDescriptionstatic SideEffectReturns the enum constant of this class with the specified name.static SideEffect[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
FILESYSTEM
Reads or writes the local filesystem (paths inside or outside the workspace). -
NETWORK
Initiates outbound network requests (HTTP, gRPC, WebSocket, etc.). -
GIT
Invokes git plumbing or porcelain commands locally. -
SHELL
Spawns a shell or executes binary commands. Distinct fromFILESYSTEMbecause shell can do arbitrary things — always pair with elevated risk classification. -
PAYMENT
Triggers a financial transaction (payment, transfer, refund). -
MESSAGING
Sends a user-visible message on any channel (email, chat, SMS, push, social posting). Distinct fromNETWORKbecause the recipient is human and the side effect is social, not just bytes. -
DATABASE
Reads or writes a database (SQL, NoSQL, cache, message broker).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-