Commit Graph

4 Commits

Author SHA1 Message Date
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