signalwire-agents 0.1.42__py3-none-any.whl → 0.1.43__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.
@@ -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__ = "0.1.42"
21
+ __version__ = "0.1.43"
22
22
 
23
23
  # Import core classes for easier access
24
24
  from .core.agent_base import AgentBase
@@ -1003,6 +1003,19 @@ class AgentBase(
1003
1003
  ephemeral_agent._global_data = copy.deepcopy(self._global_data)
1004
1004
  ephemeral_agent._function_includes = copy.deepcopy(self._function_includes)
1005
1005
 
1006
+ # Deep copy LLM parameters
1007
+ ephemeral_agent._prompt_llm_params = copy.deepcopy(self._prompt_llm_params)
1008
+ ephemeral_agent._post_prompt_llm_params = copy.deepcopy(self._post_prompt_llm_params)
1009
+
1010
+ # Copy internal fillers if they exist
1011
+ if hasattr(self, '_internal_fillers'):
1012
+ ephemeral_agent._internal_fillers = copy.deepcopy(self._internal_fillers)
1013
+
1014
+ # Copy contexts builder state if it exists
1015
+ if hasattr(self, '_contexts_builder'):
1016
+ ephemeral_agent._contexts_builder = copy.deepcopy(self._contexts_builder)
1017
+ ephemeral_agent._contexts_defined = self._contexts_defined
1018
+
1006
1019
  # Deep copy the POM object if it exists to prevent sharing prompt sections
1007
1020
  if hasattr(self, 'pom') and self.pom:
1008
1021
  ephemeral_agent.pom = copy.deepcopy(self.pom)
@@ -1020,9 +1033,12 @@ class AgentBase(
1020
1033
 
1021
1034
  # Create new prompt manager for the ephemeral agent
1022
1035
  ephemeral_agent._prompt_manager = PromptManager(ephemeral_agent)
1023
- # Copy the prompt sections data
1036
+ # Copy ALL PromptManager state
1024
1037
  if hasattr(self._prompt_manager, '_sections'):
1025
1038
  ephemeral_agent._prompt_manager._sections = copy.deepcopy(self._prompt_manager._sections)
1039
+ ephemeral_agent._prompt_manager._prompt_text = copy.deepcopy(self._prompt_manager._prompt_text)
1040
+ ephemeral_agent._prompt_manager._post_prompt_text = copy.deepcopy(self._prompt_manager._post_prompt_text)
1041
+ ephemeral_agent._prompt_manager._contexts = copy.deepcopy(self._prompt_manager._contexts)
1026
1042
 
1027
1043
  # Create new tool registry for the ephemeral agent
1028
1044
  ephemeral_agent._tool_registry = ToolRegistry(ephemeral_agent)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: signalwire_agents
3
- Version: 0.1.42
3
+ Version: 0.1.43
4
4
  Summary: SignalWire AI Agents SDK
5
5
  Author-email: SignalWire Team <info@signalwire.com>
6
6
  License: MIT
@@ -1,4 +1,4 @@
1
- signalwire_agents/__init__.py,sha256=H0afPQQl6QgQGXDvxTjQ2PQiuiicZMTFQDD_saa8tP0,4923
1
+ signalwire_agents/__init__.py,sha256=JEGLCo_LLxcqdvVcd64XAfHEJ2pfoanrZ-AS_691Mqc,4923
2
2
  signalwire_agents/agent_server.py,sha256=x9HyWia8D3r6KMqY-Q4DtNVivfJWLTx8B-KzUI8okuA,26880
3
3
  signalwire_agents/schema.json,sha256=6-7ccbt39iM1CO36dOfvupRPfd0gnQ0XoAdyo-EFyjo,238042
4
4
  signalwire_agents/agents/bedrock.py,sha256=J582gooNtxtep4xdVOfyDzRtHp_XrurPMS93xf2Xod0,10836
@@ -24,7 +24,7 @@ signalwire_agents/cli/simulation/data_generation.py,sha256=pxa9aJ6XkI0O8yAIGvBTU
24
24
  signalwire_agents/cli/simulation/data_overrides.py,sha256=3_3pT6j-q2gRufPX2bZ1BrmY7u1IdloLooKAJil33vI,6319
25
25
  signalwire_agents/cli/simulation/mock_env.py,sha256=fvaR_xdLMm8AbpNUbTJOFG9THcti3Zds-0QNDbKMaYk,10249
26
26
  signalwire_agents/core/__init__.py,sha256=xjPq8DmUnWYUG28sd17n430VWPmMH9oZ9W14gYwG96g,806
27
- signalwire_agents/core/agent_base.py,sha256=X0DBGRfjX8QCq5rs-gadFvQV6nkmOv2gIEdqfpkpkv0,47645
27
+ signalwire_agents/core/agent_base.py,sha256=Wy1xAyJgquI4Cabss1lddoNonJzOYeo3VtY9suEFDFA,48634
28
28
  signalwire_agents/core/auth_handler.py,sha256=jXrof9WZ1W9qqlQT9WElcmSRafL2kG7207x5SqWN9MU,8481
29
29
  signalwire_agents/core/config_loader.py,sha256=rStVRRUaeMGrMc44ocr0diMQQARZhbKqwMqQ6kqUNos,8722
30
30
  signalwire_agents/core/contexts.py,sha256=g9FgOGMfGCUWlm57YZcv7CvOf-Ub9FdKZIOMu14ADfE,24428
@@ -126,9 +126,9 @@ signalwire_agents/utils/pom_utils.py,sha256=4Mr7baQ_xR_hfJ72YxQRAT_GFa663YjFX_Pu
126
126
  signalwire_agents/utils/schema_utils.py,sha256=i4okv_O9bUApwT_jJf4Yoij3bLCrGrW3DC-vzSy2RuY,16392
127
127
  signalwire_agents/utils/token_generators.py,sha256=4Mr7baQ_xR_hfJ72YxQRAT_GFa663YjFX_PumJ35Xds,191
128
128
  signalwire_agents/utils/validators.py,sha256=4Mr7baQ_xR_hfJ72YxQRAT_GFa663YjFX_PumJ35Xds,191
129
- signalwire_agents-0.1.42.dist-info/licenses/LICENSE,sha256=NYvAsB-rTcSvG9cqHt9EUHAWLiA9YzM4Qfz-mPdvDR0,1067
130
- signalwire_agents-0.1.42.dist-info/METADATA,sha256=omIyv0Kg-yFEZ6necZUSfGXixep0YWkvlkOiKwvoa8U,41281
131
- signalwire_agents-0.1.42.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
132
- signalwire_agents-0.1.42.dist-info/entry_points.txt,sha256=ZDT65zfTO_YyDzi_hwQbCxIhrUfu_t8RpNXMMXlUPWI,144
133
- signalwire_agents-0.1.42.dist-info/top_level.txt,sha256=kDGS6ZYv84K9P5Kyg9_S8P_pbUXoHkso0On_DB5bbWc,18
134
- signalwire_agents-0.1.42.dist-info/RECORD,,
129
+ signalwire_agents-0.1.43.dist-info/licenses/LICENSE,sha256=NYvAsB-rTcSvG9cqHt9EUHAWLiA9YzM4Qfz-mPdvDR0,1067
130
+ signalwire_agents-0.1.43.dist-info/METADATA,sha256=kgPeaomBUFGZXUo9UcFBL9oRYI6taPxbbgJjgKIzxcI,41281
131
+ signalwire_agents-0.1.43.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
132
+ signalwire_agents-0.1.43.dist-info/entry_points.txt,sha256=ZDT65zfTO_YyDzi_hwQbCxIhrUfu_t8RpNXMMXlUPWI,144
133
+ signalwire_agents-0.1.43.dist-info/top_level.txt,sha256=kDGS6ZYv84K9P5Kyg9_S8P_pbUXoHkso0On_DB5bbWc,18
134
+ signalwire_agents-0.1.43.dist-info/RECORD,,