Skip to main content

SDK da plataforma Singlow — LLMs, Agentes e ML white label

Project description

🚀 Singlow SDK

SDK oficial da plataforma Singlow (Singularity Low) — LLMs, agentes autónomos e Machine Learning.


📦 Instalação

pip install singlow


⚙️ Configuração

export SINGLOW_API_KEY="sk-singlow-xxxxxxxxxxxxxxxx"
export SINGLOW_BASE_URL="https://singlow.onrender.com/v1"


⚡ Uso Rápido

🧠 LLMs — Acesso direto aos modelos

from singlow import LLM

llm = LLM(modelo="singlow-fast")

print(llm.chat("Explica backpropagation numa frase."))


🔄 Streaming

for token in llm.chat_stream("Conta até 5 devagar."): print(token, end="", flush=True)


🤖 Agentes

🧠 Agente com memória

from singlow import Agent

agente = Agent(nome="Marcus", modelo="singlow-fast", memoria=True)

agente.executar("O meu nome é Marius.") print(agente.executar("Qual é o meu nome?")) # Marius


🛠️ Agente com ferramentas

from singlow import Agent, Tool

def criar_ficheiro(nome, conteudo): with open(nome, "w") as f: f.write(conteudo) return f"✅ {nome} criado!"

ferramenta = Tool("criar", criar_ficheiro, "Cria ficheiro: nome, conteudo")

agente = Agent(nome="Dev", modelo="singlow-code", ferramentas=[ferramenta])

agente.executar('Cria um ficheiro "ola.txt" com "Olá mundo!"')


🤝 Múltiplos agentes

arquiteto = Agent(nome="Luna", modelo="singlow-reasoning", memoria=True) programador = Agent(nome="Marcus", modelo="singlow-code", ferramentas=[ferramenta], memoria=True)

plano = arquiteto.executar("Cria um plano para uma calculadora Python.") codigo = programador.executar(f"Implementa este plano: {plano}")


🧩 Modelos Disponíveis

  • singlow-fast → Respostas rápidas e curtas
  • singlow-reasoning → Raciocínio profundo
  • singlow-code → Geração de código

📊 Machine Learning

from singlow import Regressor, Classifier

Regressão

modelo = Regressor(algoritmo="random_forest") modelo.treinar("casas.csv", "preco") previsao = modelo.prever({"tamanho_m2": 120, "quartos": 3})

Classificação

modelo = Classifier(algoritmo="logistic") modelo.treinar("clientes.csv", "aprovado") resultado = modelo.prever({"renda": 5000, "idade": 30})


📚 Documentação

https://singlow.onrender.com/docs


📄 Licença

MIT License — ver ficheiro 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

singlow-0.2.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

singlow-0.2.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file singlow-0.2.1.tar.gz.

File metadata

  • Download URL: singlow-0.2.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for singlow-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c443afb3e253e3fa11d4400db8e05959ef6ab53e1977fef52819d0979ec4956d
MD5 b9eabbbdb55ab8983fca4c870a68cd48
BLAKE2b-256 be3ec27ed7c6a6803a38032e40162697444d28fd5cd5b38a7e4ec37f1a6168a7

See more details on using hashes here.

File details

Details for the file singlow-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: singlow-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for singlow-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c2fa05ef52f1f0812524c2a8de30db24ed4b75a1f244f29ff04683b736562cc6
MD5 fd776cc4ce53fd296f5986e9701014fa
BLAKE2b-256 0dc74c1fb107ac7f4a59f9af2cd50fe90c6618e4bf5f47c1df1be9c1ea2a27cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page