From 4f6e76e6fdbf61c300606ce84307c5e1a84b6e92 Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Wed, 22 Apr 2026 12:23:33 -0400 Subject: [PATCH] Add changelog entries for #4352 --- changelog/4352.changed.md | 1 + changelog/4352.fixed.2.md | 1 + changelog/4352.fixed.md | 1 + 3 files changed, 3 insertions(+) create mode 100644 changelog/4352.changed.md create mode 100644 changelog/4352.fixed.2.md create mode 100644 changelog/4352.fixed.md diff --git a/changelog/4352.changed.md b/changelog/4352.changed.md new file mode 100644 index 000000000..ed77eec98 --- /dev/null +++ b/changelog/4352.changed.md @@ -0,0 +1 @@ +- `ToolsSchema(standard_tools=...)` now accepts any `Sequence[FunctionSchema | DirectFunction]` rather than requiring an exact `list` of the union. Callers can pass a narrower `list[FunctionSchema]` (or any other `Sequence`) without the type checker complaining about list invariance. diff --git a/changelog/4352.fixed.2.md b/changelog/4352.fixed.2.md new file mode 100644 index 000000000..5ea5de888 --- /dev/null +++ b/changelog/4352.fixed.2.md @@ -0,0 +1 @@ +- Fixed direct-function registration crashing for functions without a docstring. `DirectFunctionWrapper` passed `inspect.getdoc()`'s result to `docstring_parser.parse()`, which raises when the docstring is `None`. Functions now register cleanly whether or not they have a docstring; an empty docstring produces empty description and parameter metadata as expected. diff --git a/changelog/4352.fixed.md b/changelog/4352.fixed.md new file mode 100644 index 000000000..6e66fb122 --- /dev/null +++ b/changelog/4352.fixed.md @@ -0,0 +1 @@ +- Fixed `AssemblyAISTTService`, `CartesiaSTTService`, `GradiumSTTService`, and `SonioxSTTService` crashing the pipeline on transient WebSocket send failures. Each `run_stt` sent audio directly without catching errors, so a single network hiccup mid-stream raised an uncaught exception through `process_frame`. The guards now log a warning and let the connection-state check on the next call handle recovery, matching the pattern used by Deepgram, xAI, Azure, and other push-based STTs.