Minimal type-checked LLM helper (experimental)
Project description
dariko (experimental)
Python の型アノテーションを ほぼ書かずに
LLM 出力を pydantic で安全にパースするための最小ライブラリ。
現在開発中
from pydantic import BaseModel
from dariko import ask
class Person(BaseModel):
name: str
age: int
result: Person = ask("次の JSON を返して: {name:'Alice', age:30}")
print(result)
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
dariko-0.0.1.tar.gz
(3.4 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
File details
Details for the file dariko-0.0.1.tar.gz.
File metadata
- Download URL: dariko-0.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c2941e2032c27225cbf653d1c42063e88ac252a04de5bc6531ebc5c17f3348f
|
|
| MD5 |
9ae0366a19168a202368f82c47b81681
|
|
| BLAKE2b-256 |
f065af385a7417ae7610bf4123d0d87e278c1dec5c677103035f3f4e165be0ef
|
File details
Details for the file dariko-0.0.1-py3-none-any.whl.
File metadata
- Download URL: dariko-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
020bebbbc1dc0d409a58d0dc0ce6aaa954fafb14caec0e95918282053950a7e4
|
|
| MD5 |
1e2a75bff7419f19aa68ebba93b12763
|
|
| BLAKE2b-256 |
dbba90105ed96c158e1d779371abb72dd2b3c37d40f8e8e6c4cbea1f556208f2
|