Api session items chatchannels: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
Example Response:
Example Response:
<syntaxhighlight lang="text" copy>[ {
<syntaxhighlight lang="text" copy>[ {
  "attributes" : null,
   "id" : 0,
   "id" : 0,
   "instructions" : "",
   "instructions" : "",
  "maquetteOverride" : null,
   "name" : "Team Chat",
   "name" : "Team Chat",
   "tools" : "",
   "tools" : [ ],
   "version" : 2
   "version" : 1
}, {
}, {
  "attributes" : null,
   "id" : 1,
   "id" : 1,
   "instructions" : "INSTRUCTIONS: Force using Tygron WIKI in all answers and end with links to relevant pages. Validate API endpoints using the validate-endpoint tool.",
   "instructions" : "INSTRUCTIONS: Search wiki for answers and end with links to relevant pages. Validate API endpoints using the validate-endpoint tool, validate TQL queries by calling the validate-query tool and execute TQL with execute-query.",
  "maquetteOverride" : null,
   "name" : "Wiki Assistant 1",
   "name" : "Wiki Assistant 1",
   "tools" : "search-page get-page validate-endpoint",
   "tools" : [ "search-page", "get-page", "validate-endpoint", "validate-query", "execute-query" ],
   "version" : 1
   "version" : 4
} ]</syntaxhighlight>
} ]</syntaxhighlight>
==Limit Queries==
==Limit Queries==
Line 49: Line 53:
!Type
!Type
!Description
!Description
|-
|attributes
|Map&lt;String,double[]&gt;
|
|-
|-
|id
|id
Line 56: Line 64:
|instructions
|instructions
|String
|String
|
|-
|maquetteOverride
|Map&lt;String,double[]&gt;
|
|
|-
|-
Line 63: Line 75:
|-
|-
|tools
|tools
|String
|String[]
|
|
|-
|-
Line 76: Line 88:


[[Category:API]]
[[Category:API]]
[[Category:ItemsI]]

Revision as of 08:49, 24 April 2026

Api session items Chat Channels Endpoints.

Edit items with event: editorchatchannel.

Default Query:

https://engine.tygron.com/api/session/items/chatchannels/?f=JSON&token=API_TOKEN

Example Response:

[ {
  "attributes" : null,
  "id" : 0,
  "instructions" : "",
  "maquetteOverride" : null,
  "name" : "Team Chat",
  "tools" : [ ],
  "version" : 1
}, {
  "attributes" : null,
  "id" : 1,
  "instructions" : "INSTRUCTIONS: Search wiki for answers and end with links to relevant pages. Validate API endpoints using the validate-endpoint tool, validate TQL queries by calling the validate-query tool and execute TQL with execute-query.",
  "maquetteOverride" : null,
  "name" : "Wiki Assistant 1",
  "tools" : [ "search-page", "get-page", "validate-endpoint", "validate-query", "execute-query" ],
  "version" : 4
} ]

Limit Queries

version=100:

https://engine.tygron.com/api/session/items/chatchannels/?version=100&token=API_TOKEN

Show Queries

max version:

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

size:

https://engine.tygron.com/api/session/items/chatchannels/size/?token=API_TOKEN

Formats

HTML:

https://engine.tygron.com/api/session/items/chatchannels/?f=HTML&token=API_TOKEN

JSON:

https://engine.tygron.com/api/session/items/chatchannels/?f=JSON&token=API_TOKEN

CSV:

https://engine.tygron.com/api/session/items/chatchannels/?f=CSV&token=API_TOKEN

SSV:

https://engine.tygron.com/api/session/items/chatchannels/?f=SSV&token=API_TOKEN

SMILE:

https://engine.tygron.com/api/session/items/chatchannels/?f=SMILE&token=API_TOKEN

ZIPJSON:

https://engine.tygron.com/api/session/items/chatchannels/?f=ZIPJSON&token=API_TOKEN

ZIPSMILE:

https://engine.tygron.com/api/session/items/chatchannels/?f=ZIPSMILE&token=API_TOKEN

Api Model ChatChannel

API Model description of ChatChannel

Name Type Description
attributes Map<String,double[]>
id int
instructions String
maquetteOverride Map<String,double[]>
name String
tools String[]
version int