Metadata-Version: 2.4
Name: dialetica
Version: 1.0.2
Summary: Python SDK for Dialetica AI - Multi-agent conversational AI platform
Author-email: Dialetica AI <support@dialetica-ai.com>
License: MIT
Project-URL: Homepage, https://github.com/your-org/dialetica-ai
Project-URL: Documentation, https://docs.dialetica-ai.com
Project-URL: Repository, https://github.com/your-org/dialetica-ai
Project-URL: Issues, https://github.com/your-org/dialetica-ai/issues
Keywords: ai,llm,multi-agent,conversational-ai,dialetica
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: pydantic>=2.9.0
Requires-Dist: requests>=2.31.0
Requires-Dist: httpx>=0.24.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: black>=23.0.0; extra == "dev"
Requires-Dist: mypy>=1.0.0; extra == "dev"

# Dialetica AI Python SDK

Official Python SDK for the Dialetica AI platform - a multi-agent conversational AI system.

## Installation

```bash
pip install dialetica
```

## Quick Start

```python
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:

```bash
cd backend
python -m build
```

To publish to PyPI (test first with TestPyPI):

```bash
# 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](https://docs.dialetica-ai.com)

## License

MIT License

