signalwire-agents 0.1.11__py3-none-any.whl → 0.1.13__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 +5 -1
- signalwire_agents/agent_server.py +222 -13
- signalwire_agents/cli/build_search.py +457 -0
- signalwire_agents/cli/test_swaig.py +177 -113
- signalwire_agents/core/agent_base.py +1 -3
- signalwire_agents/core/logging_config.py +232 -0
- signalwire_agents/core/swaig_function.py +2 -3
- signalwire_agents/core/swml_renderer.py +43 -28
- signalwire_agents/search/__init__.py +131 -0
- signalwire_agents/search/document_processor.py +764 -0
- signalwire_agents/search/index_builder.py +534 -0
- signalwire_agents/search/query_processor.py +371 -0
- signalwire_agents/search/search_engine.py +383 -0
- signalwire_agents/search/search_service.py +251 -0
- signalwire_agents/skills/native_vector_search/__init__.py +1 -0
- signalwire_agents/skills/native_vector_search/skill.py +352 -0
- signalwire_agents/skills/registry.py +2 -15
- signalwire_agents/utils/__init__.py +13 -1
- {signalwire_agents-0.1.11.dist-info → signalwire_agents-0.1.13.dist-info}/METADATA +110 -3
- {signalwire_agents-0.1.11.dist-info → signalwire_agents-0.1.13.dist-info}/RECORD +25 -16
- {signalwire_agents-0.1.11.dist-info → signalwire_agents-0.1.13.dist-info}/entry_points.txt +1 -0
- signalwire_agents/utils/serverless.py +0 -38
- {signalwire_agents-0.1.11.data → signalwire_agents-0.1.13.data}/data/schema.json +0 -0
- {signalwire_agents-0.1.11.dist-info → signalwire_agents-0.1.13.dist-info}/WHEEL +0 -0
- {signalwire_agents-0.1.11.dist-info → signalwire_agents-0.1.13.dist-info}/licenses/LICENSE +0 -0
- {signalwire_agents-0.1.11.dist-info → signalwire_agents-0.1.13.dist-info}/top_level.txt +0 -0
@@ -1,38 +0,0 @@
|
|
1
|
-
#!/usr/bin/env python3
|
2
|
-
"""
|
3
|
-
Copyright (c) 2025 SignalWire
|
4
|
-
|
5
|
-
This file is part of the SignalWire AI Agents SDK.
|
6
|
-
|
7
|
-
Licensed under the MIT License.
|
8
|
-
See LICENSE file in the project root for full license information.
|
9
|
-
"""
|
10
|
-
|
11
|
-
import os
|
12
|
-
|
13
|
-
def get_execution_mode() -> str:
|
14
|
-
"""
|
15
|
-
Detect the current execution environment.
|
16
|
-
|
17
|
-
Returns:
|
18
|
-
str: One of 'cgi', 'lambda', 'cloud_function', 'azure_function', or 'server'
|
19
|
-
"""
|
20
|
-
if os.getenv('GATEWAY_INTERFACE'):
|
21
|
-
return 'cgi'
|
22
|
-
elif os.getenv('AWS_LAMBDA_FUNCTION_NAME'):
|
23
|
-
return 'lambda'
|
24
|
-
elif os.getenv('GOOGLE_CLOUD_PROJECT'):
|
25
|
-
return 'cloud_function'
|
26
|
-
elif os.getenv('AZURE_FUNCTIONS_ENVIRONMENT'):
|
27
|
-
return 'azure_function'
|
28
|
-
else:
|
29
|
-
return 'server'
|
30
|
-
|
31
|
-
def is_serverless_mode() -> bool:
|
32
|
-
"""
|
33
|
-
Check if running in any serverless environment.
|
34
|
-
|
35
|
-
Returns:
|
36
|
-
bool: True if in serverless mode, False if in server mode
|
37
|
-
"""
|
38
|
-
return get_execution_mode() != 'server'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|