Workshop Repository URL: https://github.com/xemantic/xemantic-ai-workshop
Workshop Slides: https://xemantic.com/ai/workshops/slides/
Note
This project is based on the openrndr-template project, to bring all goodies of the OPENRNDR creative coding framework to Agentic AI projects. Please refer to OPENRNDR documentation regarding this part.
You need to have either IntelliJ IDEA or Android Studio installed on your computer. In case of the IntelliJ IDEA the open source community edition (CE) is good enough.
Note
IntelliJ IDEA (and Android Studio derived from it), are Integrated Development Environments (IDE) allowing to conveniently edit and execute Kotlin code. Kotlin is the language used in all the code demonstrations in this repository.
Tip
If you've never configured GitHub access before on your computer, then GitHub Desktop will be probably the easiest way to start
This project demonstrates several use cases of calling Anthropic API, while gradually introducing more complex techniques and concepts.
In the src/main/kotlin folder you will find these demo programs sorted by growing numbers, starting from Demo010HelloWorld.kt.
Each Demo is annotated with "What you will learn" comments, and the knowledge to be acquired in each step is split into 3 categories:
- AI Development: particular techniques of programming against LLM systems
- Cognitive Science: the psychological and philosophical foundation of a technique
- Kotlin: particular Kotlin idioms used in the source code
Each category will be expanded and discussed during the workshop.
Note
While the Kotlin category is practical, the AI Development and Cognitive Science categories are theoretical, and easily applicable in other environments and frameworks. They provide the meta-theory of building powerful agentic AI systems.
Navigating through Agentic AI development requires particular vocabulary, and this project also comes with a glossary of AI-related terms.
If you are not familiar with Kotlin, the first hour of the workshop is devoted to kotlin crash course. Follow materials in the src/main/kotlin/intro folder, starting with Kotlin010HelloWorld.kt
The src/main/kotlin/openrndr folder contains the original
# Create a virtual environment
python3 -m venv venv
# Activate the virtual environment
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate
# Install the Anthropic SDK
pip install anthropic
python3 src/main/python/hello_world.pynpm install @anthropic-ai/sdk
npx ts-node src/main/typescript/hello-world.ts