Examples · learn/22-code-as-action · 260 of 339
typo
tin run examples/learn/22-code-as-action/typo.tin/// A counter.
tool fn one(): int => 1
agent Maths {
model: "mock"
tools: [one]
code: true
on toolResult(name, output, ok) => print(" {name} ok={ok}: {output}")
}
fn main() {
print(Maths("run_code 'fn main() \{ print(1 + \"2\") \}'"))
}