Package com.tnsai.llm.observability
Class LLMCallLog.Builder
java.lang.Object
com.tnsai.llm.observability.LLMCallLog.Builder
- Enclosing class:
LLMCallLog
Mutable builder — collects fields as the call executes
(start → response → finish), then produces the immutable record.
Not thread-safe; one builder per in-flight call.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()context(com.tnsai.observability.events.EventContext v) cost(CostEstimate v) finishReason(com.tnsai.llm.ChatChunk.FinishReason v) retryAttempt(int v) tools(ToolSurface v) usage(TokenUsage v)
-
Method Details
-
callId
-
startedAt
-
completedAt
-
provider
-
model
-
endpoint
-
context
-
prompt
-
tools
-
response
-
usage
-
cost
-
finishReason
-
streamMetrics
-
error
-
retryAttempt
-
providerExtensions
-
build
-