Skip to main content

Auto-optimization of LLM tasks

Project description

otaro

uv add otaro

Documentation: https://silanthro.github.io/otaro

Example

Create a config YAML file to describe the task.

# A sample config for a haiku writing task

model: gemini/gemini-2.0-flash-001

inputs:
- topic

outputs:
- haiku
from otaro import Task

task = Task.from_config("poet.yml")
response = task.run(topic="frog")
print(response.haiku)

"""
Green skin on blue pond,
A croaking song fills the air,
Summer's gentle kiss.
"""

See ./examples for more examples and configs.

Deploy API

Run otaro to deploy a config file as an API.

$ otaro examples/poet.yml

Navigate to "https://localhost:8000" to view and test the API documentation.

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

otaro-0.0.12.tar.gz (272.8 kB view details)

Uploaded Source

Built Distribution

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

otaro-0.0.12-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file otaro-0.0.12.tar.gz.

File metadata

  • Download URL: otaro-0.0.12.tar.gz
  • Upload date:
  • Size: 272.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.24

File hashes

Hashes for otaro-0.0.12.tar.gz
Algorithm Hash digest
SHA256 88db5272334ce5a213367a870afbf6113c778b85677a0627aeb5db453209ed8a
MD5 c3b3e511d679bb628118aa1657681452
BLAKE2b-256 7416b433b84907cb0fc4c1b2d3651b6e649c0c4bb6c48c138f511deb0227c11a

See more details on using hashes here.

File details

Details for the file otaro-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: otaro-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.24

File hashes

Hashes for otaro-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 cb1bcfa949f188730a3674bf66163e3997d19cd8d9de99ccf836f434dc12877d
MD5 e71e217442f19c1a4fa910d9fd46027c
BLAKE2b-256 97690503f18a7c855a50bcca55d9360c133983152a7398e291a390fa2fd81167

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