Skip to main content

Auto-optimization of LLM tasks

Project description

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="lion")
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.11.tar.gz (272.7 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.11-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for otaro-0.0.11.tar.gz
Algorithm Hash digest
SHA256 5d4823797ab382c237c7cc42aab1daa25ef3a1ce1ed4bfc98f59fa5634b29df3
MD5 a5e73ceca65fb82a8e20d47d5746f5ca
BLAKE2b-256 7235cad37a0dd411dba86b40b31345b7921b283198119de411ea839596e304c9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for otaro-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 0e848fbac8fcee36f5401b5340836fd98d31ed83b1bca1097f7b4e6d2056500c
MD5 2150d1a46ad73f19f0f9964b774e78ca
BLAKE2b-256 7195b2a6544b2466f5b49d95226bbd8a1502de35c5c5b74c16e2bbd4b1e5ae1c

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