Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ commands/
# Local config files and secrets (keep demos/ checked in)
config.txt
config-*.txt
!demos/baba-is-ai/config.txt
!demos/color-sharing/config.txt
!demos/provider-sensitivity/config-multi-provider.txt
!demos/provider-sensitivity/config.txt
!demos/social-deduction-game/config.txt
*.env
*.env.*
Expand Down
4 changes: 2 additions & 2 deletions demos/baba-is-ai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Expected: Very rarely solved -- demonstrates the knowing-doing gap

## Swapping Providers

Edit `config` to try different LLM providers:
Edit `config.txt` to try different LLM providers:

```
# OpenAI
Expand All @@ -97,7 +97,7 @@ api_key=YOUR_KEY_HERE
| File | Purpose |
|------|---------|
| `baba-is-ai.nlogox` | Main NetLogo model with rule engine, levels, and LLM integration |
| `config` | LLM provider configuration (defaults to local Ollama) |
| `config.txt` | LLM provider configuration (defaults to local Ollama) |
| `action-template.yaml` | Documents the prompt format (not used at runtime -- `llm:choose` builds its own prompt) |
| `README.md` | This file |

Expand Down
4 changes: 2 additions & 2 deletions demos/baba-is-ai/baba-is-ai.nlogox
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ to setup
set move-history []

carefully [
llm:load-config "config"
llm:load-config "config.txt"
set llm-config-loaded? true
] [
output-print (word "Config error: " error-message)
Expand Down Expand Up @@ -732,7 +732,7 @@ A simplified recreation of "Baba Is You" where an LLM agent must solve puzzles b

### Extending

- Edit `config` to try different LLM providers (OpenAI, Claude, Gemini)
- Edit `config.txt` to try different LLM providers (OpenAI, Claude, Gemini)
- Add new word types (DEFEAT, SINK) for more complex puzzles
- Create levels where the agent must *construct* rules, not just break them
</info>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion demos/color-sharing/color-sharing.nlogox
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ to setup
clear-all

; Load LLM configuration
llm:load-config "demos/config"
llm:load-config "config.txt"

set-default-shape turtles "person"

Expand Down
28 changes: 28 additions & 0 deletions demos/color-sharing/config.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# NetLogo Multi-LLM Extension - Color Sharing Demo Configuration
# Configuration for the color sharing demo

# =============================================================================
# ACTIVE CONFIGURATION
# =============================================================================

# Choose your provider: openai, anthropic, gemini, ollama
provider=ollama

# Choose your model (must match the provider above)
# OpenAI: gpt-4o-mini, gpt-4o, gpt-4-turbo, gpt-3.5-turbo
# Anthropic: claude-3-haiku-20240307, claude-3-sonnet-20240229, claude-3-opus-20240229
# Gemini: gemini-1.5-flash, gemini-1.5-pro, gemini-pro
# Ollama: llama3.2, llama3.1, mistral, codellama (must be installed)
model=llama3.2:3b

# API Key (required for openai, anthropic, gemini - not needed for ollama)
# IMPORTANT: Replace with your actual API key for cloud providers
api_key=YOUR_API_KEY_HERE

# Generation settings
temperature=0.7
max_tokens=200
timeout_seconds=30

# For Ollama (local)
base_url=http://localhost:11434
2 changes: 1 addition & 1 deletion demos/provider-sensitivity/provider-sensitivity.nlogox
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ to setup
] [
output-print (word ">> Config load failed: " error-message)
carefully [
llm:load-config "config"
llm:load-config "config.txt"
output-print ">> Loaded fallback config."
] [
output-print (word ">> Fallback config load failed: " error-message)
Expand Down
Loading