Skip to content

Commit 4ad9eb7

Browse files
committed
feat: apply latest spec changes
1 parent 0d219ce commit 4ad9eb7

File tree

14 files changed

+6
-52
lines changed

14 files changed

+6
-52
lines changed

deepgram/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@
324324
ConversationTextResponse,
325325
UserStartedSpeakingResponse,
326326
AgentThinkingResponse,
327-
FunctionCalling,
328327
FunctionCallRequest,
329328
AgentStartedSpeakingResponse,
330329
AgentAudioDoneResponse,

deepgram/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@
338338
ConversationTextResponse,
339339
UserStartedSpeakingResponse,
340340
AgentThinkingResponse,
341-
FunctionCalling,
342341
FunctionCallRequest,
343342
AgentStartedSpeakingResponse,
344343
AgentAudioDoneResponse,

deepgram/clients/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,6 @@
347347
ConversationTextResponse,
348348
UserStartedSpeakingResponse,
349349
AgentThinkingResponse,
350-
FunctionCalling,
351350
FunctionCallRequest,
352351
AgentStartedSpeakingResponse,
353352
AgentAudioDoneResponse,

deepgram/clients/agent/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
ConversationTextResponse,
2323
UserStartedSpeakingResponse,
2424
AgentThinkingResponse,
25-
FunctionCalling,
2625
FunctionCallRequest,
2726
AgentStartedSpeakingResponse,
2827
AgentAudioDoneResponse,

deepgram/clients/agent/client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
ConversationTextResponse as LatestConversationTextResponse,
2222
UserStartedSpeakingResponse as LatestUserStartedSpeakingResponse,
2323
AgentThinkingResponse as LatestAgentThinkingResponse,
24-
FunctionCalling as LatestFunctionCalling,
2524
FunctionCallRequest as LatestFunctionCallRequest,
2625
AgentStartedSpeakingResponse as LatestAgentStartedSpeakingResponse,
2726
AgentAudioDoneResponse as LatestAgentAudioDoneResponse,
@@ -72,7 +71,6 @@
7271
ConversationTextResponse = LatestConversationTextResponse
7372
UserStartedSpeakingResponse = LatestUserStartedSpeakingResponse
7473
AgentThinkingResponse = LatestAgentThinkingResponse
75-
FunctionCalling = LatestFunctionCalling
7674
FunctionCallRequest = LatestFunctionCallRequest
7775
AgentStartedSpeakingResponse = LatestAgentStartedSpeakingResponse
7876
AgentAudioDoneResponse = LatestAgentAudioDoneResponse

deepgram/clients/agent/enums.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class AgentWebSocketEvents(StrEnum):
2121
ConversationText: str = "ConversationText"
2222
UserStartedSpeaking: str = "UserStartedSpeaking"
2323
AgentThinking: str = "AgentThinking"
24-
FunctionCalling: str = "FunctionCalling"
2524
FunctionCallRequest: str = "FunctionCallRequest"
2625
AgentStartedSpeaking: str = "AgentStartedSpeaking"
2726
AgentAudioDone: str = "AgentAudioDone"

deepgram/clients/agent/v1/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
ConversationTextResponse,
2727
UserStartedSpeakingResponse,
2828
AgentThinkingResponse,
29-
FunctionCalling,
3029
FunctionCallRequest,
3130
AgentStartedSpeakingResponse,
3231
AgentAudioDoneResponse,

deepgram/clients/agent/v1/websocket/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
ConversationTextResponse,
1919
UserStartedSpeakingResponse,
2020
AgentThinkingResponse,
21-
FunctionCalling,
2221
FunctionCallRequest,
2322
AgentStartedSpeakingResponse,
2423
AgentAudioDoneResponse,

deepgram/clients/agent/v1/websocket/async_client.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
ConversationTextResponse,
2222
UserStartedSpeakingResponse,
2323
AgentThinkingResponse,
24-
FunctionCalling,
2524
FunctionCallRequest,
2625
AgentStartedSpeakingResponse,
2726
AgentAudioDoneResponse,
@@ -432,16 +431,6 @@ async def _process_text(self, message: str) -> None:
432431
agent_thinking=agent_thinking_result,
433432
**dict(cast(Dict[Any, Any], self._kwargs)),
434433
)
435-
case AgentWebSocketEvents.FunctionCalling:
436-
function_calling_result: FunctionCalling = (
437-
FunctionCalling.from_json(message)
438-
)
439-
self._logger.verbose("FunctionCalling: %s", function_calling_result)
440-
await self._emit(
441-
AgentWebSocketEvents(AgentWebSocketEvents.FunctionCalling),
442-
function_calling=function_calling_result,
443-
**dict(cast(Dict[Any, Any], self._kwargs)),
444-
)
445434
case AgentWebSocketEvents.FunctionCallRequest:
446435
function_call_request_result: FunctionCallRequest = (
447436
FunctionCallRequest.from_json(message)

deepgram/clients/agent/v1/websocket/client.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
ConversationTextResponse,
2222
UserStartedSpeakingResponse,
2323
AgentThinkingResponse,
24-
FunctionCalling,
2524
FunctionCallRequest,
2625
AgentStartedSpeakingResponse,
2726
AgentAudioDoneResponse,
@@ -427,16 +426,6 @@ def _process_text(self, message: str) -> None:
427426
agent_thinking=agent_thinking_result,
428427
**dict(cast(Dict[Any, Any], self._kwargs)),
429428
)
430-
case AgentWebSocketEvents.FunctionCalling:
431-
function_calling_result: FunctionCalling = (
432-
FunctionCalling.from_json(message)
433-
)
434-
self._logger.verbose("FunctionCalling: %s", function_calling_result)
435-
self._emit(
436-
AgentWebSocketEvents(AgentWebSocketEvents.FunctionCalling),
437-
function_calling=function_calling_result,
438-
**dict(cast(Dict[Any, Any], self._kwargs)),
439-
)
440429
case AgentWebSocketEvents.FunctionCallRequest:
441430
function_call_request_result: FunctionCallRequest = (
442431
FunctionCallRequest.from_json(message)

0 commit comments

Comments
 (0)