From 95cac976eb074ddb6c828f281846548b60330f6a Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 9 Oct 2026 14:05:07 +0000 Subject: [PATCH 1/2] [fern-generated] Update SDK Generated by Fern CLI Version: unknown Generators: - fernapi/fern-python-sdk: 4.37.0 --- .fern/metadata.json | 2 +- .gitignore | 2 - ...ts_request_properties_advanced_features.py | 2 +- src/agora_agent/types/gemini_tts_params.py | 2 +- .../types/speechmatics_asr_params.py | 37 +------------------ 5 files changed, 4 insertions(+), 41 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 764f419..a2b4d2c 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -14,5 +14,5 @@ }, "exclude_types_from_init_exports": true }, - "originGitCommit": "9b9b2fa1161d85c0e7da5c783a8bc4e2b4dae7c0" + "originGitCommit": "0073fa0ae670f77e4987407b8cca1cf179d5f90b" } \ No newline at end of file diff --git a/.gitignore b/.gitignore index 3e30921..d2e4ca8 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,3 @@ __pycache__/ dist/ poetry.toml -.venv/ -docs/superpowers/ diff --git a/src/agora_agent/agents/types/start_agents_request_properties_advanced_features.py b/src/agora_agent/agents/types/start_agents_request_properties_advanced_features.py index 667e20e..e75f098 100644 --- a/src/agora_agent/agents/types/start_agents_request_properties_advanced_features.py +++ b/src/agora_agent/agents/types/start_agents_request_properties_advanced_features.py @@ -29,7 +29,7 @@ class StartAgentsRequestPropertiesAdvancedFeatures(UncheckedBaseModel): enable_tools: typing.Optional[bool] = pydantic.Field(default=None) """ - Enable invocation for MCP servers and inline REST tools. + Enable tool invocation. When enabled, the agent can invoke tools provided by the MCP server to implement advanced functionality. """ if IS_PYDANTIC_V2: diff --git a/src/agora_agent/types/gemini_tts_params.py b/src/agora_agent/types/gemini_tts_params.py index 3e59506..70983fb 100644 --- a/src/agora_agent/types/gemini_tts_params.py +++ b/src/agora_agent/types/gemini_tts_params.py @@ -27,7 +27,7 @@ class GeminiTtsParams(UncheckedBaseModel): Gemini voice name. """ - style: str = pydantic.Field() + style: typing.Optional[str] = pydantic.Field(default=None) """ Style instruction for the generated speech. """ diff --git a/src/agora_agent/types/speechmatics_asr_params.py b/src/agora_agent/types/speechmatics_asr_params.py index c1b7232..4709d22 100644 --- a/src/agora_agent/types/speechmatics_asr_params.py +++ b/src/agora_agent/types/speechmatics_asr_params.py @@ -12,19 +12,11 @@ class SpeechmaticsAsrParams(UncheckedBaseModel): Speechmatics ASR configuration parameters. """ - key: typing.Optional[str] = pydantic.Field(default=None) + api_key: str = pydantic.Field() """ Speechmatics API key """ - api_key: typing.Optional[str] = pydantic.Field( - default=None, - deprecated="Use key instead.", - ) - """ - Deprecated alias for key. The SDK normalizes it to key during validation. - """ - language: str = pydantic.Field() """ Language code to use for transcription @@ -35,33 +27,6 @@ class SpeechmaticsAsrParams(UncheckedBaseModel): WebSocket URL for the Speechmatics streaming API """ - if IS_PYDANTIC_V2: - - @pydantic.model_validator(mode="before") - @classmethod - def _normalize_api_key(cls, values: typing.Any) -> typing.Any: - if not isinstance(values, typing.Mapping): - return values - normalized = dict(values) - legacy_key = normalized.pop("api_key", None) - if legacy_key is not None: - normalized.setdefault("key", legacy_key) - if normalized.get("key") is None: - raise ValueError("SpeechmaticsAsrParams requires key") - return normalized - - else: - - @pydantic.root_validator(pre=True) - def _normalize_api_key(cls, values: typing.Dict[str, typing.Any]) -> typing.Dict[str, typing.Any]: - normalized = dict(values) - legacy_key = normalized.pop("api_key", None) - if legacy_key is not None: - normalized.setdefault("key", legacy_key) - if normalized.get("key") is None: - raise ValueError("SpeechmaticsAsrParams requires key") - return normalized - if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 else: From a3c77214ca5bfcc59f6c56ba1381bf5e109f34ae Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 9 Oct 2026 14:05:08 +0000 Subject: [PATCH 2/2] [fern-replay] Applied customizations Patches applied (3): - patch-13d8e068: chore: ignore local venv and planning docs - patch-a065088b: fix(vendors): send Speechmatics STT key instead of api_key - patch-33a436b3: fix: address v2.8.0 release review findings Patches absorbed by generator (1): - patch-9417fbdd: chore: update SDK version to v2.13.0 The generator now produces these customizations natively. --- .fern/replay.lock | 14 +++++-- .gitignore | 2 + ...ts_request_properties_advanced_features.py | 2 +- .../types/speechmatics_asr_params.py | 37 ++++++++++++++++++- 4 files changed, 49 insertions(+), 6 deletions(-) diff --git a/.fern/replay.lock b/.fern/replay.lock index 8103718..82f3c76 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -78,7 +78,13 @@ generations: cli_version: unknown generator_versions: fernapi/fern-python-sdk: 4.37.0 -current_generation: 88a3914f38e882be10f7a0a6cba18e6f5ec98259 + - commit_sha: b1f9cb3bf3fd8da2262807fd603dee3741187918 + tree_hash: e378b36a4bb43fd42f28703a58814ae759fe9434 + timestamp: 2026-10-09T14:05:05.278Z + cli_version: unknown + generator_versions: + fernapi/fern-python-sdk: 4.37.0 +current_generation: b1f9cb3bf3fd8da2262807fd603dee3741187918 forgotten_hashes: - sha256:19124603cb0683406e750ffda0725786727208c0f7ddb481c256a0990b2c5585 patches: @@ -87,7 +93,7 @@ patches: original_commit: 13d8e0683ffa08bcfc9a381eb9604adf5abdbe0b original_message: "chore: ignore local venv and planning docs" original_author: plutoless - base_generation: 88a3914f38e882be10f7a0a6cba18e6f5ec98259 + base_generation: b1f9cb3bf3fd8da2262807fd603dee3741187918 files: - .gitignore patch_content: | @@ -116,7 +122,7 @@ patches: original_commit: a065088b4c45e2ca7e1bb91b1a899b8444800121 original_message: "fix(vendors): send Speechmatics STT key instead of api_key" original_author: digitallysavvy - base_generation: 88a3914f38e882be10f7a0a6cba18e6f5ec98259 + base_generation: b1f9cb3bf3fd8da2262807fd603dee3741187918 files: - src/agora_agent/types/speechmatics_asr_params.py patch_content: | @@ -259,7 +265,7 @@ patches: original_commit: 33a436b3bdb6f2a6fe4d8987b6536c2f0ac2862e original_message: "fix: address v2.8.0 release review findings" original_author: digitallysavvy - base_generation: 88a3914f38e882be10f7a0a6cba18e6f5ec98259 + base_generation: b1f9cb3bf3fd8da2262807fd603dee3741187918 files: - src/agora_agent/agents/types/start_agents_request_properties_advanced_features.py patch_content: | diff --git a/.gitignore b/.gitignore index d2e4ca8..3e30921 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ __pycache__/ dist/ poetry.toml +.venv/ +docs/superpowers/ diff --git a/src/agora_agent/agents/types/start_agents_request_properties_advanced_features.py b/src/agora_agent/agents/types/start_agents_request_properties_advanced_features.py index e75f098..667e20e 100644 --- a/src/agora_agent/agents/types/start_agents_request_properties_advanced_features.py +++ b/src/agora_agent/agents/types/start_agents_request_properties_advanced_features.py @@ -29,7 +29,7 @@ class StartAgentsRequestPropertiesAdvancedFeatures(UncheckedBaseModel): enable_tools: typing.Optional[bool] = pydantic.Field(default=None) """ - Enable tool invocation. When enabled, the agent can invoke tools provided by the MCP server to implement advanced functionality. + Enable invocation for MCP servers and inline REST tools. """ if IS_PYDANTIC_V2: diff --git a/src/agora_agent/types/speechmatics_asr_params.py b/src/agora_agent/types/speechmatics_asr_params.py index 4709d22..c1b7232 100644 --- a/src/agora_agent/types/speechmatics_asr_params.py +++ b/src/agora_agent/types/speechmatics_asr_params.py @@ -12,11 +12,19 @@ class SpeechmaticsAsrParams(UncheckedBaseModel): Speechmatics ASR configuration parameters. """ - api_key: str = pydantic.Field() + key: typing.Optional[str] = pydantic.Field(default=None) """ Speechmatics API key """ + api_key: typing.Optional[str] = pydantic.Field( + default=None, + deprecated="Use key instead.", + ) + """ + Deprecated alias for key. The SDK normalizes it to key during validation. + """ + language: str = pydantic.Field() """ Language code to use for transcription @@ -27,6 +35,33 @@ class SpeechmaticsAsrParams(UncheckedBaseModel): WebSocket URL for the Speechmatics streaming API """ + if IS_PYDANTIC_V2: + + @pydantic.model_validator(mode="before") + @classmethod + def _normalize_api_key(cls, values: typing.Any) -> typing.Any: + if not isinstance(values, typing.Mapping): + return values + normalized = dict(values) + legacy_key = normalized.pop("api_key", None) + if legacy_key is not None: + normalized.setdefault("key", legacy_key) + if normalized.get("key") is None: + raise ValueError("SpeechmaticsAsrParams requires key") + return normalized + + else: + + @pydantic.root_validator(pre=True) + def _normalize_api_key(cls, values: typing.Dict[str, typing.Any]) -> typing.Dict[str, typing.Any]: + normalized = dict(values) + legacy_key = normalized.pop("api_key", None) + if legacy_key is not None: + normalized.setdefault("key", legacy_key) + if normalized.get("key") is None: + raise ValueError("SpeechmaticsAsrParams requires key") + return normalized + if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 else: