Skip to content

Commit

Permalink
Release 0.0.48
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Aug 27, 2024
1 parent fc99c5e commit 08bb213
Show file tree
Hide file tree
Showing 13 changed files with 62 additions and 12 deletions.
21 changes: 11 additions & 10 deletions poetry.lock

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

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "vocode-api"
version = "0.0.47"
version = "0.0.48"
description = ""
readme = "README.md"
authors = []
Expand Down
16 changes: 16 additions & 0 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1507,6 +1507,14 @@ client.agents.create_agent(
<dl>
<dd>

**idle_time_seconds:** `typing.Optional[int]`

</dd>
</dl>

<dl>
<dd>

**llm_temperature:** `typing.Optional[float]`

</dd>
Expand Down Expand Up @@ -1739,6 +1747,14 @@ client.agents.update_agent(
<dl>
<dd>

**idle_time_seconds:** `typing.Optional[AgentUpdateParamsIdleTimeSeconds]`

</dd>
</dl>

<dl>
<dd>

**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.

</dd>
Expand Down
2 changes: 2 additions & 0 deletions src/vocode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
AgentUpdateParamsDeepgramKeywords,
AgentUpdateParamsDeepgramKeywordsZeroValue,
AgentUpdateParamsEndpointingSensitivity,
AgentUpdateParamsIdleTimeSeconds,
AgentUpdateParamsInitialMessage,
AgentUpdateParamsInitialMessageDelay,
AgentUpdateParamsInterruptSensitivity,
Expand Down Expand Up @@ -318,6 +319,7 @@
"AgentUpdateParamsDeepgramKeywords",
"AgentUpdateParamsDeepgramKeywordsZeroValue",
"AgentUpdateParamsEndpointingSensitivity",
"AgentUpdateParamsIdleTimeSeconds",
"AgentUpdateParamsInitialMessage",
"AgentUpdateParamsInitialMessageDelay",
"AgentUpdateParamsInterruptSensitivity",
Expand Down
17 changes: 17 additions & 0 deletions src/vocode/agents/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
from ..types.agent_update_params_run_do_not_call_detection import AgentUpdateParamsRunDoNotCallDetection
from ..types.agent_update_params_llm_fallback import AgentUpdateParamsLlmFallback
from ..types.agent_update_params_deepgram_keywords import AgentUpdateParamsDeepgramKeywords
from ..types.agent_update_params_idle_time_seconds import AgentUpdateParamsIdleTimeSeconds
from ..core.client_wrapper import AsyncClientWrapper

# this is used as the default value for optional parameters
Expand Down Expand Up @@ -206,6 +207,7 @@ def create_agent(
run_do_not_call_detection: typing.Optional[bool] = OMIT,
llm_fallback: typing.Optional[InternalLlmFallback] = OMIT,
deepgram_keywords: typing.Optional[typing.Dict[str, typing.Optional[AgentParamsDeepgramKeywordsValue]]] = OMIT,
idle_time_seconds: typing.Optional[int] = OMIT,
llm_temperature: typing.Optional[float] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> Agent:
Expand Down Expand Up @@ -254,6 +256,8 @@ def create_agent(
deepgram_keywords : typing.Optional[typing.Dict[str, typing.Optional[AgentParamsDeepgramKeywordsValue]]]
idle_time_seconds : typing.Optional[int]
llm_temperature : typing.Optional[float]
request_options : typing.Optional[RequestOptions]
Expand Down Expand Up @@ -301,6 +305,7 @@ def create_agent(
"run_do_not_call_detection": run_do_not_call_detection,
"llm_fallback": llm_fallback,
"deepgram_keywords": deepgram_keywords,
"idle_time_seconds": idle_time_seconds,
"llm_temperature": llm_temperature,
},
request_options=request_options,
Expand Down Expand Up @@ -355,6 +360,7 @@ def update_agent(
run_do_not_call_detection: typing.Optional[AgentUpdateParamsRunDoNotCallDetection] = OMIT,
llm_fallback: typing.Optional[AgentUpdateParamsLlmFallback] = OMIT,
deepgram_keywords: typing.Optional[AgentUpdateParamsDeepgramKeywords] = OMIT,
idle_time_seconds: typing.Optional[AgentUpdateParamsIdleTimeSeconds] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> Agent:
"""
Expand Down Expand Up @@ -404,6 +410,8 @@ def update_agent(
deepgram_keywords : typing.Optional[AgentUpdateParamsDeepgramKeywords]
idle_time_seconds : typing.Optional[AgentUpdateParamsIdleTimeSeconds]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand Down Expand Up @@ -451,6 +459,7 @@ def update_agent(
"run_do_not_call_detection": run_do_not_call_detection,
"llm_fallback": llm_fallback,
"deepgram_keywords": deepgram_keywords,
"idle_time_seconds": idle_time_seconds,
},
request_options=request_options,
omit=OMIT,
Expand Down Expand Up @@ -653,6 +662,7 @@ async def create_agent(
run_do_not_call_detection: typing.Optional[bool] = OMIT,
llm_fallback: typing.Optional[InternalLlmFallback] = OMIT,
deepgram_keywords: typing.Optional[typing.Dict[str, typing.Optional[AgentParamsDeepgramKeywordsValue]]] = OMIT,
idle_time_seconds: typing.Optional[int] = OMIT,
llm_temperature: typing.Optional[float] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> Agent:
Expand Down Expand Up @@ -701,6 +711,8 @@ async def create_agent(
deepgram_keywords : typing.Optional[typing.Dict[str, typing.Optional[AgentParamsDeepgramKeywordsValue]]]
idle_time_seconds : typing.Optional[int]
llm_temperature : typing.Optional[float]
request_options : typing.Optional[RequestOptions]
Expand Down Expand Up @@ -756,6 +768,7 @@ async def main() -> None:
"run_do_not_call_detection": run_do_not_call_detection,
"llm_fallback": llm_fallback,
"deepgram_keywords": deepgram_keywords,
"idle_time_seconds": idle_time_seconds,
"llm_temperature": llm_temperature,
},
request_options=request_options,
Expand Down Expand Up @@ -810,6 +823,7 @@ async def update_agent(
run_do_not_call_detection: typing.Optional[AgentUpdateParamsRunDoNotCallDetection] = OMIT,
llm_fallback: typing.Optional[AgentUpdateParamsLlmFallback] = OMIT,
deepgram_keywords: typing.Optional[AgentUpdateParamsDeepgramKeywords] = OMIT,
idle_time_seconds: typing.Optional[AgentUpdateParamsIdleTimeSeconds] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> Agent:
"""
Expand Down Expand Up @@ -859,6 +873,8 @@ async def update_agent(
deepgram_keywords : typing.Optional[AgentUpdateParamsDeepgramKeywords]
idle_time_seconds : typing.Optional[AgentUpdateParamsIdleTimeSeconds]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand Down Expand Up @@ -914,6 +930,7 @@ async def main() -> None:
"run_do_not_call_detection": run_do_not_call_detection,
"llm_fallback": llm_fallback,
"deepgram_keywords": deepgram_keywords,
"idle_time_seconds": idle_time_seconds,
},
request_options=request_options,
omit=OMIT,
Expand Down
2 changes: 1 addition & 1 deletion src/vocode/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "vocode-api",
"X-Fern-SDK-Version": "0.0.47",
"X-Fern-SDK-Version": "0.0.48",
}
token = self._get_token()
if token is not None:
Expand Down
2 changes: 2 additions & 0 deletions src/vocode/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
from .agent_update_params_deepgram_keywords import AgentUpdateParamsDeepgramKeywords
from .agent_update_params_deepgram_keywords_zero_value import AgentUpdateParamsDeepgramKeywordsZeroValue
from .agent_update_params_endpointing_sensitivity import AgentUpdateParamsEndpointingSensitivity
from .agent_update_params_idle_time_seconds import AgentUpdateParamsIdleTimeSeconds
from .agent_update_params_initial_message import AgentUpdateParamsInitialMessage
from .agent_update_params_initial_message_delay import AgentUpdateParamsInitialMessageDelay
from .agent_update_params_interrupt_sensitivity import AgentUpdateParamsInterruptSensitivity
Expand Down Expand Up @@ -309,6 +310,7 @@
"AgentUpdateParamsDeepgramKeywords",
"AgentUpdateParamsDeepgramKeywordsZeroValue",
"AgentUpdateParamsEndpointingSensitivity",
"AgentUpdateParamsIdleTimeSeconds",
"AgentUpdateParamsInitialMessage",
"AgentUpdateParamsInitialMessageDelay",
"AgentUpdateParamsInterruptSensitivity",
Expand Down
1 change: 1 addition & 0 deletions src/vocode/types/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class Agent(UniversalBaseModel):
run_do_not_call_detection: typing.Optional[bool] = None
llm_fallback: typing.Optional[InternalLlmFallback] = None
deepgram_keywords: typing.Optional[typing.Dict[str, typing.Optional[AgentDeepgramKeywordsValue]]] = None
idle_time_seconds: typing.Optional[int] = None
llm_temperature: typing.Optional[float] = None

if IS_PYDANTIC_V2:
Expand Down
1 change: 1 addition & 0 deletions src/vocode/types/agent_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class AgentParams(UniversalBaseModel):
run_do_not_call_detection: typing.Optional[bool] = None
llm_fallback: typing.Optional[InternalLlmFallback] = None
deepgram_keywords: typing.Optional[typing.Dict[str, typing.Optional[AgentParamsDeepgramKeywordsValue]]] = None
idle_time_seconds: typing.Optional[int] = None
llm_temperature: typing.Optional[float] = None

if IS_PYDANTIC_V2:
Expand Down
2 changes: 2 additions & 0 deletions src/vocode/types/agent_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from .agent_update_params_run_do_not_call_detection import AgentUpdateParamsRunDoNotCallDetection
from .agent_update_params_llm_fallback import AgentUpdateParamsLlmFallback
from .agent_update_params_deepgram_keywords import AgentUpdateParamsDeepgramKeywords
from .agent_update_params_idle_time_seconds import AgentUpdateParamsIdleTimeSeconds
from ..core.pydantic_utilities import IS_PYDANTIC_V2
import pydantic

Expand All @@ -49,6 +50,7 @@ class AgentUpdateParams(UniversalBaseModel):
run_do_not_call_detection: typing.Optional[AgentUpdateParamsRunDoNotCallDetection] = None
llm_fallback: typing.Optional[AgentUpdateParamsLlmFallback] = None
deepgram_keywords: typing.Optional[AgentUpdateParamsDeepgramKeywords] = None
idle_time_seconds: typing.Optional[AgentUpdateParamsIdleTimeSeconds] = None

if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
Expand Down
6 changes: 6 additions & 0 deletions src/vocode/types/agent_update_params_idle_time_seconds.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# This file was auto-generated by Fern from our API Definition.

import typing
from .undefined import Undefined

AgentUpdateParamsIdleTimeSeconds = typing.Union[int, Undefined]
1 change: 1 addition & 0 deletions src/vocode/types/create_call_agent_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class CreateCallAgentParams(UniversalBaseModel):
deepgram_keywords: typing.Optional[
typing.Dict[str, typing.Optional[CreateCallAgentParamsDeepgramKeywordsValue]]
] = None
idle_time_seconds: typing.Optional[int] = None
llm_temperature: typing.Optional[float] = None

if IS_PYDANTIC_V2:
Expand Down
1 change: 1 addition & 0 deletions src/vocode/types/normalized_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class NormalizedAgent(UniversalBaseModel):
run_do_not_call_detection: typing.Optional[bool] = None
llm_fallback: typing.Optional[InternalLlmFallback] = None
deepgram_keywords: typing.Optional[typing.Dict[str, typing.Optional[NormalizedAgentDeepgramKeywordsValue]]] = None
idle_time_seconds: typing.Optional[int] = None
llm_temperature: typing.Optional[float] = None

if IS_PYDANTIC_V2:
Expand Down

0 comments on commit 08bb213

Please sign in to comment.