Commit Graph

9 Commits

Author SHA1 Message Date
Charles Packer
f61980e5f6 fix: align SDK permission-mode args with CLI behavior (#33) 2026-02-10 16:12:16 -08:00
Sarah Wooders
ee64be00ed Add custom tools support
Add custom tools support

- Add AgentTool, AgentToolResult, AnyAgentTool types
- Add tools option to SessionOptions
- Add tool-helpers.ts with jsonResult, readStringParam, etc.
- Implement tool registration via register_external_tools control request
- Handle execute_external_tool requests in stream()

🐾 Generated with [Letta Code](https://letta.com)
2026-02-10 11:30:18 -08:00
Cameron
b0b82a2a3d feat: expose stop_reason on SDKResultMessage (#30) 2026-02-10 10:13:56 -08:00
Cameron
2fff691f5b feat: add DEBUG_SDK diagnostic logging for session and transport layers (#29)
Co-authored-by: letta-code <248085862+letta-code@users.noreply.github.com>
Co-authored-by: Letta <noreply@letta.com>
2026-02-09 17:37:09 -08:00
Christina Tong
4cb8af7be8 feat: refactor options types for createAgent and createSession (#20) 2026-02-03 15:27:32 -08:00
Cameron
fa4a6340e7 feat: add image support to send() (#14)
Co-authored-by: Letta <noreply@letta.com>
2026-02-02 17:59:40 -08:00
Cameron
f245a2120b fix: check permissionMode in handleCanUseTool for bypassPermissions (#10)
Co-authored-by: Letta <noreply@letta.com>
Co-authored-by: letta-code <248085862+letta-code@users.noreply.github.com>
Co-authored-by: Cameron <cpfiffer@users.noreply.github.com>
2026-01-30 08:11:19 -08:00
Christina Tong
c4c5106797 fix: updatedInput support and clean up types (#6) 2026-01-28 12:28:48 -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