All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.theokanning.openai.threads.Thread Maven / Gradle / Ivy

package com.theokanning.openai.threads;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * Represents a Thread with an assistant
 * 

* https://platform.openai.com/docs/api-reference/threads/object */ @NoArgsConstructor @AllArgsConstructor @Data public class Thread { /** * The identifier, which can be referenced in API endpoints. */ String id; /** * The object type, which is always thread. */ String object; /** * The Unix timestamp (in seconds) for when the thread was created. */ @JsonProperty("created_at") int createdAt; /** * Set of 16 key-value pairs that can be attached to an object. * This can be useful for storing additional information about the object in a structured format. * Keys can be a maximum of 64 characters long, and values can be a maximum of 512 characters long. */ Map metadata; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy