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 portJIMS_HOST- HTTP hostJIMS_API_KEY- optional bearer token for auth
Endpoints
GET /healthPOST /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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jims_api-0.0.0.tar.gz.
File metadata
- Download URL: jims_api-0.0.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1290cea86bda5bbb635fc2055f6132e30943c43a589e66eb1489f2a25c34b68
|
|
| MD5 |
64414c6a5df926c4f77c9d8677a9d93a
|
|
| BLAKE2b-256 |
6b796220ff1a7c6de49cb3e6a9bd9c515d59a9dc30dd479d031939bbfdeca67b
|
Provenance
The following attestation bundles were made for jims_api-0.0.0.tar.gz:
Publisher:
publish-jims-api.yml on epoch8/vedana
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jims_api-0.0.0.tar.gz -
Subject digest:
b1290cea86bda5bbb635fc2055f6132e30943c43a589e66eb1489f2a25c34b68 - Sigstore transparency entry: 947298213
- Sigstore integration time:
-
Permalink:
epoch8/vedana@48e3220e42e0de5db54a5b0c4d77bb01f0af0218 -
Branch / Tag:
refs/tags/jims-0.5.0 - Owner: https://github.com/epoch8
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-jims-api.yml@48e3220e42e0de5db54a5b0c4d77bb01f0af0218 -
Trigger Event:
push
-
Statement type:
File details
Details for the file jims_api-0.0.0-py3-none-any.whl.
File metadata
- Download URL: jims_api-0.0.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad57cf4af798b30baa0afc676944b3b7211d47349eb9661fe1fc9889d6008fb8
|
|
| MD5 |
d68d3cfbbb02e5c5f5afc1c5c45a3728
|
|
| BLAKE2b-256 |
b474d61aa45e73018cd511b475e912a08406e1f16a4fa02ea5814e43b0049409
|
Provenance
The following attestation bundles were made for jims_api-0.0.0-py3-none-any.whl:
Publisher:
publish-jims-api.yml on epoch8/vedana
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jims_api-0.0.0-py3-none-any.whl -
Subject digest:
ad57cf4af798b30baa0afc676944b3b7211d47349eb9661fe1fc9889d6008fb8 - Sigstore transparency entry: 947298216
- Sigstore integration time:
-
Permalink:
epoch8/vedana@48e3220e42e0de5db54a5b0c4d77bb01f0af0218 -
Branch / Tag:
refs/tags/jims-0.5.0 - Owner: https://github.com/epoch8
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-jims-api.yml@48e3220e42e0de5db54a5b0c4d77bb01f0af0218 -
Trigger Event:
push
-
Statement type: