Module org.elasticsearch.xcore
Class StreamingUnifiedChatCompletionResults.ChatCompletionChunk.Choice.Delta.ToolCall
java.lang.Object
org.elasticsearch.xpack.core.inference.results.StreamingUnifiedChatCompletionResults.ChatCompletionChunk.Choice.Delta.ToolCall
- All Implemented Interfaces:
ChunkedToXContent,ChunkedToXContentObject
public static class StreamingUnifiedChatCompletionResults.ChatCompletionChunk.Choice.Delta.ToolCall
extends Object
implements ChunkedToXContentObject
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionToolCall(int index, String id, StreamingUnifiedChatCompletionResults.ChatCompletionChunk.Choice.Delta.ToolCall.Function function, String type) -
Method Summary
Modifier and TypeMethodDescriptiongetId()intgetIndex()getType()Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params params) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
toXContentChunked, toXContentChunkedV8Methods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContentObject
isFragment
-
Field Details
-
function
-
-
Constructor Details
-
ToolCall
public ToolCall(int index, String id, StreamingUnifiedChatCompletionResults.ChatCompletionChunk.Choice.Delta.ToolCall.Function function, String type)
-
-
Method Details
-
getIndex
public int getIndex() -
getId
-
getFunction
-
getType
-
toXContentChunked
public Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params params) - Specified by:
toXContentChunkedin interfaceChunkedToXContent
-