package
0.40.0-beta
Repository: https://github.com/instill-ai/pipeline-backend.git
Documentation: pkg.go.dev

# README


title: "Instill App" lang: "en-US" draft: false description: "Learn about how to set up a VDP Instill App component https://github.com/instill-ai/instill-core"

The Instill App component is an application component that allows users to manipulate Instill App related resources.. It can carry out the following tasks:

Release Stage

Alpha

Configuration

The component definition and tasks are defined in the definition.json and tasks.json files respectively.

Supported Tasks

Read Chat History

Retrieve the chat history from the conversation.

InputIDTypeDescription
Task ID (required)taskstringTASK_READ_CHAT_HISTORY
Namespace (required)namespacestringFill in your namespace, you can get namespace through the tab of switching namespace.
App ID (required)app-idstringFill in your app ID.
Conversation ID (required)conversation-idstringFill in your conversation ID.
RolerolestringThe role of the user you want to specify to retrieve in the conversation. The default is all with the blank setting. Now, we support 'user' and 'assistant'.
Message Typemessage-typestringThe message type of the chat history you want to retrieve. The default is all with blank setting. Now, we only support 'MESSAGE_TYPE_TEXT'.
DurationdurationstringThe duration between now and how long ago to retrieve the chat history from. i.e. 2h45m5s. Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". The default is all with blank setting.
Max Message Countmax-message-countintegerThe maximum number of messages to retrieve. The default is all with blank setting.
OutputIDTypeDescription
Chat Messagesmessagesarray[object]List of chat messages
Output Objects in Read Chat History

Chat Messages

FieldField IDTypeNote
ContentcontentarrayThe message content.
NamenamestringAn optional name for the participant. Provides the model information to differentiate between participants of the same role.
RolerolestringThe message role, i.e. 'system', 'user' or 'assistant'.

Write Chat Message

Write the chat message into the conversation in catalog.

InputIDTypeDescription
Task ID (required)taskstringTASK_WRITE_CHAT_MESSAGE
Namespace (required)namespacestringFill in your namespace, you can get namespace through the tab of switching namespace.
App ID (required)app-idstringFill in your app ID.
Conversation ID (required)conversation-idstringFill in your conversation ID.
Message (required)messageobjectA chat message to be written into the conversation.
Input Objects in Write Chat Message

Message

A chat message to be written into the conversation.

FieldField IDTypeNote
ContentcontentstringThe contents of the message.
RolerolestringThe role of the author of this message. Now, we support 'user' and 'assistant'.
OutputIDTypeDescription
Message IDmessage-uidstringThe unique identifier of the message.
Create Timecreate-timestringThe creation time of the message in ISO 8601 format
Update Timeupdate-timestringThe update time of the message in ISO 8601 format

# Functions

No description provided by the author

# Constants

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author