Class ToolRunResult
java.lang.Object
com.oracle.database.selectai.model.agent.ToolRunResult
Result returned by a Select AI Agent tool run.
Tool output is defined by the configured tool and may be text or JSON. This model therefore preserves the database value without imposing a tool-specific schema.
This class inherits Object.toString() so ordinary object logging
does not include response content. Use getRawValue() explicitly
when the response is needed, and review it before logging.
- Since:
- 1.1.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ToolRunResultfromRawValue(String rawValue) Creates a result from a database value.Returns the exact value returned by the database without parsing or modification.
-
Constructor Details
-
ToolRunResult
Creates a tool-run result.- Parameters:
rawValue- value returned by the database, possiblynull
-
-
Method Details
-
fromRawValue
Creates a result from a database value.- Parameters:
rawValue- value returned by the database- Returns:
- result, or
nullwhen the database returned no value
-
getRawValue
Returns the exact value returned by the database without parsing or modification.- Returns:
- tool output, or
nullwhen the database returned no value
-