Api session items chatmessages: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
<syntaxhighlight lang="text" copy>[ {
<syntaxhighlight lang="text" copy>[ {
   "channelID" : 0,
   "channelID" : 0,
   "date" : 1783964180556,
   "date" : 1789372221356,
   "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 15: Line 15:
}, {
}, {
   "channelID" : 1,
   "channelID" : 1,
   "date" : 1783964180556,
   "date" : 1789372221356,
   "id" : 1,
   "id" : 1,
   "message" : "Hello! I am your Tygron Wiki assistant.\n\t\t\n\t\tI can help you with:\n\t\tSearching the Tygron Wiki for information on features, configurations and guides.\n\t\t\n\t\tHow can I assist you today?",
   "message" : "Hello! I am your Tygron Wiki assistant.\n\t\t\n\t\tI can help you with searching the [[Main_Page|Wiki]] for information on features and configurations.\n\t\tWhile following strict [[Chat_Channel#Privacy|AI chat privacy]] rules.\n\t\t\t\t\n\t\tHow can I assist you today?",
   "role" : "INTRO",
   "role" : "INTRO",
   "version" : 2
   "version" : 5
} ]</syntaxhighlight>
} ]</syntaxhighlight>
==Limit Queries==
==Limit Queries==
version=100:  
Version=100:  
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/?version=100&token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/?version=100&token=API_TOKEN</syntaxhighlight>
==Get Queries==
==Get Queries==
attributes:  
Attributes:  
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/attributes/?token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/attributes/?token=API_TOKEN</syntaxhighlight>
max version:  
Max version:  
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/version/?token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/version/?token=API_TOKEN</syntaxhighlight>
count:  
Count:  
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/count/?token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/count/?token=API_TOKEN</syntaxhighlight>
Specific Item:
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/{itemID}/?token=API_TOKEN</syntaxhighlight>
==Formats==
==Formats==
HTML:  
HTML:  
Line 106: Line 108:
|-
|-
| QUEUING
| QUEUING
|
|-
| READING
|  
|  
|-
|-
Line 112: Line 117:
|-
|-
| FINISHED
| FINISHED
|
|}
==Api Model AIToolCall==
API Model description of AIToolCall
{|class=wikitable
!Name
!Type
!Description
|-
| arguments
| String
|
|-
| id
| String
|
|-
| name
| String
|  
|  
|}
|}

Revision as of 07:38, 22 September 2026

API Endpoint: /api/session/items/chatmessages/

Edit items with events described at Api session event editor chatmessage.

Default Query:

https://engine.tygron.com/api/session/items/chatmessages/?f=JSON&token=API_TOKEN

Example Response:

[ {
  "channelID" : 0,
  "date" : 1789372221356,
  "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" : 1789372221356,
  "id" : 1,
  "message" : "Hello! I am your Tygron Wiki assistant.\n\t\t\n\t\tI can help you with searching the [[Main_Page|Wiki]] for information on features and configurations.\n\t\tWhile following strict [[Chat_Channel#Privacy|AI chat privacy]] rules.\n\t\t\t\t\n\t\tHow can I assist you today?",
  "role" : "INTRO",
  "version" : 5
} ]

Limit Queries

Version=100:

https://engine.tygron.com/api/session/items/chatmessages/?version=100&token=API_TOKEN

Get Queries

Attributes:

https://engine.tygron.com/api/session/items/chatmessages/attributes/?token=API_TOKEN

Max version:

https://engine.tygron.com/api/session/items/chatmessages/version/?token=API_TOKEN

Count:

https://engine.tygron.com/api/session/items/chatmessages/count/?token=API_TOKEN

Specific Item:

https://engine.tygron.com/api/session/items/chatmessages/{itemID}/?token=API_TOKEN

Formats

HTML:

https://engine.tygron.com/api/session/items/chatmessages/?f=HTML&token=API_TOKEN

JSON:

https://engine.tygron.com/api/session/items/chatmessages/?f=JSON&token=API_TOKEN

CSV:

https://engine.tygron.com/api/session/items/chatmessages/?f=CSV&token=API_TOKEN

SSV:

https://engine.tygron.com/api/session/items/chatmessages/?f=SSV&token=API_TOKEN

SMILE:

https://engine.tygron.com/api/session/items/chatmessages/?f=SMILE&token=API_TOKEN

ZIPJSON:

https://engine.tygron.com/api/session/items/chatmessages/?f=ZIPJSON&token=API_TOKEN

ZIPSMILE:

https://engine.tygron.com/api/session/items/chatmessages/?f=ZIPSMILE&token=API_TOKEN

Api Model AIChatMessage

API Model description of AIChatMessage

Name Type Description
calcTimeMS long
channelID int Chat Channel ID
date long
id int
message String
role Role
state AIState
thinking String
toolCalls AIToolCall[]
version int

Api Model AIState

API Enumeration description of AIState

Name Description
NONE
QUEUING
READING
GENERATING
FINISHED

Api Model AIToolCall

API Model description of AIToolCall

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