
ee.carlrobert.llm.client.openai.completion.response.OpenAIChatCompletionResponseChoiceDelta Maven / Gradle / Ivy
package ee.carlrobert.llm.client.openai.completion.response;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@JsonIgnoreProperties(ignoreUnknown = true)
public class OpenAIChatCompletionResponseChoiceDelta {
private final String role;
private final String content;
private final List toolCalls;
@JsonCreator(mode = JsonCreator.Mode.PROPERTIES)
public OpenAIChatCompletionResponseChoiceDelta(
@JsonProperty("role") String role,
@JsonProperty("content") String content,
@JsonProperty("tool_calls") List toolCalls) {
this.role = role;
this.content = content;
this.toolCalls = toolCalls;
}
public String getRole() {
return role;
}
public String getContent() {
return content;
}
public List getToolCalls() {
return toolCalls;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy