The AI

1 entry

Markdown

m.think

Ask the Ownbox's AI.

Signature
m.think(task, prompt, *, system=None, max_tokens=1024)
Example · Inside a job
try:
    line = m.think("follow_up_line", "Write one friendly line asking if the quote still works.")
except sdk.BoxRefused as e:
    line = "Is the quote still a good fit?"

On the Ownbox's own account, within the machine's monthly allowance. Past it the call is refused over_budget, so catch it where a page must still answer.

Needs in machine.yaml
think: {calls_per_month: N}
Returns
The answer, as text.