Package com.google.genkit.core
Class ActionRunResult<T>
java.lang.Object
com.google.genkit.core.ActionRunResult<T>
- Type Parameters:
T- the type of the result
ActionRunResult contains the result of an action execution along with
telemetry information.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for ActionRunResult. -
Constructor Summary
ConstructorsConstructorDescriptionActionRunResult(T result, String traceId, String spanId) Creates a new ActionRunResult. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ActionRunResult.Builder<T> builder()Creates a builder for ActionRunResult.Returns the action result.Returns the span ID for this execution.Returns the trace ID for this execution.
-
Constructor Details
-
ActionRunResult
Creates a new ActionRunResult.- Parameters:
result- the action resulttraceId- the trace ID for this executionspanId- the span ID for this execution
-
-
Method Details
-
getResult
Returns the action result.- Returns:
- the result
-
getTraceId
Returns the trace ID for this execution.- Returns:
- the trace ID
-
getSpanId
Returns the span ID for this execution.- Returns:
- the span ID
-
builder
Creates a builder for ActionRunResult.- Type Parameters:
T- the result type- Returns:
- a new builder
-