io.github.sashirestela.openai.common.tool.ToolCall Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simple-openai Show documentation
Show all versions of simple-openai Show documentation
A Java library to use the OpenAI API in the simplest possible way.
package io.github.sashirestela.openai.common.tool;
import io.github.sashirestela.openai.common.function.FunctionCall;
import io.github.sashirestela.slimvalidator.constraints.Required;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;
@AllArgsConstructor
@NoArgsConstructor
@Getter
@ToString
public class ToolCall {
private Integer index;
@Required
private String id;
@Required
private ToolType type;
@Required
private FunctionCall function;
}