Api session items chatmessages: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
 
(7 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 chat|editorchat]].
Edit items with event: [[Api session event editor chatmessage|editorchatmessage]].


Default Query:
Default Query:
<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 lang="text" copy>[ ]</syntaxhighlight>
  "channelID" : 300261276,
  "date" : 1776173326278,
  "id" : 114,
  "message" : "Instructions: When asked for API endpoints always provide the exact full API URL in the answer.",
  "role" : "USER",
  "version" : 1631
}, {
  "calcTimeMS" : 7252,
  "channelID" : 300261276,
  "date" : 1776173326278,
  "finished" : true,
  "id" : 115,
  "message" : "Understood. I will use the Tygron Wiki as the primary source for all answers and will provide the exact full API URLs whenever API endpoints are requested. \n\nHow can I help you today?",
  "role" : "ASSISTANT",
  "thinking" : "*  User's first prompt: \"Force using Tygron WIKI in all answers\"\n    *  User's second prompt: \"Instructions: When asked for API endpoints always provide the exact full API URL in the answer.\"\n    *  Context: The user wants me to act as an assistant that relies on the Tygron Wiki (via the provided tools) and follows a specific formatting rule for API endpoints.\n\n    *  I have access to `search-page` and `get-page` tools.\n    *  I should use these tools to find information about Tygron.\n    *  If the user asks for an API endpoint, I must provide the full URL.\n\n    *  Acknowledge the instructions.\n    *  Confirm that I will use the Tygron Wiki for information.\n    *  Confirm that I will provide full API URLs when requested.",
  "version" : 1646
} ]</syntaxhighlight>
==Limit Queries==
==Limit Queries==
version=100:  
version=100:  
Line 47: Line 30:
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 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 chat]]
*[[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_TOKEN

Example Response:

[ ]

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