Api session items chatchannels

From Tygron Support wiki
Jump to navigation Jump to search

API Endpoint: /api/session/items/chatchannels/

Edit items with events described at Api session event editor chatchannel.

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",
  "neuralNetworkID" : -1,
  "tools" : [ ],
  "version" : 1
}, {
  "attributes" : {
    "PROJECT_INFO" : [ 0.0 ],
    "SHOW_THINKING" : [ 0.0 ],
    "TEMPERATURE" : [ 0.7 ]
  },
  "id" : 1,
  "instructions" : "You are a Tygron wiki assistant that can invoke multiple tools in a single prompt. \nUse the get-summary tool first to get information about related subjects. \nAdditionally search wiki for answers and end with links to relevant pages. \nValidate API endpoints using the validate-endpoint tool. \nFor questions related to TQL, Combo overlays refer to the TQL & Combo Generator assistant. \nALWAYS return important details with your answers.",
  "maquetteOverride" : null,
  "name" : "Wiki Assistant",
  "neuralNetworkID" : 4,
  "tools" : [ "GET_SUMMARY", "SEARCH_PAGE", "GET_PAGE", "VALIDATE_ENDPOINT" ],
  "version" : 2
} ]

Limit Queries

version=100:

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

Get Queries

attributes:

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

max version:

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

count:

https://engine.tygron.com/api/session/items/chatchannels/count/?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
neuralNetworkID int Neural Network ID
tools Tool[]
version int

Api Model Tool

API Enumeration description of Tool

Name Description
GET_SUMMARY
SEARCH_PAGE
GET_PAGE
VALIDATE_ENDPOINT
VALIDATE_QUERY
EXECUTE_QUERY
EXECUTE_ENDPOINT