signalwire-agents 1.0.17.dev4__py3-none-any.whl → 1.0.17.dev6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- signalwire_agents/__init__.py +1 -1
- signalwire_agents/agent_server.py +1 -1
- signalwire_agents/core/function_result.py +23 -21
- {signalwire_agents-1.0.17.dev4.dist-info → signalwire_agents-1.0.17.dev6.dist-info}/METADATA +1 -1
- {signalwire_agents-1.0.17.dev4.dist-info → signalwire_agents-1.0.17.dev6.dist-info}/RECORD +12 -12
- {signalwire_agents-1.0.17.dev4.dist-info → signalwire_agents-1.0.17.dev6.dist-info}/WHEEL +1 -1
- {signalwire_agents-1.0.17.dev4.data → signalwire_agents-1.0.17.dev6.data}/data/share/man/man1/sw-agent-init.1 +0 -0
- {signalwire_agents-1.0.17.dev4.data → signalwire_agents-1.0.17.dev6.data}/data/share/man/man1/sw-search.1 +0 -0
- {signalwire_agents-1.0.17.dev4.data → signalwire_agents-1.0.17.dev6.data}/data/share/man/man1/swaig-test.1 +0 -0
- {signalwire_agents-1.0.17.dev4.dist-info → signalwire_agents-1.0.17.dev6.dist-info}/entry_points.txt +0 -0
- {signalwire_agents-1.0.17.dev4.dist-info → signalwire_agents-1.0.17.dev6.dist-info}/licenses/LICENSE +0 -0
- {signalwire_agents-1.0.17.dev4.dist-info → signalwire_agents-1.0.17.dev6.dist-info}/top_level.txt +0 -0
signalwire_agents/__init__.py
CHANGED
|
@@ -18,7 +18,7 @@ A package for building AI agents using SignalWire's AI and SWML capabilities.
|
|
|
18
18
|
from .core.logging_config import configure_logging
|
|
19
19
|
configure_logging()
|
|
20
20
|
|
|
21
|
-
__version__ = "1.0.17.
|
|
21
|
+
__version__ = "1.0.17.dev6"
|
|
22
22
|
|
|
23
23
|
# Import core classes for easier access
|
|
24
24
|
from .core.agent_base import AgentBase
|
|
@@ -770,32 +770,32 @@ class SwaigFunctionResult:
|
|
|
770
770
|
# Use execute_swml to add the action
|
|
771
771
|
return self.execute_swml(swml_doc)
|
|
772
772
|
|
|
773
|
-
def record_call(self, control_id: Optional[str] = None, stereo: bool = False,
|
|
774
|
-
format: str = "wav", direction: str = "both",
|
|
773
|
+
def record_call(self, control_id: Optional[str] = None, stereo: bool = False,
|
|
774
|
+
format: str = "wav", direction: str = "both",
|
|
775
775
|
terminators: Optional[str] = None, beep: bool = False,
|
|
776
|
-
input_sensitivity: float = 44.0, initial_timeout: float =
|
|
777
|
-
end_silence_timeout: float =
|
|
776
|
+
input_sensitivity: float = 44.0, initial_timeout: Optional[float] = None,
|
|
777
|
+
end_silence_timeout: Optional[float] = None, max_length: Optional[float] = None,
|
|
778
778
|
status_url: Optional[str] = None) -> 'SwaigFunctionResult':
|
|
779
779
|
"""
|
|
780
780
|
Start background call recording using SWML.
|
|
781
|
-
|
|
782
|
-
This is a virtual helper that generates SWML to start recording the call
|
|
783
|
-
in the background. Unlike foreground recording, the script continues
|
|
781
|
+
|
|
782
|
+
This is a virtual helper that generates SWML to start recording the call
|
|
783
|
+
in the background. Unlike foreground recording, the script continues
|
|
784
784
|
executing while recording happens in the background.
|
|
785
|
-
|
|
785
|
+
|
|
786
786
|
Args:
|
|
787
787
|
control_id: Identifier for this recording (for use with stop_record_call)
|
|
788
788
|
stereo: Record in stereo (default: False)
|
|
789
|
-
format: Recording format - "wav" or "mp3" (default: "wav")
|
|
789
|
+
format: Recording format - "wav" or "mp3" (default: "wav")
|
|
790
790
|
direction: Audio direction - "speak", "listen", or "both" (default: "both")
|
|
791
791
|
terminators: Digits that stop recording when pressed
|
|
792
792
|
beep: Play beep before recording (default: False)
|
|
793
793
|
input_sensitivity: Input sensitivity for recording (default: 44.0)
|
|
794
|
-
initial_timeout: Time in seconds to wait for speech start (
|
|
795
|
-
end_silence_timeout: Time in seconds to wait in silence before ending (
|
|
794
|
+
initial_timeout: Time in seconds to wait for speech start (for voicemail-style recording)
|
|
795
|
+
end_silence_timeout: Time in seconds to wait in silence before ending (for voicemail-style recording)
|
|
796
796
|
max_length: Maximum recording length in seconds
|
|
797
797
|
status_url: URL to send recording status events to
|
|
798
|
-
|
|
798
|
+
|
|
799
799
|
Returns:
|
|
800
800
|
self for method chaining
|
|
801
801
|
"""
|
|
@@ -813,17 +813,19 @@ class SwaigFunctionResult:
|
|
|
813
813
|
"format": format,
|
|
814
814
|
"direction": direction,
|
|
815
815
|
"beep": beep,
|
|
816
|
-
"input_sensitivity": input_sensitivity
|
|
817
|
-
"initial_timeout": initial_timeout,
|
|
818
|
-
"end_silence_timeout": end_silence_timeout
|
|
816
|
+
"input_sensitivity": input_sensitivity
|
|
819
817
|
}
|
|
820
|
-
|
|
818
|
+
|
|
821
819
|
# Add optional parameters
|
|
822
820
|
if control_id:
|
|
823
821
|
record_params["control_id"] = control_id
|
|
824
822
|
if terminators:
|
|
825
823
|
record_params["terminators"] = terminators
|
|
826
|
-
if
|
|
824
|
+
if initial_timeout is not None:
|
|
825
|
+
record_params["initial_timeout"] = initial_timeout
|
|
826
|
+
if end_silence_timeout is not None:
|
|
827
|
+
record_params["end_silence_timeout"] = end_silence_timeout
|
|
828
|
+
if max_length is not None:
|
|
827
829
|
record_params["max_length"] = max_length
|
|
828
830
|
if status_url:
|
|
829
831
|
record_params["status_url"] = status_url
|
|
@@ -1141,14 +1143,14 @@ class SwaigFunctionResult:
|
|
|
1141
1143
|
def stop_tap(self, control_id: Optional[str] = None) -> 'SwaigFunctionResult':
|
|
1142
1144
|
"""
|
|
1143
1145
|
Stop an active tap stream using SWML.
|
|
1144
|
-
|
|
1146
|
+
|
|
1145
1147
|
This is a virtual helper that generates SWML to stop a tap stream
|
|
1146
1148
|
that was started with tap().
|
|
1147
|
-
|
|
1149
|
+
|
|
1148
1150
|
Args:
|
|
1149
1151
|
control_id: ID of the tap to stop (optional)
|
|
1150
1152
|
If not set, the last tap started will be stopped
|
|
1151
|
-
|
|
1153
|
+
|
|
1152
1154
|
Returns:
|
|
1153
1155
|
self for method chaining
|
|
1154
1156
|
"""
|
|
@@ -1158,7 +1160,7 @@ class SwaigFunctionResult:
|
|
|
1158
1160
|
else:
|
|
1159
1161
|
# For simple case with no control_id, use empty object
|
|
1160
1162
|
stop_params = {}
|
|
1161
|
-
|
|
1163
|
+
|
|
1162
1164
|
# Generate SWML document
|
|
1163
1165
|
swml_doc = {
|
|
1164
1166
|
"version": "1.0.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
signalwire_agents/__init__.py,sha256=
|
|
2
|
-
signalwire_agents/agent_server.py,sha256=
|
|
1
|
+
signalwire_agents/__init__.py,sha256=IzkVHAdQeDfOHkfSsCseKJ72tlv_LJsDy1yaWf5T9aU,5036
|
|
2
|
+
signalwire_agents/agent_server.py,sha256=7fn5eOE0yLe7b1YRTX_MpvvK-hBedzkncOFFAb3YwVg,32352
|
|
3
3
|
signalwire_agents/schema.json,sha256=YQv4-KiegE00XvxoLMKAml6aCGitnt3kBq31ECxTHK8,385886
|
|
4
4
|
signalwire_agents/agents/bedrock.py,sha256=J582gooNtxtep4xdVOfyDzRtHp_XrurPMS93xf2Xod0,10836
|
|
5
5
|
signalwire_agents/cli/__init__.py,sha256=XbxAQFaCIdGXIXJiriVBWoFPOJsC401u21588nO4TG8,388
|
|
@@ -31,7 +31,7 @@ signalwire_agents/core/auth_handler.py,sha256=jXrof9WZ1W9qqlQT9WElcmSRafL2kG7207
|
|
|
31
31
|
signalwire_agents/core/config_loader.py,sha256=rStVRRUaeMGrMc44ocr0diMQQARZhbKqwMqQ6kqUNos,8722
|
|
32
32
|
signalwire_agents/core/contexts.py,sha256=g9FgOGMfGCUWlm57YZcv7CvOf-Ub9FdKZIOMu14ADfE,24428
|
|
33
33
|
signalwire_agents/core/data_map.py,sha256=0qp3VcrRS0RtZPApoAaGgM-udLBb1ysnyMJuWd6sSew,17134
|
|
34
|
-
signalwire_agents/core/function_result.py,sha256=
|
|
34
|
+
signalwire_agents/core/function_result.py,sha256=SMgLJO1sCGgLk_w7D9MZnMFF7k91rlXiUGvQeNim7Nc,48213
|
|
35
35
|
signalwire_agents/core/logging_config.py,sha256=x4d_RAjBjVpJOFA2vXnPP2dNr13BZHz091J5rGpC77Y,13142
|
|
36
36
|
signalwire_agents/core/pom_builder.py,sha256=ywuiIfP8BeLBPo_G4X1teZlG6zTCMkW71CZnmyoDTAQ,6636
|
|
37
37
|
signalwire_agents/core/security_config.py,sha256=iAnAzKEJQiXL6mMpDaYm3Sjkxwm4x2N9HD6DeWSI8yI,12536
|
|
@@ -136,12 +136,12 @@ signalwire_agents/utils/token_generators.py,sha256=4Mr7baQ_xR_hfJ72YxQRAT_GFa663
|
|
|
136
136
|
signalwire_agents/utils/validators.py,sha256=4Mr7baQ_xR_hfJ72YxQRAT_GFa663YjFX_PumJ35Xds,191
|
|
137
137
|
signalwire_agents/web/__init__.py,sha256=XE_pSTY9Aalzr7J7wqFth1Zr3cccQHPPcF5HWNrOpz8,383
|
|
138
138
|
signalwire_agents/web/web_service.py,sha256=a2PSHJgX1tlZr0Iz1A1UouZjXEePJAZL632evvLVM38,21071
|
|
139
|
-
signalwire_agents-1.0.17.
|
|
140
|
-
signalwire_agents-1.0.17.
|
|
141
|
-
signalwire_agents-1.0.17.
|
|
142
|
-
signalwire_agents-1.0.17.
|
|
143
|
-
signalwire_agents-1.0.17.
|
|
144
|
-
signalwire_agents-1.0.17.
|
|
145
|
-
signalwire_agents-1.0.17.
|
|
146
|
-
signalwire_agents-1.0.17.
|
|
147
|
-
signalwire_agents-1.0.17.
|
|
139
|
+
signalwire_agents-1.0.17.dev6.data/data/share/man/man1/sw-agent-init.1,sha256=J4k5Oi74BnWCPCvsaw00vuyyqDPuIECjJIPu5OynvJc,8381
|
|
140
|
+
signalwire_agents-1.0.17.dev6.data/data/share/man/man1/sw-search.1,sha256=9jJ6V6t6DgmXByz8Lw9exjf683Cw3sJGro8-eB0M9EY,10413
|
|
141
|
+
signalwire_agents-1.0.17.dev6.data/data/share/man/man1/swaig-test.1,sha256=Ri0EITo8YMFowkcYltwPSwU4VJdRzo7XTWloi5WddCg,7815
|
|
142
|
+
signalwire_agents-1.0.17.dev6.dist-info/licenses/LICENSE,sha256=NYvAsB-rTcSvG9cqHt9EUHAWLiA9YzM4Qfz-mPdvDR0,1067
|
|
143
|
+
signalwire_agents-1.0.17.dev6.dist-info/METADATA,sha256=eUXjo8p_LOP8aU1OkN6fT10ibAazDzc7SHv8ujY4QBE,41745
|
|
144
|
+
signalwire_agents-1.0.17.dev6.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
145
|
+
signalwire_agents-1.0.17.dev6.dist-info/entry_points.txt,sha256=fMiBH-GLeXGaWWn58Mcj7KM_m3SdomQMUQu-1LTqscw,315
|
|
146
|
+
signalwire_agents-1.0.17.dev6.dist-info/top_level.txt,sha256=kDGS6ZYv84K9P5Kyg9_S8P_pbUXoHkso0On_DB5bbWc,18
|
|
147
|
+
signalwire_agents-1.0.17.dev6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{signalwire_agents-1.0.17.dev4.dist-info → signalwire_agents-1.0.17.dev6.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{signalwire_agents-1.0.17.dev4.dist-info → signalwire_agents-1.0.17.dev6.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{signalwire_agents-1.0.17.dev4.dist-info → signalwire_agents-1.0.17.dev6.dist-info}/top_level.txt
RENAMED
|
File without changes
|