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

com.microsoft.azure.functions.openai.annotation.assistant.AssistantState Maven / Gradle / Ivy

Go to download

This package contains all Java interfaces and annotations to interact with Microsoft Azure functions java runtime.

The newest version!
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 */

package com.microsoft.azure.functions.openai.annotation.assistant;

import java.util.List;

/**
 * 

* Assistant state. *

*/ public class AssistantState { private String id; private boolean exists; private String createdAt; private String lastUpdatedAt; private int totalMessages; private int totalTokens; private List recentMessages; public AssistantState(String id, boolean exists, String createdAt, String lastUpdatedAt, int totalMessages, int totalTokens, List recentMessages) { this.id = id; this.exists = exists; this.createdAt = createdAt; this.lastUpdatedAt = lastUpdatedAt; this.totalMessages = totalMessages; this.totalTokens = totalTokens; this.recentMessages = recentMessages; } /** * Gets the ID of the assistant. * * @return The ID of the assistant. */ public String getId() { return id; } /** * Gets if assistant exists. * * @return If assistant exists. */ public boolean isExists() { return exists; } /** * Gets timestamp of when assistant is created. * * @return The timestamp of when assistant is created. */ public String getCreatedAt() { return createdAt; } /** * Gets timestamp of when assistant is last updated. * * @return The timestamp of when assistant is last updated. */ public String getLastUpdatedAt() { return lastUpdatedAt; } /** * Gets number of total messages for assistant. * * @return The number of total messages for assistant. */ public int getTotalMessages() { return totalMessages; } /** * Gets number of total tokens for assistant. * * @return The number of total tokens for assistant. */ public int getTotalTokens() { return totalTokens; } /** * Gets a list of the recent messages from the assistant. * * @return A list of the recent messages from the assistant. */ public List getRecentMessages() { return recentMessages; } /** * Sets the ID of the assistant. * * @param id The ID of the assistant. */ public void setId(String id) { this.id = id; } /** * Sets if assistant exists. * * @param exists If assistant exists. */ public void setExists(boolean exists) { this.exists = exists; } /** * Sets timestamp of when assistant is created. * * @param createdAt The timestamp of when assistant is created. */ public void setCreatedAt(String createdAt) { this.createdAt = createdAt; } /** * Sets timestamp of when assistant is last updated. * * @param lastUpdatedAt The timestamp of when assistant is last updated. */ public void setLastUpdatedAt(String lastUpdatedAt) { this.lastUpdatedAt = lastUpdatedAt; } /** * Sets number of total messages for assistant. * * @param totalMessages The number of total messages for assistant. */ public void setTotalMessages(int totalMessages) { this.totalMessages = totalMessages; } /** * Sets number of total tokens for assistant. * * @param totalTokens The number of total tokens for assistant. */ public void setTotalTokens(int totalTokens) { this.totalTokens = totalTokens; } /** * Sets a list of the recent messages from the assistant. * * @param recentMessages A list of the recent messages from the assistant. */ public void setRecentMessages(List recentMessages) { this.recentMessages = recentMessages; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy