Skip to main content

Libreria para gestionar datos del historico del proyecto GPTravel

Project description

La librería ofrece el método ins_historico(usr, num_chat, contexto, lista_msg, tipoIA, cerrado) que inserta un nuevo par de mensajes a la base de datos de CASH. Para ello, se realiza una petición de inserción a dicha base de datos cuyos parámetros corresponden a los argumentos de la función.

Parámetros:

  • usr (str): El usuario.

  • num_chat (int): Número de chat.

  • contexto (str): Contexto del chat.

  • lista_msg (json): Un JSON enviado por BS con una lista de {"role": "user", "content": userMsg.msg} donde "role" puede ser system, user o assistant y content el contexto la pregunta y la respuesta respectivamente.

  • tipoIA (enum): Un enumerado que puede ser PASADO, PRESENTE, FUTURO, COMPRA.

  • cerrado (boolean): Un booleano que indica si el chat está cerrado o no.

POST:

JSONResponse: Respuesta de la petición POST a la API de CASH (Backend)

def ins_historico(usr, num_chat, contexto, lista_msg, tipoIA, cerrado)

Para instalar esta librería basta con pip install journeylib.

Es posible encontrar la librería en PyPi en el siguiente link: https://pypi.org/project/journeylib/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

journeygenlib-0.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file journeygenlib-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: journeygenlib-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for journeygenlib-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4c8c0c40a0cdce6f8cfd7e0ed04fb4f8edf0cc36f677b93d5b86a2c213758eb1
MD5 b876b45797fdf7890c457fef9701285a
BLAKE2b-256 57b474907c16b6522852f26a02f59afc10169539c15f0b8b8a97677193e5e8b3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page