sonetto
v0.1.11
Published
Sonetto unified entrypoint
Readme
Sonetto
Unified entrypoint for Atom core and the OpenAI-compatible provider.
Use this package when you want the standard Sonetto primitives from one import.
Install
pnpm add sonettoUsage
import { atom, openai, tool } from 'sonetto'
const length = tool(
{
about: 'Count characters in text.',
},
async (text: string) => text.length,
)
const run = atom({
tools: { length },
model: openai('gpt-4.1-mini', {
apiKey: process.env.OPENAI_API_KEY,
}),
})
const execution = run('Count the characters in "sonetto".')
console.log(await execution.result)License
Copyright © 2026 Yu (Alpha You)
Open sourced under MIT license.
