Class AnthropicChatResponseMetadata.Builder
java.lang.Object
dev.langchain4j.model.chat.response.ChatResponseMetadata.Builder<AnthropicChatResponseMetadata.Builder>
dev.langchain4j.model.anthropic.AnthropicChatResponseMetadata.Builder
- Enclosing class:
AnthropicChatResponseMetadata
public static class AnthropicChatResponseMetadata.Builder
extends ChatResponseMetadata.Builder<AnthropicChatResponseMetadata.Builder>
- Since:
- 1.10.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()rawHttpResponse(SuccessfulHttpResponse rawHttpResponse) rawServerSentEvents(List<ServerSentEvent> rawServerSentEvents) Methods inherited from class ChatResponseMetadata.Builder
finishReason, id, modelName, tokenUsage
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
rawHttpResponse
public AnthropicChatResponseMetadata.Builder rawHttpResponse(SuccessfulHttpResponse rawHttpResponse) -
rawServerSentEvents
public AnthropicChatResponseMetadata.Builder rawServerSentEvents(List<ServerSentEvent> rawServerSentEvents) -
build
- Overrides:
buildin classChatResponseMetadata.Builder<AnthropicChatResponseMetadata.Builder>
-