Api session items chatmessages: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
<syntaxhighlight lang="text" copy>[ { | <syntaxhighlight lang="text" copy>[ { | ||
"channelID" : 0, | "channelID" : 0, | ||
"date" : | "date" : 1791379950470, | ||
"id" : 0, | "id" : 0, | ||
"message" : "Welcome to Team Chat, here you can sent messages to other currently active users in your domain.", | "message" : "Welcome to Team Chat, here you can sent messages to other currently active users in your domain.", | ||
| Line 13: | Line 13: | ||
}, { | }, { | ||
"channelID" : 1, | "channelID" : 1, | ||
"date" : | "date" : 1791379950470, | ||
"id" : 1, | "id" : 1, | ||
"message" : "Hello! I am your Tygron Wiki assistant.\n\t\t\n\t\tI | "message" : "Hello! I am your Tygron Wiki assistant.\n\t\t\n\t\tI use AI technology to help you with searching the [[Main_Page|Wiki]] for information on features and configurations.\n\t\tWhile following strict [[AI_Rules|AI privacy]] rules.\n\t\t\t\t\n\t\tHow can I assist you today?", | ||
"role" : "INTRO", | "role" : "INTRO", | ||
"version" : 2 | "version" : 2 | ||
| Line 46: | Line 46: | ||
ZIPSMILE: | ZIPSMILE: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/?f=ZIPSMILE&token=API_TOKEN</syntaxhighlight> | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/?f=ZIPSMILE&token=API_TOKEN</syntaxhighlight> | ||
==Api Model | ==Api Model AgentChatMessage== | ||
API Model description of | API Model description of AgentChatMessage | ||
{|class=wikitable | {|class=wikitable | ||
| Line 79: | Line 79: | ||
|- | |- | ||
| state | | state | ||
| | | AgentState | ||
| | | | ||
|- | |- | ||
| Line 87: | Line 87: | ||
|- | |- | ||
| toolCalls | | toolCalls | ||
| | | AgentToolCall<nowiki>[]</nowiki> | ||
| | | | ||
|- | |- | ||
| Line 95: | Line 95: | ||
|} | |} | ||
==Api Model | ==Api Model AgentState== | ||
API Enumeration description of | API Enumeration description of AgentState | ||
{|class=wikitable | {|class=wikitable | ||
| Line 118: | Line 118: | ||
|} | |} | ||
==Api Model | ==Api Model AgentToolCall== | ||
API Model description of | API Model description of AgentToolCall | ||
{|class=wikitable | {|class=wikitable | ||
Latest revision as of 08:45, 13 October 2026
API Endpoint: /api/session/items/chatmessages/
Default Query:
https://engine.tygron.com/api/session/items/chatmessages/?token=API_TOKENExample Response:
[ {
"channelID" : 0,
"date" : 1791379950470,
"id" : 0,
"message" : "Welcome to Team Chat, here you can sent messages to other currently active users in your domain.",
"role" : "INTRO",
"version" : 1
}, {
"channelID" : 1,
"date" : 1791379950470,
"id" : 1,
"message" : "Hello! I am your Tygron Wiki assistant.\n\t\t\n\t\tI use AI technology to help you with searching the [[Main_Page|Wiki]] for information on features and configurations.\n\t\tWhile following strict [[AI_Rules|AI privacy]] rules.\n\t\t\t\t\n\t\tHow can I assist you today?",
"role" : "INTRO",
"version" : 2
} ]Limit Queries
Version=100:
https://engine.tygron.com/api/session/items/chatmessages/?version=100&token=API_TOKENGet Queries
Attributes:
https://engine.tygron.com/api/session/items/chatmessages/attributes/?token=API_TOKENMax version:
https://engine.tygron.com/api/session/items/chatmessages/version/?token=API_TOKENCount:
https://engine.tygron.com/api/session/items/chatmessages/count/?token=API_TOKENSpecific Item by ID:
https://engine.tygron.com/api/session/items/chatmessages/{id}/?token=API_TOKENFormats
HTML:
https://engine.tygron.com/api/session/items/chatmessages/?f=HTML&token=API_TOKENJSON:
https://engine.tygron.com/api/session/items/chatmessages/?f=JSON&token=API_TOKENCSV:
https://engine.tygron.com/api/session/items/chatmessages/?f=CSV&token=API_TOKENSSV:
https://engine.tygron.com/api/session/items/chatmessages/?f=SSV&token=API_TOKENSMILE:
https://engine.tygron.com/api/session/items/chatmessages/?f=SMILE&token=API_TOKENZIPJSON:
https://engine.tygron.com/api/session/items/chatmessages/?f=ZIPJSON&token=API_TOKENZIPSMILE:
https://engine.tygron.com/api/session/items/chatmessages/?f=ZIPSMILE&token=API_TOKENApi Model AgentChatMessage
API Model description of AgentChatMessage
| Name | Type | Description |
|---|---|---|
| calcTimeMS | long | |
| channelID | int | Chat Channel ID |
| date | long | |
| id | int | |
| message | String | |
| role | Role | |
| state | AgentState | |
| thinking | String | |
| toolCalls | AgentToolCall[] | |
| version | int |
Api Model AgentState
API Enumeration description of AgentState
| Name | Description |
|---|---|
| NONE | |
| QUEUING | |
| READING | |
| GENERATING | |
| FINISHED |
Api Model AgentToolCall
API Model description of AgentToolCall
| Name | Type | Description |
|---|---|---|
| arguments | String | |
| id | String | |
| name | String |
Api Model ChatMessage
API Model description of ChatMessage
| Name | Type | Description |
|---|---|---|
| channelID | int | Chat Channel ID |
| date | long | |
| id | int | |
| message | String | |
| role | Role | |
| version | int |
Api Model DomainMessage
API Model description of DomainMessage
| Name | Type | Description |
|---|---|---|
| channelID | int | Chat Channel ID |
| date | long | |
| fullName | String | |
| id | int | |
| message | String | |
| role | Role | |
| userName | String | |
| version | int |
Api Model Role
API Enumeration description of Role
| Name | Description |
|---|---|
| SYSTEM | |
| INTRO | |
| ASSISTANT | |
| USER |