Commit Graph

13 Commits

Author SHA1 Message Date
Christina Tong
4cb8af7be8 feat: refactor options types for createAgent and createSession (#20) 2026-02-03 15:27:32 -08:00
Christina Tong
74f4fb660d update readme and examples (#15) 2026-01-30 17:25:18 -08:00
Christina Tong
0e657e5109 feat: add createAgent and refactor (#13) 2026-01-30 17:03:47 -08:00
Cameron
361954edae feat: add political focus group demo (#12)
Co-authored-by: Letta <noreply@letta.com>
2026-01-30 11:42:20 -08:00
Cameron
98a01bc071 feat: add web chat UI example (#3)
Co-authored-by: Letta <noreply@letta.com>
2026-01-27 19:29:10 -08:00
Cameron Pfiffer
de682b0e26 fix: update all examples to use stream() instead of receive()
- dungeon-master, economics-seminar, research-team all updated
- Also improved tool output display in dungeon-master

🤖 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>
2026-01-27 16:37:00 -08:00
Cameron Pfiffer
acf8aa70d3 fix: cleaner tool output - use toolName, dedupe consecutive calls
- Use correct field `toolName` instead of `name`
- Only show tool name when it changes (reduces spam)
- Remove [done] output for cleaner display

🤖 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>
2026-01-27 16:32:12 -08:00
Cameron Pfiffer
7ea9c03137 fix: save agent ID after first interaction
Agent ID is only available after initialization (first message sent),
so move the save logic to after the interaction completes.

🤖 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>
2026-01-27 16:19:20 -08:00
Cameron Pfiffer
aa6149c191 fix: update examples to use stream() and haiku model
- Change session.receive() to session.stream() (API change)
- Use 'haiku' model instead of 'sonnet' (more reliable)
- Clean up debug output

🤖 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>
2026-01-27 16:14:29 -08:00
Cameron Pfiffer
3b4811f035 feat: add basic utility examples with agent persistence
Three practical examples showing core SDK capabilities:

- **bug-fixer**: Find and fix bugs, remembers codebase patterns
- **release-notes**: Generate release notes from git commits
- **file-organizer**: Organize directories, learns preferences

Each example uses agent persistence (getOrCreateAgent pattern) so the
agent remembers context across sessions - the key Letta differentiator.

🤖 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>
2026-01-27 15:51:27 -08:00
Cameron Pfiffer
d5bbce6dec feat: add multi-agent demo examples
Three demo examples showcasing multi-agent orchestration:

- **economics-seminar**: Hostile faculty panel debates AI economist presenter
- **research-team**: Coordinator, Researcher, Analyst, Writer collaboration
- **dungeon-master**: Persistent DM that creates its own game system

🤖 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>
2026-01-27 15:13:19 -08:00
cpacker
56e960038e fix: remove LETTA_CLI_PATH requirement from examples
SDK auto-detects CLI from installed @letta-ai/letta-code package.

👾 Generated with [Letta Code](https://letta.com)
2026-01-27 10:52:04 -08:00
cpacker
ee7cc92724 Initial release of Letta Code SDK
Programmatic control of Letta Code CLI with persistent agent memory.

Features:
- createSession() / resumeSession() / prompt() API
- resumeConversation() for multi-threaded conversations
- Multi-turn conversations with memory
- Tool execution (Bash, Read, Edit, etc.)
- System prompt and memory configuration
- Permission callbacks (canUseTool)
- Message streaming with typed events

👾 Generated with [Letta Code](https://letta.com)
2026-01-27 00:30:09 -08:00