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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
otaro-0.0.11-py3-none-any.whl
(17.5 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d4823797ab382c237c7cc42aab1daa25ef3a1ce1ed4bfc98f59fa5634b29df3
|
|
| MD5 |
a5e73ceca65fb82a8e20d47d5746f5ca
|
|
| BLAKE2b-256 |
7235cad37a0dd411dba86b40b31345b7921b283198119de411ea839596e304c9
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e848fbac8fcee36f5401b5340836fd98d31ed83b1bca1097f7b4e6d2056500c
|
|
| MD5 |
2150d1a46ad73f19f0f9964b774e78ca
|
|
| BLAKE2b-256 |
7195b2a6544b2466f5b49d95226bbd8a1502de35c5c5b74c16e2bbd4b1e5ae1c
|