KISS AI Stack's Python Client SDK - Simplify AI Agent Development
Project description
KISS AI Stack - Client
The KISS AI Stack Client provides an easy-to-use interface for interacting with the KISS AI Stack Server, supporting RESTful and WebSocket APIs to manage AI-agent session lifecycle and execute tasks.
Features
- REST client for session management, query execution, and document storage.
- WebSocket client for real-time interactions with the AI agent.
Getting Started
Requirements
- Python 3.12
Installation
- Install the
kiss-ai-stack-clientpackage:
pip install kiss-ai-stack-client
- Initialize the REST client:
from kiss_ai_stack_client import RestEvent
client = RestEvent(hostname="your-server-hostname", secure_protocol=True)
Usage
1. Authorize an Agent Session
Create or refresh an agent session:
session = await client.authorize_agent(scope="temporary")
# or
session = await client.authorize_agent(client_id="your-client-id", client_secret="your-client-secret")
2. Bootstrap the Agent
Initialize the agent session for task execution:
response = await client.bootstrap_agent(data="Hello, Agent!")
3. Generate an Answer
Send a query and receive the agent's response:
response = await client.generate_answer(data="What is the weather today?")
4. Store Documents
Upload files with optional metadata for storage:
files = ["path/to/document1.txt", "path/to/document2.pdf"]
metadata = {"category": "example"}
response = await client.store_data(files=files, metadata=metadata)
5. Destroy the Agent Session
Close the current session and clean up resources:
response = await client.destroy_agent(data="Goodbye!")
License
This project is licensed under the MIT License.
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 kiss_ai_stack_client-0.1.0a2.tar.gz.
File metadata
- Download URL: kiss_ai_stack_client-0.1.0a2.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d12756d25988c7b464c409d5742ee7d747f91756a021b8aa8913fce754b188fd
|
|
| MD5 |
b0bf3ca4dd41f63f6ea976acb218d32b
|
|
| BLAKE2b-256 |
549078b04c1774f069461aa21b0385d63a33396d3b31a0f3954c938f6c387e90
|
File details
Details for the file kiss_ai_stack_client-0.1.0a2-py3-none-any.whl.
File metadata
- Download URL: kiss_ai_stack_client-0.1.0a2-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58a77c02816726a87d93ec7a8fb18407fb1a578d458ef0ae9f810d6647857b51
|
|
| MD5 |
2096ff338041843069e29e69df6327fb
|
|
| BLAKE2b-256 |
6b547215559e92d2145a2e200a02b5057727a7d8e29b521071fc65a2a2d86ed3
|