signalwire-agents 1.0.2__py3-none-any.whl → 1.0.3__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/schema.json +165 -4
- {signalwire_agents-1.0.2.dist-info → signalwire_agents-1.0.3.dist-info}/METADATA +1 -1
- {signalwire_agents-1.0.2.dist-info → signalwire_agents-1.0.3.dist-info}/RECORD +8 -8
- {signalwire_agents-1.0.2.dist-info → signalwire_agents-1.0.3.dist-info}/WHEEL +0 -0
- {signalwire_agents-1.0.2.dist-info → signalwire_agents-1.0.3.dist-info}/entry_points.txt +0 -0
- {signalwire_agents-1.0.2.dist-info → signalwire_agents-1.0.3.dist-info}/licenses/LICENSE +0 -0
- {signalwire_agents-1.0.2.dist-info → signalwire_agents-1.0.3.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.
|
|
21
|
+
__version__ = "1.0.3"
|
|
22
22
|
|
|
23
23
|
# Import core classes for easier access
|
|
24
24
|
from .core.agent_base import AgentBase
|
signalwire_agents/schema.json
CHANGED
|
@@ -60,6 +60,9 @@
|
|
|
60
60
|
{
|
|
61
61
|
"$ref": "#/$defs/Denoise"
|
|
62
62
|
},
|
|
63
|
+
{
|
|
64
|
+
"$ref": "#/$defs/EnterQueue"
|
|
65
|
+
},
|
|
63
66
|
{
|
|
64
67
|
"$ref": "#/$defs/Execute"
|
|
65
68
|
},
|
|
@@ -303,6 +306,23 @@
|
|
|
303
306
|
},
|
|
304
307
|
"title": "Denoise object"
|
|
305
308
|
},
|
|
309
|
+
"EnterQueue": {
|
|
310
|
+
"type": "object",
|
|
311
|
+
"properties": {
|
|
312
|
+
"enter_queue": {
|
|
313
|
+
"$ref": "#/$defs/EnterQueueObject",
|
|
314
|
+
"description": "Place the call in a queue.",
|
|
315
|
+
"title": "enter_queue"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
"required": [
|
|
319
|
+
"enter_queue"
|
|
320
|
+
],
|
|
321
|
+
"unevaluatedProperties": {
|
|
322
|
+
"not": {}
|
|
323
|
+
},
|
|
324
|
+
"title": "EnterQueue object"
|
|
325
|
+
},
|
|
306
326
|
"Execute": {
|
|
307
327
|
"type": "object",
|
|
308
328
|
"properties": {
|
|
@@ -311,7 +331,7 @@
|
|
|
311
331
|
"properties": {
|
|
312
332
|
"dest": {
|
|
313
333
|
"type": "string",
|
|
314
|
-
"description": "Specifies what to execute. The value can be one of
|
|
334
|
+
"description": "Specifies what to execute. The value can be one of:\n- `<section_name>` - section in the current document to execute\n- A URL (http or https) that returns a SWML document - Sends HTTP POST\n- An inline SWML document (as a JSON string)"
|
|
315
335
|
},
|
|
316
336
|
"params": {
|
|
317
337
|
"type": "object",
|
|
@@ -1561,7 +1581,7 @@
|
|
|
1561
1581
|
"properties": {
|
|
1562
1582
|
"dest": {
|
|
1563
1583
|
"type": "string",
|
|
1564
|
-
"description": "Specifies where to transfer the call. The value can be one of:\n
|
|
1584
|
+
"description": "Specifies where to transfer the call. The value can be one of:\n- `<section_name>` - section in the SWML document to jump to\n- A URL (http or https) that returns a SWML document - Sends HTTP POST\n- An inline SWML document (as a JSON string)"
|
|
1565
1585
|
},
|
|
1566
1586
|
"params": {
|
|
1567
1587
|
"type": "object",
|
|
@@ -1642,7 +1662,7 @@
|
|
|
1642
1662
|
"payment_connector_url": {
|
|
1643
1663
|
"type": "string",
|
|
1644
1664
|
"format": "uri",
|
|
1645
|
-
"description": "The URL to make POST requests with all the gathered payment details.\nThis URL is used to process the final payment transaction and return the results through the response.\n\nVisit https://developer.signalwire.com
|
|
1665
|
+
"description": "The URL to make POST requests with all the gathered payment details.\nThis URL is used to process the final payment transaction and return the results through the response.\n\nVisit https://developer.signalwire.com/swml/methods/pay/payment_connector_url for more important information."
|
|
1646
1666
|
},
|
|
1647
1667
|
"charge_amount": {
|
|
1648
1668
|
"type": "string",
|
|
@@ -2223,6 +2243,17 @@
|
|
|
2223
2243
|
"format": "uri",
|
|
2224
2244
|
"description": "http or https URL to deliver call status events"
|
|
2225
2245
|
},
|
|
2246
|
+
"transfer_after_bridge": {
|
|
2247
|
+
"anyOf": [
|
|
2248
|
+
{
|
|
2249
|
+
"type": "string"
|
|
2250
|
+
},
|
|
2251
|
+
{
|
|
2252
|
+
"$ref": "#/$defs/SWMLVar"
|
|
2253
|
+
}
|
|
2254
|
+
],
|
|
2255
|
+
"description": "SWML to execute after the bridge completes. This defines what should happen after the call is connected and the bridge ends.\nCan be either:\n- A URL (http or https) that returns a SWML document\n- An inline SWML document (as a JSON string)\n\n**Note:** This parameter is REQUIRED when connecting to a queue (when `to` starts with \"queue:\")"
|
|
2256
|
+
},
|
|
2226
2257
|
"call_state_events": {
|
|
2227
2258
|
"type": "array",
|
|
2228
2259
|
"items": {
|
|
@@ -2235,7 +2266,7 @@
|
|
|
2235
2266
|
},
|
|
2236
2267
|
"to": {
|
|
2237
2268
|
"type": "string",
|
|
2238
|
-
"description": "
|
|
2269
|
+
"description": "Destination to dial. Can be:\n- Phone number in E.164 format (e.g., \"+15552345678\")\n- SIP URI (e.g., \"sip:alice@example.com\")\n- Call Fabric Resource address (e.g., \"/public/test_room\")\n- Queue (e.g., \"queue:support\")"
|
|
2239
2270
|
}
|
|
2240
2271
|
},
|
|
2241
2272
|
"required": [
|
|
@@ -2398,6 +2429,17 @@
|
|
|
2398
2429
|
"format": "uri",
|
|
2399
2430
|
"description": "http or https URL to deliver call status events"
|
|
2400
2431
|
},
|
|
2432
|
+
"transfer_after_bridge": {
|
|
2433
|
+
"anyOf": [
|
|
2434
|
+
{
|
|
2435
|
+
"type": "string"
|
|
2436
|
+
},
|
|
2437
|
+
{
|
|
2438
|
+
"$ref": "#/$defs/SWMLVar"
|
|
2439
|
+
}
|
|
2440
|
+
],
|
|
2441
|
+
"description": "SWML to execute after the bridge completes. This defines what should happen after the call is connected and the bridge ends.\nCan be either:\n- A URL (http or https) that returns a SWML document\n- An inline SWML document (as a JSON string)\n\n**Note:** This parameter is REQUIRED when connecting to a queue (when `to` starts with \"queue:\")"
|
|
2442
|
+
},
|
|
2401
2443
|
"call_state_events": {
|
|
2402
2444
|
"type": "array",
|
|
2403
2445
|
"items": {
|
|
@@ -2575,6 +2617,17 @@
|
|
|
2575
2617
|
"format": "uri",
|
|
2576
2618
|
"description": "http or https URL to deliver call status events"
|
|
2577
2619
|
},
|
|
2620
|
+
"transfer_after_bridge": {
|
|
2621
|
+
"anyOf": [
|
|
2622
|
+
{
|
|
2623
|
+
"type": "string"
|
|
2624
|
+
},
|
|
2625
|
+
{
|
|
2626
|
+
"$ref": "#/$defs/SWMLVar"
|
|
2627
|
+
}
|
|
2628
|
+
],
|
|
2629
|
+
"description": "SWML to execute after the bridge completes. This defines what should happen after the call is connected and the bridge ends.\nCan be either:\n- A URL (http or https) that returns a SWML document\n- An inline SWML document (as a JSON string)\n\n**Note:** This parameter is REQUIRED when connecting to a queue (when `to` starts with \"queue:\")"
|
|
2630
|
+
},
|
|
2578
2631
|
"call_state_events": {
|
|
2579
2632
|
"type": "array",
|
|
2580
2633
|
"items": {
|
|
@@ -2753,6 +2806,17 @@
|
|
|
2753
2806
|
"format": "uri",
|
|
2754
2807
|
"description": "http or https URL to deliver call status events"
|
|
2755
2808
|
},
|
|
2809
|
+
"transfer_after_bridge": {
|
|
2810
|
+
"anyOf": [
|
|
2811
|
+
{
|
|
2812
|
+
"type": "string"
|
|
2813
|
+
},
|
|
2814
|
+
{
|
|
2815
|
+
"$ref": "#/$defs/SWMLVar"
|
|
2816
|
+
}
|
|
2817
|
+
],
|
|
2818
|
+
"description": "SWML to execute after the bridge completes. This defines what should happen after the call is connected and the bridge ends.\nCan be either:\n- A URL (http or https) that returns a SWML document\n- An inline SWML document (as a JSON string)\n\n**Note:** This parameter is REQUIRED when connecting to a queue (when `to` starts with \"queue:\")"
|
|
2819
|
+
},
|
|
2756
2820
|
"call_state_events": {
|
|
2757
2821
|
"type": "array",
|
|
2758
2822
|
"items": {
|
|
@@ -2782,6 +2846,63 @@
|
|
|
2782
2846
|
},
|
|
2783
2847
|
"title": "ConnectDeviceSerialParallel object"
|
|
2784
2848
|
},
|
|
2849
|
+
"EnterQueueObject": {
|
|
2850
|
+
"type": "object",
|
|
2851
|
+
"properties": {
|
|
2852
|
+
"queue_name": {
|
|
2853
|
+
"type": "string",
|
|
2854
|
+
"description": "Name of the queue to enter."
|
|
2855
|
+
},
|
|
2856
|
+
"transfer_after_bridge": {
|
|
2857
|
+
"anyOf": [
|
|
2858
|
+
{
|
|
2859
|
+
"type": "string"
|
|
2860
|
+
},
|
|
2861
|
+
{
|
|
2862
|
+
"$ref": "#/$defs/SWMLVar"
|
|
2863
|
+
}
|
|
2864
|
+
],
|
|
2865
|
+
"description": "SWML to execute after the bridge completes. This defines what should happen after the call is connected to an agent and the bridge ends.\nCan be either:\n- A URL (http or https) that returns a SWML document\n- An inline SWML document (as a JSON string)"
|
|
2866
|
+
},
|
|
2867
|
+
"status_url": {
|
|
2868
|
+
"type": "string",
|
|
2869
|
+
"format": "uri",
|
|
2870
|
+
"description": "HTTP or HTTPS URL to deliver queue status events. Default not set"
|
|
2871
|
+
},
|
|
2872
|
+
"wait_url": {
|
|
2873
|
+
"anyOf": [
|
|
2874
|
+
{
|
|
2875
|
+
"type": "string",
|
|
2876
|
+
"format": "uri"
|
|
2877
|
+
},
|
|
2878
|
+
{
|
|
2879
|
+
"$ref": "#/$defs/SWMLVar"
|
|
2880
|
+
}
|
|
2881
|
+
],
|
|
2882
|
+
"description": "URL for media to play while waiting in the queue. Default hold music will be played if not set"
|
|
2883
|
+
},
|
|
2884
|
+
"wait_time": {
|
|
2885
|
+
"anyOf": [
|
|
2886
|
+
{
|
|
2887
|
+
"type": "integer"
|
|
2888
|
+
},
|
|
2889
|
+
{
|
|
2890
|
+
"$ref": "#/$defs/SWMLVar"
|
|
2891
|
+
}
|
|
2892
|
+
],
|
|
2893
|
+
"minimum": 1,
|
|
2894
|
+
"description": "Maximum time in seconds to wait in the queue before timeout. Default `3600`"
|
|
2895
|
+
}
|
|
2896
|
+
},
|
|
2897
|
+
"required": [
|
|
2898
|
+
"queue_name",
|
|
2899
|
+
"transfer_after_bridge"
|
|
2900
|
+
],
|
|
2901
|
+
"unevaluatedProperties": {
|
|
2902
|
+
"not": {}
|
|
2903
|
+
},
|
|
2904
|
+
"title": "EnterQueueObject object"
|
|
2905
|
+
},
|
|
2785
2906
|
"ExecuteSwitch": {
|
|
2786
2907
|
"type": "object",
|
|
2787
2908
|
"properties": {
|
|
@@ -8665,6 +8786,12 @@
|
|
|
8665
8786
|
{
|
|
8666
8787
|
"$ref": "#/$defs/SWMLAction"
|
|
8667
8788
|
},
|
|
8789
|
+
{
|
|
8790
|
+
"$ref": "#/$defs/ChangeContextAction"
|
|
8791
|
+
},
|
|
8792
|
+
{
|
|
8793
|
+
"$ref": "#/$defs/ChangeStepAction"
|
|
8794
|
+
},
|
|
8668
8795
|
{
|
|
8669
8796
|
"$ref": "#/$defs/ContextSwitchAction"
|
|
8670
8797
|
},
|
|
@@ -8860,6 +8987,40 @@
|
|
|
8860
8987
|
},
|
|
8861
8988
|
"title": "SWMLAction object"
|
|
8862
8989
|
},
|
|
8990
|
+
"ChangeContextAction": {
|
|
8991
|
+
"type": "object",
|
|
8992
|
+
"properties": {
|
|
8993
|
+
"change_context": {
|
|
8994
|
+
"type": "string",
|
|
8995
|
+
"description": "The name of the context to switch to. The context must be defined in the AI's prompt.contexts configuration.",
|
|
8996
|
+
"title": "change_context"
|
|
8997
|
+
}
|
|
8998
|
+
},
|
|
8999
|
+
"required": [
|
|
9000
|
+
"change_context"
|
|
9001
|
+
],
|
|
9002
|
+
"unevaluatedProperties": {
|
|
9003
|
+
"not": {}
|
|
9004
|
+
},
|
|
9005
|
+
"title": "ChangeContextAction object"
|
|
9006
|
+
},
|
|
9007
|
+
"ChangeStepAction": {
|
|
9008
|
+
"type": "object",
|
|
9009
|
+
"properties": {
|
|
9010
|
+
"change_step": {
|
|
9011
|
+
"type": "string",
|
|
9012
|
+
"description": "The name of the step to switch to. The step must be defined in the current context's steps array.",
|
|
9013
|
+
"title": "change_step"
|
|
9014
|
+
}
|
|
9015
|
+
},
|
|
9016
|
+
"required": [
|
|
9017
|
+
"change_step"
|
|
9018
|
+
],
|
|
9019
|
+
"unevaluatedProperties": {
|
|
9020
|
+
"not": {}
|
|
9021
|
+
},
|
|
9022
|
+
"title": "ChangeStepAction object"
|
|
9023
|
+
},
|
|
8863
9024
|
"ContextSwitchAction": {
|
|
8864
9025
|
"type": "object",
|
|
8865
9026
|
"properties": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
signalwire_agents/__init__.py,sha256=
|
|
1
|
+
signalwire_agents/__init__.py,sha256=jmSaIGrChMVPVEL9fpXNWuVI1vZ7tRHE10xmqUFf2Yo,5030
|
|
2
2
|
signalwire_agents/agent_server.py,sha256=5GPt6XekVxep9esZY9s4MG6sOR-VF_m53U25r3WoML4,30964
|
|
3
|
-
signalwire_agents/schema.json,sha256=
|
|
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
|
|
6
6
|
signalwire_agents/cli/build_search.py,sha256=wDuonVY9fcqspThRHmbArTuZLKsiStu-ozVExtqawA8,54937
|
|
@@ -130,9 +130,9 @@ signalwire_agents/utils/token_generators.py,sha256=4Mr7baQ_xR_hfJ72YxQRAT_GFa663
|
|
|
130
130
|
signalwire_agents/utils/validators.py,sha256=4Mr7baQ_xR_hfJ72YxQRAT_GFa663YjFX_PumJ35Xds,191
|
|
131
131
|
signalwire_agents/web/__init__.py,sha256=XE_pSTY9Aalzr7J7wqFth1Zr3cccQHPPcF5HWNrOpz8,383
|
|
132
132
|
signalwire_agents/web/web_service.py,sha256=a2PSHJgX1tlZr0Iz1A1UouZjXEePJAZL632evvLVM38,21071
|
|
133
|
-
signalwire_agents-1.0.
|
|
134
|
-
signalwire_agents-1.0.
|
|
135
|
-
signalwire_agents-1.0.
|
|
136
|
-
signalwire_agents-1.0.
|
|
137
|
-
signalwire_agents-1.0.
|
|
138
|
-
signalwire_agents-1.0.
|
|
133
|
+
signalwire_agents-1.0.3.dist-info/licenses/LICENSE,sha256=NYvAsB-rTcSvG9cqHt9EUHAWLiA9YzM4Qfz-mPdvDR0,1067
|
|
134
|
+
signalwire_agents-1.0.3.dist-info/METADATA,sha256=ZG4Qx0mRghFLUCyu0L6s8pCG8jv6BlTL6tJvlvVmQMY,41595
|
|
135
|
+
signalwire_agents-1.0.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
136
|
+
signalwire_agents-1.0.3.dist-info/entry_points.txt,sha256=ZDT65zfTO_YyDzi_hwQbCxIhrUfu_t8RpNXMMXlUPWI,144
|
|
137
|
+
signalwire_agents-1.0.3.dist-info/top_level.txt,sha256=kDGS6ZYv84K9P5Kyg9_S8P_pbUXoHkso0On_DB5bbWc,18
|
|
138
|
+
signalwire_agents-1.0.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|