ralphx 0.4.0__py3-none-any.whl → 0.4.1__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.
ralphx/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """RalphX - Generic agent loop orchestration system."""
2
2
 
3
- __version__ = "0.4.0"
3
+ __version__ = "0.4.1"
4
4
  __author__ = "Jack"
5
5
 
6
6
  # Package metadata
ralphx/adapters/base.py CHANGED
@@ -15,6 +15,8 @@ class AdapterEvent(str, Enum):
15
15
  TEXT = "text" # Text output from model
16
16
  TOOL_USE = "tool_use" # Model is using a tool
17
17
  TOOL_RESULT = "tool_result" # Tool returned a result
18
+ THINKING = "thinking" # Model's reasoning/thinking
19
+ USAGE = "usage" # Token usage data
18
20
  ERROR = "error" # Error occurred
19
21
  COMPLETE = "complete" # Execution completed
20
22
 
@@ -37,6 +39,12 @@ class StreamEvent:
37
39
  # Tool result for TOOL_RESULT events
38
40
  tool_result: Optional[str] = None
39
41
 
42
+ # Thinking content for THINKING events
43
+ thinking: Optional[str] = None
44
+
45
+ # Token usage data for USAGE events
46
+ usage: Optional[dict] = None
47
+
40
48
  # Error details for ERROR events
41
49
  error_message: Optional[str] = None
42
50
  error_code: Optional[str] = None