com.microsoft.azure.functions.openai.annotation.assistant.AssistantQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-functions-java-library-openai Show documentation
Show all versions of azure-functions-java-library-openai Show documentation
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 com.microsoft.azure.functions.annotation.CustomBinding;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
*
* Assistant query input attribute which is used query the Assistant to get
* current state.
*
*
* @since 1.0.0
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.PARAMETER)
@CustomBinding(direction = "in", name = "", type = "assistantQuery")
public @interface AssistantQuery {
/**
* The default storage account setting for the table storage account.
* This constant is used to specify the connection string for the table storage
* account
* where chat data will be stored.
*/
String DEFAULT_CHATSTORAGE = "AzureWebJobsStorage";
/**
* The default collection name for the table storage account.
* This constant is used to specify the collection name for the table storage
* account
* where chat data will be stored.
*/
String DEFAULT_COLLECTION = "ChatState";
/**
* The variable name used in function.json.
*
* @return The variable name used in function.json.
*/
String name();
/**
* The ID of the Assistant to query.
*
* @return The ID of the Assistant to query.
*/
String id();
/**
* The timestamp of the earliest message in the chat history to fetch.
* The timestamp should be in ISO 8601 format - for example,
* 2023-08-01T00:00:00Z.
*
* @return The timestamp of the earliest message in the chat history to fetch.
*/
String timestampUtc();
/**
* The configuration section name for the table settings for assistant chat
* storage.
*
* @return The configuration section name for the table settings for assistant
* chat storage. By default, it returns {@code DEFAULT_CHATSTORAGE}.
*/
String chatStorageConnectionSetting() default DEFAULT_CHATSTORAGE;
/**
* The table collection name for assistant chat storage.
*
* @return the table collection name for assistant chat storage.By default, it
* returns {@code DEFAULT_COLLECTION}.
*/
String collectionName() default DEFAULT_COLLECTION;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy