Skip to main content

Camile AI — SDK Python

PyPI Python Versions License

SDK oficial da Camile AI — plataforma de IA empresarial com agentes autônomos, RAG, capacidades modulares e multi-tenancy.

Instalação

pip install camile-ai

Uso Básico

Chat

from camile import CamileAI

client = CamileAI(api_key="cml_live_sua_chave_aqui")

response = client.chat.completions.create(
    messages=[
        {"role": "system", "content": "Você é um assistente útil."},
        {"role": "user", "content": "Qual é a capital do Brasil?"},
    ],
    model="camile-v1",
)

print(response.choices[0]["message"]["content"])
# → Brasília

Agentes

# Listar agentes
agents = client.agents.list()
for agent in agents:
    print(f"{agent.id}: {agent.name}")

# Criar agente
agent = client.agents.create(
    name="Atendimento",
    description="Agente de atendimento ao cliente",
)

# Executar agente
result = client.agents.execute(
    agent_id=agent.id,
    input="Qual o horário de funcionamento?",
)
print(result["response"])

Capacidades

# Catálogo de capacidades
caps = client.capabilities.list()
for cap in caps:
    print(f"  {cap.icon or '🔧'} {cap.name} — {cap.description}")

# Vincular capacidade a um agente
client.capabilities.attach(agent_id="ag_xxx", slug="web-search")

RAG (Busca Semântica)

# Criar coleção de conhecimento
col = client.rag.create_collection(
    name="Base de conhecimento",
    description="Documentos da empresa",
)

# Buscar informações
results = client.rag.search(
    collection_id=col.id,
    query="Qual o prazo de entrega?",
    top_k=5,
)
for r in results:
    print(f"[{r.score:.2f}] {r.text[:100]}...")

Memória do Agente

# Salvar memória
client.memory.save(
    agent_id="ag_xxx",
    content="Cliente prefere atendimento via WhatsApp",
    type="long_term",
)

# Consultar
memories = client.memory.list(agent_id="ag_xxx")
for mem in memories:
    print(f"  • {mem.content} ({mem.type})")

Documentação

Documentação completa: docs.camile.ia.br

Desenvolvimento

# Clone o monorepo
git clone https://github.com/CamileAI/camile.git
cd camile/api/sdk/python

# Instale em modo editável
pip install -e .

# Teste
python -c "from camile import CamileAI; print('SDK carregado com sucesso')"

Licença

MIT © Camile AI

Metadata

Release files for camile-ai 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for camile-ai 0.1.0
File Size Uploaded Provenance Actions
camile_ai-0.1.0.tar.gz 10.9 kB Without provenance Details for camile_ai-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for camile-ai 0.1.0
File Interpreter ABI Platform Actions
camile_ai-0.1.0-py3-none-any.whl Python 3 none any Details for camile_ai-0.1.0-py3-none-any.whl

Total release size: 23.9 kB

Release files / camile_ai-0.1.0.tar.gz

Download URL camile_ai-0.1.0.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fe8bb42d82a8b7d7641aa1b308655eafb647720dd89624898afcf2d1bce67daa
BLAKE2b-256 checksum
How to use checksums
54c5f34168a65c5344f9998e0040ef3f383136a6ea67777107f4f01fa2f78b4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / camile_ai-0.1.0-py3-none-any.whl

Download URL camile_ai-0.1.0-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d46aa96c34d1a688f2dcd57c8e0618b36d572879a30317f481207583aa7e2273
BLAKE2b-256 checksum
How to use checksums
464b2d713618eed1fc663b9eea0f42c5fc597087f946a9e4aedcb7b6c3eef078
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Security for camile-ai 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page