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.0.tar.gz (3.1 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.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: singlow-0.2.0.tar.gz
  • Upload date:
  • Size: 3.1 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.0.tar.gz
Algorithm Hash digest
SHA256 301d40152b5685d2559ce4af835aa2446fb366f74d0e13b199e2b81a7dfa4b51
MD5 28d7b7f58bc3acae75ddde456aa1dfca
BLAKE2b-256 2e1015e4958ebbf77351d0ff347c825ed5ea49aa11049803e4f6af72093f402d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: singlow-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e3f0305479e48ce1b0afa099df60af10fdfb601d7605dd59c81618c2df726d3
MD5 43454cf53e1ce6716c5f8dfed0d99c17
BLAKE2b-256 0ae03679bb29665b66d7b21ab50a35deaa8a8188227c3c1d7c0134fab7690463

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