-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Add initial set of doc comments to the SDK #4513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add initial set of doc comments to the SDK #4513
Conversation
…nd Thread docs - Add initial README.md with installation, usage, and resuming thread guides - Add API and usage documentation for Codex and Thread classes - Fix and clarify type exports: use Turn and StreamedTurn as RunResult types - Refactor Thread class fields to be private, update id accessor, add detailed comments - Minor doc cleanups and code structure improvements
…e-sdk # Conflicts: # sdk/typescript/src/thread.ts
…ling and fix type annotations
…Emitted") README.md: clarify thread resumption instructions in typescript SDK docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's get this in and iterate.
If you don't have the original `Thread` instance to continue the thread, you can resume a thread by calling `resumeThread()` and providing the thread. | ||
|
||
```typescript | ||
const threadId = "..."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the SDK should provide an API to list/search threads?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure just yet. We need to figure out the isolation story a bit more (exec from TUI/vscode) and from different invocations of exec.
…e-sdk # Conflicts: # sdk/typescript/README.md # sdk/typescript/src/exec.ts # sdk/typescript/src/index.ts # sdk/typescript/tests/run.test.ts
…e-sdk # Conflicts: # sdk/typescript/src/exec.ts
Also perform minor code cleanup.