Composition
How can you combine multiple implementations into a larger application?
Simple math functions
A simple calculator app in Chidori would be something along these lines. We're able to evaluate arbitrary code.
a + b
Integrating an LLM
Lets allow the user to converse with our calculator, we want them to be able to ask arbitrary questions and for our agent to attempt to use the calculator function as a tool in order to give correct answers.
---
---
# Conversational Calculator LLM Prompt