Api session items chatmessages: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tags: Manual revert Reverted |
No edit summary Tag: Reverted |
||
| Line 6: | Line 6: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/?f=JSON&token=API_TOKEN</syntaxhighlight> | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/?f=JSON&token=API_TOKEN</syntaxhighlight> | ||
Example Response: | Example Response: | ||
<syntaxhighlight lang="text" copy>[ ]</syntaxhighlight> | <syntaxhighlight lang="text" copy>[ { | ||
"channelID" : 1000000, | |||
"date" : 1776693847427, | |||
"id" : 0, | |||
"message" : "Give me the API endpoint that adds a new overlay of type Heat Stress.", | |||
"role" : "USER", | |||
"version" : 1 | |||
}, { | |||
"calcTimeMS" : 28992, | |||
"channelID" : 1000000, | |||
"date" : 1776693847427, | |||
"finished" : true, | |||
"id" : 1, | |||
"message" : "", | |||
"role" : "ASSISTANT", | |||
"thinking" : "The user wants to find the API endpoint for adding a new overlay of type \"Heat Stress\".\nI need to use the Tygron WIKI to find this information.\nI will start by searching for \"overlay\" or \"Heat Stress\" in the Tygron WIKI.The search results show many pages related to \"Heat Stress Overlay\", but none of them directly mention an API endpoint for *adding* a new overlay. Most pages describe attributes, results, and formulas.\n\nI should look for a more general page about \"overlays\" or \"adding overlays\" via API. I'll search for \"API overlay\" or \"create overlay API\".The search results mentioned a page called `Api session event editor overlay`. This looks promising. I'll get the content of that page.The page `Api session event editor overlay` list the API endpoint `add` which adds a new Overlay of the specified type.\nThe entry is: `[[Api session event editor overlay add|add]]` -> \"Add a new Overlay of the specified type.\"\n\nNow I need to find the exact full API URL for this `add` endpoint. I will check the page `Api session event editor overlay add`.", | |||
"version" : 24 | |||
} ]</syntaxhighlight> | |||
==Limit Queries== | ==Limit Queries== | ||
version=100: | version=100: | ||
| Line 146: | Line 163: | ||
|version | |version | ||
|int | |int | ||
| | |||
|} | |||
==Api Model Role== | |||
API Enumeration description of Role | |||
{|class=wikitable | |||
!Name | |||
!Description | |||
|- | |||
|SYSTEM | |||
| | |||
|- | |||
|TOOL | |||
| | |||
|- | |||
|ASSISTANT | |||
| | |||
|- | |||
|USER | |||
| | | | ||
|} | |} | ||
Revision as of 14:05, 20 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:
[ {
"channelID" : 1000000,
"date" : 1776693847427,
"id" : 0,
"message" : "Give me the API endpoint that adds a new overlay of type Heat Stress.",
"role" : "USER",
"version" : 1
}, {
"calcTimeMS" : 28992,
"channelID" : 1000000,
"date" : 1776693847427,
"finished" : true,
"id" : 1,
"message" : "",
"role" : "ASSISTANT",
"thinking" : "The user wants to find the API endpoint for adding a new overlay of type \"Heat Stress\".\nI need to use the Tygron WIKI to find this information.\nI will start by searching for \"overlay\" or \"Heat Stress\" in the Tygron WIKI.The search results show many pages related to \"Heat Stress Overlay\", but none of them directly mention an API endpoint for *adding* a new overlay. Most pages describe attributes, results, and formulas.\n\nI should look for a more general page about \"overlays\" or \"adding overlays\" via API. I'll search for \"API overlay\" or \"create overlay API\".The search results mentioned a page called `Api session event editor overlay`. This looks promising. I'll get the content of that page.The page `Api session event editor overlay` list the API endpoint `add` which adds a new Overlay of the specified type.\nThe entry is: `[[Api session event editor overlay add|add]]` -> \"Add a new Overlay of the specified type.\"\n\nNow I need to find the exact full API URL for this `add` endpoint. I will check the page `Api session event editor overlay add`.",
"version" : 24
} ]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 |