Skip to content

SDK regeneration - #13

Merged
chiragjn merged 2 commits into
mainfrom
cj-previous-turn-id-none
Jul 27, 2026
Merged

SDK regeneration#13
chiragjn merged 2 commits into
mainfrom
cj-previous-turn-id-none

Conversation

@chiragjn

@chiragjn chiragjn commented Jul 27, 2026

Copy link
Copy Markdown
Member

Note

Medium Risk
OMIT vs None changes how create_turn and SSE subscribe requests are encoded, which can alter turn chaining and resume behavior for callers that relied on implicit None. Removing external-identity from the enum is a breaking type/API surface change for filters using that subject type.

Overview
Regenerates the TrueFoundry Gateway Python SDK from the updated API definition (Fern CLI 5.80.2, generator 5.22.1), including lockfile bumps for optional httpx-aiohttp (0.1.12).

Optional request parameters on agent turn/session helpers now default to an OMIT sentinel instead of None, so omitted kwargs are not serialized as explicit JSON nulls and server defaults (e.g. previous_turn_idauto) still apply. PreparedTurn keeps a separate _input_param when forwarding to create_turn. stream() / after_sequence_number docs now note that omitting the arg resumes via Last-Event-Id rather than a query param.

API-aligned type changes: PreviousTurnIdInput adds the "none" literal; CreatedBySubjectType drops external-identity / EXTERNAL_IDENTITY from the enum and visit() API (unknown values still map via forward-compat _UNKNOWN).

Reviewed by Cursor Bugbot for commit c761555. Bugbot is set up for automated code reviews on this repo. Configure here.

@chiragjn
chiragjn merged commit 4ad6d5f into main Jul 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant