Api session items chatmessages: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
Api session items [[Chat Message]]s Endpoints. | Api session items [[Chat Message]]s Endpoints. | ||
Edit items with event: [[Api session event editor | Edit items with event: [[Api session event editor chatmessage|editorchatmessage]]. | ||
Default Query: | Default Query: | ||
| Line 9: | Line 9: | ||
==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> | ||
==Show Queries== | ==Show Queries== | ||
max version: | max version: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/version/?token=API_TOKEN</syntaxhighlight> | ||
size: | size: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/size/?token=API_TOKEN</syntaxhighlight> | ||
==Formats== | ==Formats== | ||
HTML: | HTML: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/?f=HTML&token=API_TOKEN</syntaxhighlight> | ||
JSON: | JSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/?f=JSON&token=API_TOKEN</syntaxhighlight> | ||
CSV: | CSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/?f=CSV&token=API_TOKEN</syntaxhighlight> | ||
SSV: | SSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/?f=SSV&token=API_TOKEN</syntaxhighlight> | ||
SMILE: | SMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/?f=SMILE&token=API_TOKEN</syntaxhighlight> | ||
ZIPJSON: | ZIPJSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/?f=ZIPJSON&token=API_TOKEN</syntaxhighlight> | ||
ZIPSMILE: | ZIPSMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/?f=ZIPSMILE&token=API_TOKEN</syntaxhighlight> | ||
==Api Model AIChatMessage== | |||
API Model description of AIChatMessage | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
|calcTimeMS | |||
|long | |||
| | |||
|- | |||
|channelID | |||
|int | |||
|[[Chat Channel]] ID | |||
|- | |||
|date | |||
|long | |||
| | |||
|- | |||
|finished | |||
|boolean | |||
| | |||
|- | |||
|id | |||
|int | |||
| | |||
|- | |||
|message | |||
|String | |||
| | |||
|- | |||
|role | |||
|Role | |||
| | |||
|- | |||
|thinking | |||
|String | |||
| | |||
|- | |||
|version | |||
|int | |||
| | |||
|} | |||
==Api Model ChatMessage== | |||
API Model description of ChatMessage | |||
{|class=wikitable | |||
!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 | |||
{|class=wikitable | |||
!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 | |||
{|class=wikitable | |||
!Name | |||
!Description | |||
|- | |||
|SYSTEM | |||
| | |||
|- | |||
|TOOL | |||
| | |||
|- | |||
|ASSISTANT | |||
| | |||
|- | |||
|USER | |||
| | |||
|} | |||
{{article end|seealso=*[[Api Content Items]] | {{article end|seealso=*[[Api Content Items]] | ||
*[[Api session event editor | *[[Api session event editor chatmessage]] | ||
}} | }} | ||
[[Category:API]] | [[Category:API]] | ||
[[Category:Items]] | |||
Latest revision as of 14:13, 24 April 2026
Api session items Chat Messages Endpoints.
Edit items with event: editorchatmessage.
Default Query:
https://engine.tygron.com/api/session/items/chatmessages/?f=JSON&token=API_TOKENExample Response:
[ ]Limit Queries
version=100:
https://engine.tygron.com/api/session/items/chatmessages/?version=100&token=API_TOKENShow Queries
max version:
https://engine.tygron.com/api/session/items/chatmessages/version/?token=API_TOKENsize:
https://engine.tygron.com/api/session/items/chatmessages/size/?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 AIChatMessage
API Model description of AIChatMessage
| Name | Type | Description |
|---|---|---|
| calcTimeMS | long | |
| channelID | int | Chat Channel ID |
| date | long | |
| finished | boolean | |
| id | int | |
| message | String | |
| role | Role | |
| thinking | String | |
| version | int |
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 | |
| TOOL | |
| ASSISTANT | |
| USER |