Class ObservationsView.Builder
- All Implemented Interfaces:
ObservationsView._FinalStage,ObservationsView.IdStage,ObservationsView.LevelStage,ObservationsView.StartTimeStage,ObservationsView.TypeStage
- Enclosing class:
- ObservationsView
-
Method Summary
Modifier and TypeMethodDescriptionbuild()calculatedInputCost(Double calculatedInputCost) (Deprecated.calculatedInputCost(Optional<Double> calculatedInputCost) calculatedOutputCost(Double calculatedOutputCost) (Deprecated.calculatedOutputCost(Optional<Double> calculatedOutputCost) calculatedTotalCost(Double calculatedTotalCost) (Deprecated.calculatedTotalCost(Optional<Double> calculatedTotalCost) completionStartTime(OffsetDateTime completionStartTime) The completion start time of the observationcompletionStartTime(Optional<OffsetDateTime> completionStartTime) costDetails(Map<String, Double> costDetails) The cost details of the observation.costDetails(Optional<Map<String, Double>> costDetails) endTime(OffsetDateTime endTime) The end time of the observation.endTime(Optional<OffsetDateTime> endTime) environment(String environment) The environment from which this observation originated.environment(Optional<String> environment) from(ObservationsView other) The unique identifier of the observationThe input data of the observationinputPrice(Double inputPrice) The price of the input in USDinputPrice(Optional<Double> inputPrice) The latency in seconds.level(ObservationLevel level) The level of the observationAdditional metadata of the observationThe model used for the observationThe unique identifier of the modelmodelParameters(Map<String, MapValue> modelParameters) The parameters of the model used for the observationmodelParameters(Optional<Map<String, MapValue>> modelParameters) The name of the observationThe output data of the observationoutputPrice(Double outputPrice) The price of the output in USD.outputPrice(Optional<Double> outputPrice) parentObservationId(String parentObservationId) The parent observation IDparentObservationId(Optional<String> parentObservationId) The prompt ID associated with the observationpromptName(String promptName) The name of the prompt associated with the observationpromptName(Optional<String> promptName) promptVersion(Integer promptVersion) The version of the prompt associated with the observationpromptVersion(Optional<Integer> promptVersion) startTime(OffsetDateTime startTime) The start time of the observationstatusMessage(String statusMessage) The status message of the observationstatusMessage(Optional<String> statusMessage) timeToFirstToken(Double timeToFirstToken) The time to the first token in secondstimeToFirstToken(Optional<Double> timeToFirstToken) totalPrice(Double totalPrice) The total price in USD.totalPrice(Optional<Double> totalPrice) The trace ID associated with the observationThe type of the observation(Deprecated.usageDetails(Map<String, Integer> usageDetails) The usage details of the observation.usageDetails(Optional<Map<String, Integer>> usageDetails) The version of the observation
-
Method Details
-
from
- Specified by:
fromin interfaceObservationsView.IdStage
-
id
The unique identifier of the observation
- Specified by:
idin interfaceObservationsView.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
The type of the observation
- Specified by:
typein interfaceObservationsView.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
startTime
The start time of the observation
- Specified by:
startTimein interfaceObservationsView.StartTimeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
level
The level of the observation
- Specified by:
levelin interfaceObservationsView.LevelStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
timeToFirstToken
The time to the first token in seconds
- Specified by:
timeToFirstTokenin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
timeToFirstToken
- Specified by:
timeToFirstTokenin interfaceObservationsView._FinalStage
-
latency
The latency in seconds.
- Specified by:
latencyin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
latency
- Specified by:
latencyin interfaceObservationsView._FinalStage
-
calculatedTotalCost
(Deprecated. Use usageDetails and costDetails instead.) The calculated total cost in USD
- Specified by:
calculatedTotalCostin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
calculatedTotalCost
- Specified by:
calculatedTotalCostin interfaceObservationsView._FinalStage
-
calculatedOutputCost
(Deprecated. Use usageDetails and costDetails instead.) The calculated cost of the output in USD
- Specified by:
calculatedOutputCostin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
calculatedOutputCost
- Specified by:
calculatedOutputCostin interfaceObservationsView._FinalStage
-
calculatedInputCost
(Deprecated. Use usageDetails and costDetails instead.) The calculated cost of the input in USD
- Specified by:
calculatedInputCostin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
calculatedInputCost
- Specified by:
calculatedInputCostin interfaceObservationsView._FinalStage
-
totalPrice
The total price in USD.
- Specified by:
totalPricein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
totalPrice
- Specified by:
totalPricein interfaceObservationsView._FinalStage
-
outputPrice
The price of the output in USD.
- Specified by:
outputPricein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
outputPrice
- Specified by:
outputPricein interfaceObservationsView._FinalStage
-
inputPrice
The price of the input in USD
- Specified by:
inputPricein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
inputPrice
- Specified by:
inputPricein interfaceObservationsView._FinalStage
-
modelId
The unique identifier of the model
- Specified by:
modelIdin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
modelId
- Specified by:
modelIdin interfaceObservationsView._FinalStage
-
promptVersion
The version of the prompt associated with the observation
- Specified by:
promptVersionin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
promptVersion
- Specified by:
promptVersionin interfaceObservationsView._FinalStage
-
promptName
The name of the prompt associated with the observation
- Specified by:
promptNamein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
promptName
- Specified by:
promptNamein interfaceObservationsView._FinalStage
-
environment
The environment from which this observation originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'ants-platform'.
- Specified by:
environmentin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
environment
- Specified by:
environmentin interfaceObservationsView._FinalStage
-
costDetails
The cost details of the observation. Key is the name of the cost metric, value is the cost in USD. The total key is the sum of all (non-total) cost metrics or the total value ingested.
- Specified by:
costDetailsin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
costDetails
- Specified by:
costDetailsin interfaceObservationsView._FinalStage
-
usageDetails
The usage details of the observation. Key is the name of the usage metric, value is the number of units consumed. The total key is the sum of all (non-total) usage metrics or the total value ingested.
- Specified by:
usageDetailsin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
usageDetails
- Specified by:
usageDetailsin interfaceObservationsView._FinalStage
-
promptId
The prompt ID associated with the observation
- Specified by:
promptIdin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
promptId
- Specified by:
promptIdin interfaceObservationsView._FinalStage
-
parentObservationId
The parent observation ID
- Specified by:
parentObservationIdin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentObservationId
- Specified by:
parentObservationIdin interfaceObservationsView._FinalStage
-
statusMessage
The status message of the observation
- Specified by:
statusMessagein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
statusMessage
- Specified by:
statusMessagein interfaceObservationsView._FinalStage
-
usage
(Deprecated. Use usageDetails and costDetails instead.) The usage data of the observation
- Specified by:
usagein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
usage
- Specified by:
usagein interfaceObservationsView._FinalStage
-
output
The output data of the observation
- Specified by:
outputin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
output
- Specified by:
outputin interfaceObservationsView._FinalStage
-
metadata
Additional metadata of the observation
- Specified by:
metadatain interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
metadata
- Specified by:
metadatain interfaceObservationsView._FinalStage
-
version
The version of the observation
- Specified by:
versionin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
version
- Specified by:
versionin interfaceObservationsView._FinalStage
-
input
The input data of the observation
- Specified by:
inputin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
input
- Specified by:
inputin interfaceObservationsView._FinalStage
-
modelParameters
The parameters of the model used for the observation
- Specified by:
modelParametersin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
modelParameters
- Specified by:
modelParametersin interfaceObservationsView._FinalStage
-
model
The model used for the observation
- Specified by:
modelin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
model
- Specified by:
modelin interfaceObservationsView._FinalStage
-
completionStartTime
The completion start time of the observation
- Specified by:
completionStartTimein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
completionStartTime
public ObservationsView._FinalStage completionStartTime(Optional<OffsetDateTime> completionStartTime) - Specified by:
completionStartTimein interfaceObservationsView._FinalStage
-
endTime
The end time of the observation.
- Specified by:
endTimein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
endTime
- Specified by:
endTimein interfaceObservationsView._FinalStage
-
name
The name of the observation
- Specified by:
namein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
- Specified by:
namein interfaceObservationsView._FinalStage
-
traceId
The trace ID associated with the observation
- Specified by:
traceIdin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
traceId
- Specified by:
traceIdin interfaceObservationsView._FinalStage
-
build
- Specified by:
buildin interfaceObservationsView._FinalStage
-