πŸ€–Agent

How does it work ?

An agent routes the query of the user to the correct tool to perform the best request

  • Interrogation: if the query is a simple question on a document

  • Exchanger: if the query has no document related, or if it is only on the past dicussion and not on a document

  • Summarization : if the query requires to summarize a document

API

import requests
import json

token = 'JWT ' + ''  # set your token here
url = "https://iris.egis-group.com/api/cgpt_structure/task_execute/?label_task=agent_document_id"

payload = json.dumps({
  "values_list": [
    {
      "label": "question_1",
      "val": "RΓ©sume le document"
    }
  ]
})
headers = {
  'Authorization': token,
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

Last updated