Package com.datadog.api.client.v2.model
Class LLMObsSpanAttributes
java.lang.Object
com.datadog.api.client.v2.model.LLMObsSpanAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class LLMObsSpanAttributes
extends Object
Attributes of an Agent Observability span.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTagsItem(String tagsItem) addToolDefinitionsItem(LLMObsSpanToolDefinition toolDefinitionsItem) booleanReturn true if this LLMObsSpanAttributes object is equal to o.evaluation(Map<String, LLMObsSpanEvaluationMetric> evaluation) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Duration of the span in nanoseconds.Evaluation metrics keyed by evaluator name.getInput()Input or output content of an Agent Observability span.Detected intent of the span.Arbitrary metadata associated with the span.Numeric metrics associated with the span (e.g., token counts).getMlApp()Name of the ML application this span belongs to.Name of the model used in this span.Provider of the model used in this span.getName()Name of the span.Input or output content of an Agent Observability span.Identifier of the parent span, if any.Unique identifier of the span.Kind of span (e.g., llm, agent, tool, task, workflow).Start time of the span in nanoseconds since Unix epoch.Status of the span (e.g., ok, error).getTags()Tags associated with the span.Tool definitions available to the span.Trace identifier this span belongs to.inthashCode()input(LLMObsSpanIO input) modelProvider(String modelProvider) output(LLMObsSpanIO output) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.putEvaluationItem(String key, LLMObsSpanEvaluationMetric evaluationItem) putMetadataItem(String key, Object metadataItem) putMetricsItem(String key, Double metricsItem) voidsetDuration(Double duration) voidsetEvaluation(Map<String, LLMObsSpanEvaluationMetric> evaluation) voidsetInput(LLMObsSpanIO input) voidvoidsetMetadata(Map<String, Object> metadata) voidsetMetrics(Map<String, Double> metrics) voidvoidsetModelName(String modelName) voidsetModelProvider(String modelProvider) voidvoidsetOutput(LLMObsSpanIO output) voidsetParentId(String parentId) voidvoidsetSpanKind(String spanKind) voidsetStartNs(Long startNs) voidvoidvoidsetToolDefinitions(List<LLMObsSpanToolDefinition> toolDefinitions) voidsetTraceId(String traceId) toolDefinitions(List<LLMObsSpanToolDefinition> toolDefinitions) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_DURATION
- See Also:
-
JSON_PROPERTY_EVALUATION
- See Also:
-
JSON_PROPERTY_INPUT
- See Also:
-
JSON_PROPERTY_INTENT
- See Also:
-
JSON_PROPERTY_METADATA
- See Also:
-
JSON_PROPERTY_METRICS
- See Also:
-
JSON_PROPERTY_ML_APP
- See Also:
-
JSON_PROPERTY_MODEL_NAME
- See Also:
-
JSON_PROPERTY_MODEL_PROVIDER
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_OUTPUT
- See Also:
-
JSON_PROPERTY_PARENT_ID
- See Also:
-
JSON_PROPERTY_SPAN_ID
- See Also:
-
JSON_PROPERTY_SPAN_KIND
- See Also:
-
JSON_PROPERTY_START_NS
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_TAGS
- See Also:
-
JSON_PROPERTY_TOOL_DEFINITIONS
- See Also:
-
JSON_PROPERTY_TRACE_ID
- See Also:
-
-
Constructor Details
-
LLMObsSpanAttributes
public LLMObsSpanAttributes() -
LLMObsSpanAttributes
-
-
Method Details
-
duration
-
getDuration
Duration of the span in nanoseconds.- Returns:
- duration
-
setDuration
-
evaluation
-
putEvaluationItem
public LLMObsSpanAttributes putEvaluationItem(String key, LLMObsSpanEvaluationMetric evaluationItem) -
getEvaluation
Evaluation metrics keyed by evaluator name.- Returns:
- evaluation
-
setEvaluation
-
input
-
getInput
Input or output content of an Agent Observability span.- Returns:
- input
-
setInput
-
intent
-
getIntent
Detected intent of the span.- Returns:
- intent
-
setIntent
-
metadata
-
putMetadataItem
-
getMetadata
Arbitrary metadata associated with the span.- Returns:
- metadata
-
setMetadata
-
metrics
-
putMetricsItem
-
getMetrics
Numeric metrics associated with the span (e.g., token counts).- Returns:
- metrics
-
setMetrics
-
mlApp
-
getMlApp
Name of the ML application this span belongs to.- Returns:
- mlApp
-
setMlApp
-
modelName
-
getModelName
Name of the model used in this span.- Returns:
- modelName
-
setModelName
-
modelProvider
-
getModelProvider
Provider of the model used in this span.- Returns:
- modelProvider
-
setModelProvider
-
name
-
getName
Name of the span.- Returns:
- name
-
setName
-
output
-
getOutput
Input or output content of an Agent Observability span.- Returns:
- output
-
setOutput
-
parentId
-
getParentId
Identifier of the parent span, if any.- Returns:
- parentId
-
setParentId
-
spanId
-
getSpanId
Unique identifier of the span.- Returns:
- spanId
-
setSpanId
-
spanKind
-
getSpanKind
Kind of span (e.g., llm, agent, tool, task, workflow).- Returns:
- spanKind
-
setSpanKind
-
startNs
-
getStartNs
Start time of the span in nanoseconds since Unix epoch.- Returns:
- startNs
-
setStartNs
-
status
-
getStatus
Status of the span (e.g., ok, error).- Returns:
- status
-
setStatus
-
tags
-
addTagsItem
-
getTags
Tags associated with the span.- Returns:
- tags
-
setTags
-
toolDefinitions
-
addToolDefinitionsItem
-
getToolDefinitions
Tool definitions available to the span.- Returns:
- toolDefinitions
-
setToolDefinitions
-
traceId
-
getTraceId
Trace identifier this span belongs to.- Returns:
- traceId
-
setTraceId
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- LLMObsSpanAttributes
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this LLMObsSpanAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-