signalwire-agents 0.1.2__py3-none-any.whl → 0.1.5__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.
@@ -14,7 +14,7 @@ SignalWire AI Agents SDK
14
14
  A package for building AI agents using SignalWire's AI and SWML capabilities.
15
15
  """
16
16
 
17
- __version__ = "0.1.2"
17
+ __version__ = "0.1.5"
18
18
 
19
19
  # Import core classes for easier access
20
20
  from signalwire_agents.core.agent_base import AgentBase
@@ -166,9 +166,7 @@ class ReceptionistAgent(AgentBase):
166
166
  self.add_language(
167
167
  name="English",
168
168
  code="en-US",
169
- voice=voice,
170
- speech_fillers=["Let me get that information for you...", "One moment please..."],
171
- function_fillers=["I'm processing that...", "Let me check which department can help you best..."]
169
+ voice=voice
172
170
  )
173
171
 
174
172
  def _register_tools(self):
@@ -260,23 +258,26 @@ class ReceptionistAgent(AgentBase):
260
258
  # Get transfer number
261
259
  transfer_number = department.get("number", "")
262
260
 
263
- # Create message for caller
264
- message = f"I'll transfer you to our {department_name} department now. Thank you for calling, {name}!"
265
-
266
261
  # Create result with transfer SWML
267
- result = SwaigFunctionResult(message)
262
+ result = SwaigFunctionResult(f"I'll transfer you to our {department_name} department now. Thank you for calling, {name}!")
268
263
 
269
264
  # Add the SWML to execute the transfer
270
- result.add_swml([
271
- {
272
- "play": {
273
- "url": f"say:{message}"
274
- }
275
- },
265
+ # Add actions to update global data
266
+ result.add_actions([
276
267
  {
277
- "connect": {
278
- "to": transfer_number
279
- }
268
+ "SWML": {
269
+ "sections": {
270
+ "main": [
271
+ {
272
+ "connect": {
273
+ "to": transfer_number
274
+ }
275
+ }
276
+ ]
277
+ },
278
+ "version": "1.0.0"
279
+ },
280
+ "transfer": "true"
280
281
  }
281
282
  ])
282
283
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: signalwire_agents
3
- Version: 0.1.2
3
+ Version: 0.1.5
4
4
  Summary: SignalWire AI Agents SDK
5
5
  Author-email: SignalWire Team <info@signalwire.com>
6
6
  Project-URL: Homepage, https://github.com/signalwire/signalwire-ai-agents
@@ -1,4 +1,4 @@
1
- signalwire_agents/__init__.py,sha256=gZDtAkfd7KIm-6XEXIhNXI553-1Kxks035kcHQFmXjY,800
1
+ signalwire_agents/__init__.py,sha256=NLgfrj90HmtMNumq43u16xWptlD-JrtXPNQVcwZ1yIo,800
2
2
  signalwire_agents/agent_server.py,sha256=se_YzOQE5UUoRUKCbTnOg9qr4G3qN7iVuQLutwXEwFU,12850
3
3
  signalwire_agents/schema.json,sha256=M8Mn6pQda2P9jhbmkALrLr1wt-fRuhYRqdmEi9Rbhqk,178075
4
4
  signalwire_agents/core/__init__.py,sha256=mVDLbpq1pg_WwiqsQR28NNZwJ6-VUXFIfg-vN7pk0ew,806
@@ -19,16 +19,16 @@ signalwire_agents/prefabs/__init__.py,sha256=MW11J63XH7KxF2MWguRsMFM9iqMWexaEO9y
19
19
  signalwire_agents/prefabs/concierge.py,sha256=--esvAV1lozQGYXHAqvSg8_TtlIoVfQK75APJ5zqX9I,9779
20
20
  signalwire_agents/prefabs/faq_bot.py,sha256=cUuHhnDB8S4aVg-DiQe4jBmCAPrYQrND_Mff9iaeEa0,10572
21
21
  signalwire_agents/prefabs/info_gatherer.py,sha256=y9gxjq1vF0-TrE6m734dCcAHqxt0I_DyCqxoM45QY8U,9940
22
- signalwire_agents/prefabs/receptionist.py,sha256=bYHbdvNepnMYgU6igcKY8AtCl2vBxUf_g6Z_2D1uD4g,10284
22
+ signalwire_agents/prefabs/receptionist.py,sha256=Wb22igXTD8QK9lQVcJq88eIk7qQ2GSSIzSGuYyK-Dbk,10293
23
23
  signalwire_agents/prefabs/survey.py,sha256=1pyUeZ5heDqFAYqkYs5fHN_jQ7TKqJInnOOUQEajSsY,14358
24
24
  signalwire_agents/utils/__init__.py,sha256=4Mr7baQ_xR_hfJ72YxQRAT_GFa663YjFX_PumJ35Xds,191
25
25
  signalwire_agents/utils/pom_utils.py,sha256=4Mr7baQ_xR_hfJ72YxQRAT_GFa663YjFX_PumJ35Xds,191
26
26
  signalwire_agents/utils/schema_utils.py,sha256=LvFCFvJTQk_xYK0B-NXbkXKEF7Zmv-LqpV_vfpPnOb4,13473
27
27
  signalwire_agents/utils/token_generators.py,sha256=4Mr7baQ_xR_hfJ72YxQRAT_GFa663YjFX_PumJ35Xds,191
28
28
  signalwire_agents/utils/validators.py,sha256=4Mr7baQ_xR_hfJ72YxQRAT_GFa663YjFX_PumJ35Xds,191
29
- signalwire_agents-0.1.2.data/data/schema.json,sha256=M8Mn6pQda2P9jhbmkALrLr1wt-fRuhYRqdmEi9Rbhqk,178075
30
- signalwire_agents-0.1.2.dist-info/licenses/LICENSE,sha256=NYvAsB-rTcSvG9cqHt9EUHAWLiA9YzM4Qfz-mPdvDR0,1067
31
- signalwire_agents-0.1.2.dist-info/METADATA,sha256=WzQzw2cTR_5Rs_Gd5ypKcOxej87H81FAfYte-ODskVg,7414
32
- signalwire_agents-0.1.2.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
33
- signalwire_agents-0.1.2.dist-info/top_level.txt,sha256=kDGS6ZYv84K9P5Kyg9_S8P_pbUXoHkso0On_DB5bbWc,18
34
- signalwire_agents-0.1.2.dist-info/RECORD,,
29
+ signalwire_agents-0.1.5.data/data/schema.json,sha256=M8Mn6pQda2P9jhbmkALrLr1wt-fRuhYRqdmEi9Rbhqk,178075
30
+ signalwire_agents-0.1.5.dist-info/licenses/LICENSE,sha256=NYvAsB-rTcSvG9cqHt9EUHAWLiA9YzM4Qfz-mPdvDR0,1067
31
+ signalwire_agents-0.1.5.dist-info/METADATA,sha256=BotyeNOQW27tW_uqJOiFFie06Ra77RYRx9SHO1FkJ-w,7414
32
+ signalwire_agents-0.1.5.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
33
+ signalwire_agents-0.1.5.dist-info/top_level.txt,sha256=kDGS6ZYv84K9P5Kyg9_S8P_pbUXoHkso0On_DB5bbWc,18
34
+ signalwire_agents-0.1.5.dist-info/RECORD,,