Class ToolCallBuilder
java.lang.Object
dev.langchain4j.internal.ToolCallBuilder
Internal helper that helps to build partial and complete tool calls during streaming.
Volatile fields, StringBuffer, and ConcurrentLinkedQueue are used to ensure safe access, as incoming SSE events may be processed by different threads depending on the underlying HTTP client implementation.
- Since:
- 1.2.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidappendArguments(String partialArguments) booleanid()intindex()name()voidupdateIndex(Integer index) updateName(String name) 
- 
Constructor Details- 
ToolCallBuilderpublic ToolCallBuilder()
- 
ToolCallBuilderpublic ToolCallBuilder(int index) 
 
- 
- 
Method Details- 
indexpublic int index()
- 
updateIndex
- 
id
- 
updateId
- 
name
- 
updateName
- 
appendArguments
- 
buildAndReset
- 
hasRequestspublic boolean hasRequests()
- 
allRequests
 
-