Api session items chatmessages: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
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" : 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: | ||
Revision as of 13:42, 14 April 2026
Api session items Chat Messages Endpoints.
Edit items with event: editorchat.
Default Query:
https://engine.tygron.com/api/session/items/chatmessages/?f=JSON&token=API_TOKENExample Response:
[ {
"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
} ]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_TOKEN