Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
},
"exclude_types_from_init_exports": true
},
"originGitCommit": "f4b5b1d56fb73c4e26c11486424723c12e6376bc"
"originGitCommit": "9afc7ddf3c7c24bf5c80ae7cd4eb83c257d7ceff"
}
10 changes: 8 additions & 2 deletions .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions src/agora_agent/types/asr.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from .assembly_ai_asr_params import AssemblyAiAsrParams
from .deepgram_asr_params import DeepgramAsrParams
from .fengming_asr_params import FengmingAsrParams
from .gemini_asr_params import GeminiAsrParams
from .google_asr_params import GoogleAsrParams
from .microsoft_asr_params import MicrosoftAsrParams
from .open_ai_asr_params import OpenAiAsrParams
Expand Down Expand Up @@ -133,6 +134,21 @@ class Config:
extra = pydantic.Extra.allow


class Asr_Gemini(UncheckedBaseModel):
vendor: typing.Literal["gemini"] = "gemini"
language: typing.Optional[AsrLanguage] = None
params: GeminiAsrParams

if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
else:

class Config:
frozen = True
smart_union = True
extra = pydantic.Extra.allow


class Asr_Amazon(UncheckedBaseModel):
vendor: typing.Literal["amazon"] = "amazon"
language: typing.Optional[AsrLanguage] = None
Expand Down Expand Up @@ -262,6 +278,7 @@ class Config:
Asr_Deepgram,
Asr_Openai,
Asr_Google,
Asr_Gemini,
Asr_Amazon,
Asr_Assemblyai,
Asr_Speechmatics,
Expand Down
27 changes: 27 additions & 0 deletions src/agora_agent/types/gemini_asr.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This file was auto-generated by Fern from our API Definition.

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2
from ..core.unchecked_base_model import UncheckedBaseModel
from .asr_language import AsrLanguage
from .gemini_asr_params import GeminiAsrParams


class GeminiAsr(UncheckedBaseModel):
"""
Google Gemini ASR configuration.
"""

language: typing.Optional[AsrLanguage] = None
params: GeminiAsrParams

if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
else:

class Config:
frozen = True
smart_union = True
extra = pydantic.Extra.allow
47 changes: 47 additions & 0 deletions src/agora_agent/types/gemini_asr_params.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This file was auto-generated by Fern from our API Definition.

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2
from ..core.unchecked_base_model import UncheckedBaseModel


class GeminiAsrParams(UncheckedBaseModel):
"""
Google Gemini ASR configuration parameters.
"""

api_key: str = pydantic.Field()
"""
Google Gemini API key.
"""

model: str = pydantic.Field()
"""
Gemini transcription model identifier.
"""

sample_rate: typing.Optional[int] = pydantic.Field(default=None)
"""
Audio sample rate in Hz.
"""

language: typing.Optional[str] = pydantic.Field(default=None)
"""
Language code for speech recognition.
"""

word_timestamp: typing.Optional[bool] = pydantic.Field(default=None)
"""
Whether to include word-level timestamps in transcription results.
"""

if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
else:

class Config:
frozen = True
smart_union = True
extra = pydantic.Extra.allow
5 changes: 5 additions & 0 deletions src/agora_agent/types/mllm.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ class Mllm(UncheckedBaseModel):
Agent greeting message.
"""

greeting: typing.Optional[str] = pydantic.Field(default=None)
"""
Greeting message for the MLLM session.
"""

failure_message: typing.Optional[str] = pydantic.Field(default=None)
"""
Agent failure message.
Expand Down
4 changes: 3 additions & 1 deletion src/agora_agent/types/mllm_vendor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

import typing

MllmVendor = typing.Union[typing.Literal["openai", "azure", "gemini", "vertexai", "xai", "qwen_omni"], typing.Any]
MllmVendor = typing.Union[
typing.Literal["openai", "azure", "gemini", "vertexai", "xai", "qwen_omni", "openai_gpt_live"], typing.Any
]
Loading