Cameron
30c539e1e3
fix: add generation counter and run_id pass-through to prevent N-1 desync ( #69 )
...
Co-authored-by: letta-code <248085862+letta-code@users.noreply.github.com >
Co-authored-by: Cameron <cpfiffer@users.noreply.github.com >
2026-03-03 11:09:28 -08:00
Cameron
1333c5836c
fix: remove tool call accumulation from SDK, emit chunks as passthrough ( #61 )
2026-02-24 15:58:07 -08:00
Cameron
972bab33c2
fix: handle parallel tool call streaming with index-based ID tracking ( #59 )
...
Co-authored-by: cpacker <packercharles@gmail.com >
2026-02-24 00:13:39 -08:00
github-actions[bot]
d295ab19b3
refactor: centralize all tests into src/tests/ ( #58 )
...
Co-authored-by: letta-code <248085862+letta-code@users.noreply.github.com >
Co-authored-by: Charles Packer <cpacker@users.noreply.github.com >
2026-02-23 18:18:39 -08:00
Cameron
317d0e10c6
fix: accumulate tool_call_message arguments across streaming chunks ( #55 )
...
Co-authored-by: cpacker <packercharles@gmail.com >
2026-02-23 17:45:43 -08:00
Charles Packer
17b7641f1e
feat(sdk): add bootstrapState + listMessagesDirect + memfsStartup ( #54 )
...
Co-authored-by: Letta <noreply@letta.com >
2026-02-23 15:45:19 -08:00
Charles Packer
63317a234f
feat: normalize stream_event contract + add live integration coverage ( #52 )
2026-02-22 22:44:00 -08:00
Charles Packer
5c7fc97a29
test: add regression coverage for error/retry stream messages ( #51 )
2026-02-22 18:20:43 -08:00
Cameron
bf2edbccc2
feat: expose error and retry messages to SDK consumers ( #47 )
2026-02-22 18:16:36 -08:00
Charles Packer
e90f79d1c9
test: add regression coverage for approval_request_message stream mapping ( #49 )
2026-02-22 18:11:15 -08:00
Cameron
e223ca1eda
fix: handle approval_request_message as tool_call in stream ( #38 )
2026-02-22 17:58:38 -08:00
Charles Packer
39704aa8ea
feat: add session listMessages + transport args hardening ( #48 )
...
Co-authored-by: Letta <noreply@letta.com >
2026-02-22 17:49:26 -08:00
cpacker
3c78e116d7
feat: add includePartialMessages option for token-level stream_event chunks
...
Adds an `includePartialMessages` boolean to both InternalSessionOptions and
CreateSessionOptions. When true, the transport passes `--include-partial-messages`
to the CLI so the session emits stream_event messages for each assistant/reasoning
token chunk, enabling incremental rendering in consumers.
👾 Generated with [Letta Code](https://letta.com )
Co-Authored-By: Letta <noreply@letta.com >
2026-02-22 11:39:45 -08:00
Charles Packer
b6ffe5ea91
feat: expose skill source and sleeptime controls in SDK ( #43 )
2026-02-16 23:22:52 -08:00
Charles Packer
1520c5ab34
test: sdk headless skills reminder contract ( #41 )
2026-02-16 19:33:06 -08:00
Sarah Wooders
c12c3392ff
feat: add memfs option to createAgent ( #39 )
...
Co-authored-by: Letta <noreply@letta.com >
2026-02-15 18:34:55 -08:00
Christina Tong
9dbcb70186
feat: add tag support to createAgent ( #37 )
2026-02-13 20:11:30 -08:00
Charles Packer
33db9641e7
feat: background pump ( #34 )
...
Co-authored-by: Jason Carreira <4029756+jasoncarreira@users.noreply.github.com >
2026-02-10 19:15:05 -08:00
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
c23bf8ee0d
chore: add embedding model to createAgent ( #26 )
2026-02-06 16:18:48 -08:00
Christina Tong
5f37e513c8
fix: memory blocks config on createAgent ( #21 )
2026-02-03 16:44:05 -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
Christina Tong
0e657e5109
feat: add createAgent and refactor ( #13 )
2026-01-30 17:03:47 -08:00
Cameron
b26c8eadaa
fix: log CLI stderr and exit codes for debugging ( #11 )
...
Co-authored-by: Letta <noreply@letta.com >
2026-01-30 12:13:29 -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
Charles Packer
9ca5c04df0
fix: resolve CLI via package main export instead of subpath ( #5 )
...
Co-authored-by: Letta <noreply@letta.com >
2026-01-27 19:33:45 -08:00
christinatong01
69513ff966
allow new convo creation on createSession
2026-01-27 14:23:16 -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