Python SDK for Dialetica AI - Multi-agent conversational AI platform
Project description
Dialetica AI Python SDK
Official Python SDK for the Dialetica AI platform - a multi-agent conversational AI system.
Installation
pip install dialetica
Quick Start
from dialetica import Dialetica, AgentRequest, ContextRequest, MessageRequest
# Initialize the client
client = Dialetica(api_key="dai_your_api_key_here")
# Or use environment variable: DIALETICA_AI_API_KEY
# Create an agent
agent = client.agents.create(AgentRequest(
name="Assistant",
description="Helpful assistant",
instructions=["Be helpful and concise"],
model="gpt-4o"
))
# Create a context
context = client.contexts.create(ContextRequest(
name="Support Chat",
agents=[agent.id]
))
# Send a message
message = MessageRequest(
role="user",
sender_name="User",
content="Hello!"
)
# Get response
responses = client.contexts.run(context, [message])
for response in responses:
print(f"{response.sender_name}: {response.content}")
Features
- Multi-Agent Conversations: Create contexts with multiple AI agents
- Knowledge Management: Store and query knowledge using semantic search
- Streaming Support: Real-time streaming responses with SSE
- Type-Safe: Full Pydantic models for request/response validation
- Simple API: Clean, intuitive interface following industry best practices
Building and Publishing
To build the package:
cd backend
python -m build
To publish to PyPI (test first with TestPyPI):
# Test on TestPyPI first
python -m twine upload --repository testpypi dist/*
# Then publish to PyPI
python -m twine upload dist/*
Documentation
For full documentation, visit https://docs.dialetica-ai.com
License
MIT License
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
dialetica-1.0.0.tar.gz
(14.7 kB
view details)
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
dialetica-1.0.0-py3-none-any.whl
(11.5 kB
view details)
File details
Details for the file dialetica-1.0.0.tar.gz.
File metadata
- Download URL: dialetica-1.0.0.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0662dd2745feecbddf902f15f901e05225b764e9a345f0eece037ea25afb327
|
|
| MD5 |
c52badef8ab6ea84ed70ac7c612b5126
|
|
| BLAKE2b-256 |
19298e7960d5cee18f4188698ec8863e72555442747a39708ab72e2dd67e3a04
|
File details
Details for the file dialetica-1.0.0-py3-none-any.whl.
File metadata
- Download URL: dialetica-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
734eecea45b4500a1b642f0f0a6f5bdaf0c041ad35d210ea2b0acaac52cd0c59
|
|
| MD5 |
7c9fcedc463dfe70d0276442f5477adc
|
|
| BLAKE2b-256 |
963601d8274fa22e90b5ac65e2352c12e2111a35236c272801c83e2362b5d161
|