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": "ca763cb23651d522cb380db79b5d16547e7bd8ff"
"originGitCommit": "26314a9d3199f5e135302c3c3645b6bbb8f556d4"
}
14 changes: 7 additions & 7 deletions .fern/replay.lock

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

74 changes: 74 additions & 0 deletions src/agora_agent/types/anam_avatar_params.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# 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 .anam_avatar_params_quality import AnamAvatarParamsQuality
from .anam_avatar_params_video_encoding import AnamAvatarParamsVideoEncoding


class AnamAvatarParams(UncheckedBaseModel):
"""
Anam Avatar configuration parameters.
"""

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

avatar_id: str = pydantic.Field()
"""
The unique identifier for the Anam avatar you want to use.
"""

agora_uid: str = pydantic.Field()
"""
The unique identifier for the avatar's RTC connection. This must be different from other participants in the channel.
"""

agora_token: str = pydantic.Field()
"""
The RTC token that authorizes the avatar to join the video channel.
"""

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

quality: typing.Optional[AnamAvatarParamsQuality] = pydantic.Field(default=None)
"""
The video quality level.
"""

video_encoding: typing.Optional[AnamAvatarParamsVideoEncoding] = pydantic.Field(default=None)
"""
The video encoding format.
"""

avatar_model: typing.Optional[str] = pydantic.Field(default=None)
"""
Anam avatar model, such as `cara_mk4` for Cara 4 portrait mode.
"""

video_width: typing.Optional[int] = pydantic.Field(default=None)
"""
Anam output video width in pixels. Set together with `video_height`; omit both to use the model default resolution.
"""

video_height: typing.Optional[int] = pydantic.Field(default=None)
"""
Anam output video height in pixels. Set together with `video_width`; omit both to use the model default resolution.
"""

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/anam_avatar_params_quality.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file was auto-generated by Fern from our API Definition.

import typing

AnamAvatarParamsQuality = typing.Union[typing.Literal["high", "medium", "low"], typing.Any]
5 changes: 5 additions & 0 deletions src/agora_agent/types/anam_avatar_params_video_encoding.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file was auto-generated by Fern from our API Definition.

import typing

AnamAvatarParamsVideoEncoding = typing.Union[typing.Literal["H264", "AV1"], typing.Any]
Loading