Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,13 @@ class ToolConfiguration(BaseModel):
tools: list[Tool]


class Endpointing(BaseModel):
endpointingSensitivity: TURN_DETECTION | None = "MEDIUM"


class SessionStart(BaseModel):
inferenceConfiguration: InferenceConfiguration
endpointingSensitivity: TURN_DETECTION | None = "MEDIUM"
endpointing: Endpointing
Comment on lines +98 to +104

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚩 Schema change is a breaking wire-format change for the AWS API

This PR changes the serialized JSON structure sent to the AWS Nova Sonic API. Previously the session start event contained "endpointingSensitivity": "MEDIUM" at the top level of sessionStart. Now it emits "endpointing": {"endpointingSensitivity": "MEDIUM"}. This is a breaking wire-format change — if the AWS API has not been updated to accept this new schema, sessions will fail to start. Since this is an external API contract, correctness cannot be verified from the codebase alone.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.



class InputTextContentStart(BaseModel):
Expand Down Expand Up @@ -374,7 +378,9 @@ def create_session_start_event(
topP=top_p,
temperature=temperature,
),
endpointingSensitivity=endpointing_sensitivity,
endpointing=Endpointing(
endpointingSensitivity=endpointing_sensitivity,
),
)
)
)
Expand Down
Loading