Skip to main content

universal API for JIMS application

Project description

jims-api

jims-api exposes any JIMS application as a FastAPI HTTP service.

Run

jims-api --app my_project.app:app --port 8080

Environment variables:

  • JIMS_APP - JIMS app import path (module:attr)
  • JIMS_PORT - HTTP port
  • JIMS_HOST - HTTP host
  • JIMS_API_KEY - optional bearer token for auth

Endpoints

  • GET /health
  • POST /api/v1/chat

POST /api/v1/chat

Request:

{
  "contact_id": "customer:42",
  "message": "Hello",
  "thread_id": null,
  "thread_config": {"interface": "api"},
  "event_type": "comm.user_message",
  "run_conversation_start_on_new_thread": false
}

Response:

{
  "thread_id": "0194f0f3-d88d-7cca-8f37-ff44f911f539",
  "created_new_thread": true,
  "assistant_messages": ["Hi! How can I help?"],
  "events": [
    {
      "event_type": "comm.assistant_message",
      "event_data": {"role": "assistant", "content": "Hi! How can I help?"}
    }
  ]
}

If JIMS_API_KEY is set, send it as Authorization: Bearer <token>

Project details


Download files

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

Source Distribution

jims_api-0.5.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

jims_api-0.5.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file jims_api-0.5.0.tar.gz.

File metadata

  • Download URL: jims_api-0.5.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jims_api-0.5.0.tar.gz
Algorithm Hash digest
SHA256 d7b6db7c32a96448b861ce5b9f05be589e1541bb89b3c23937b496a91cb5fa8c
MD5 5debddf55f28f9f5c1a5b2a7e88d7ce3
BLAKE2b-256 ddbbc2a3acc7952438521eeda26b2364817df80677837b107a8cced7c72445d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for jims_api-0.5.0.tar.gz:

Publisher: publish-jims-api.yml on epoch8/vedana

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jims_api-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: jims_api-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jims_api-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c59316bef0b80fbefbcd08aeda08ae4c51b57726b855fdf3cf54ce3bf4cb17d
MD5 b5249fb268d4a178a2e304df0cb9ff1c
BLAKE2b-256 f1d87d3606fb237e7651726759d68d84f3f1f439ac97c8ec3dbf4aae4bb2b1af

See more details on using hashes here.

Provenance

The following attestation bundles were made for jims_api-0.5.0-py3-none-any.whl:

Publisher: publish-jims-api.yml on epoch8/vedana

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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