Commit Graph

12 Commits

Author SHA1 Message Date
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
Christina Tong
72544cb7f5 Merge pull request #1 from letta-ai/christina/allow-convo-on-create
allow new convo creation on createSession
2026-01-27 14:33:01 -08:00
christinatong01
69513ff966 allow new convo creation on createSession 2026-01-27 14:23:16 -08:00
Charles Packer
6e68cacbe5 Update README.md 2026-01-27 12:55:29 -08:00
github-actions[bot]
e18b1f6304 chore: bump version to 0.0.2 [skip ci] 2026-01-27 20:34:11 +00: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