soe-ai 0.2.0b1__py3-none-any.whl → 0.2.0b2__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.
@@ -5,6 +5,8 @@ Allows agents to write context fields dynamically.
5
5
 
6
6
  from typing import Any, Dict
7
7
 
8
+ from ..lib.context_fields import set_field
9
+
8
10
 
9
11
  def create_soe_update_context_tool(backends, execution_id: str, tools_registry=None):
10
12
  """
@@ -41,9 +43,10 @@ def create_soe_update_context_tool(backends, execution_id: str, tools_registry=N
41
43
  if not filtered_updates:
42
44
  return {"status": "no valid updates (operational fields cannot be updated)"}
43
45
 
44
- # Get current context and update
46
+ # Get current context and update using set_field for proper list wrapping
45
47
  context = backends.context.get_context(execution_id)
46
- context.update(filtered_updates)
48
+ for field, value in filtered_updates.items():
49
+ set_field(context, field, value)
47
50
  backends.context.save_context(execution_id, context)
48
51
 
49
52
  return {
soe/docs/index.md CHANGED
@@ -81,10 +81,12 @@ Built-in tools enable granular runtime modifications:
81
81
 
82
82
  | Built-in | Description |
83
83
  |----------|-------------|
84
- | [explore_docs](builtins/explore_docs.md) | Make SOE self-aware by exploring its documentation |
84
+ | [soe_explore_docs](builtins/soe_explore_docs.md) | Make SOE self-aware by exploring its documentation |
85
85
  | [workflows](builtins/workflows.md) | Query, inject, and modify workflows at runtime |
86
86
  | [context](builtins/context.md) | Read, update, and copy execution context |
87
87
  | [tools](builtins/tools.md) | Discover and dynamically call registered tools |
88
+ | [identity](builtins/identity.md) | Query, inject, and remove identity definitions |
89
+ | [context_schema](builtins/context_schema.md) | Query, inject, and remove context schema fields |
88
90
 
89
91
  ---
90
92