feat(sdks/ts): Add adaptive context options to the SDK #404
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #402
Signed-off-by: Diwank Tomer diwank@julep.ai
Summary:
Added adaptive context options (
tokenBudget
andcontextOverflow
) to session management in the SDK and introduced validation usingtypia
.Key points:
tokenBudget
andcontextOverflow
properties toCreateSessionPayload
insdks/ts/src/managers/session.ts
.SessionsManager
class insdks/ts/src/managers/session.ts
to handle new properties.check.ts
insdks/ts/src
for validation usingtypia
.package.json
to version0.3.7
and addedtypia
andts-patch
dependencies.docs/js-sdk-docs/README.md
.Generated with ❤️ by ellipsis.dev