Api session items chatmessages: Difference between revisions

From Tygron Support wiki
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_TOKEN

Example 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_TOKEN

Show Queries

max version:

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

size:

https://engine.tygron.com/api/session/items/chatmessages/size/?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
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