aury-agent 0.0.5__py3-none-any.whl → 0.0.6__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.
@@ -106,10 +106,12 @@ async def execute_tool(agent: "ReactAgent", invocation: ToolInvocation) -> ToolR
106
106
  invocation.args = hook_result.modified_data
107
107
 
108
108
  # Create ToolContext
109
+ # Get block_id for this tool call
110
+ tool_block_id = agent._tool_call_blocks.get(invocation.tool_call_id, "")
109
111
  tool_ctx = ToolContext(
110
112
  session_id=agent.session.id,
111
113
  invocation_id=agent._current_invocation.id if agent._current_invocation else "",
112
- block_id="",
114
+ block_id=tool_block_id,
113
115
  call_id=invocation.tool_call_id,
114
116
  agent=agent.config.name,
115
117
  abort_signal=agent._abort,
@@ -171,15 +173,18 @@ async def execute_tool(agent: "ReactAgent", invocation: ToolInvocation) -> ToolR
171
173
  raise
172
174
 
173
175
  except Exception as e:
174
- error_msg = f"Tool execution error: {str(e)}"
176
+ import traceback
177
+ error_type = type(e).__name__
178
+ error_msg = f"Tool execution error ({error_type}): {e}"
179
+ stack_trace = traceback.format_exc()
175
180
  invocation.mark_result(error_msg, is_error=True)
176
181
  logger.error(
177
- f"Tool execution failed: {invocation.tool_name}",
182
+ f"Tool execution failed: {invocation.tool_name} - {error_type}: {e}\n{stack_trace}",
178
183
  extra={
179
184
  "invocation_id": agent._current_invocation.id if agent._current_invocation else "",
185
+ "error_type": error_type,
180
186
  "error": str(e),
181
187
  },
182
- exc_info=True,
183
188
  )
184
189
  return ToolResult.error(error_msg)
185
190
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aury-agent
3
- Version: 0.0.5
3
+ Version: 0.0.6
4
4
  Summary: Aury Agent Framework - React Agent and Workflow orchestration
5
5
  Author: Aury Team
6
6
  License: MIT
@@ -118,7 +118,7 @@ aury/agents/react/factory.py,sha256=vqQ90m39PMUDOONlPPXm2HPc0J7nua_fM7CBQ2jsCZM,
118
118
  aury/agents/react/pause.py,sha256=bcrhbuoJQUz7WxZSsKr5qjxQlDdpwai54ns_qio0du4,7306
119
119
  aury/agents/react/persistence.py,sha256=tIU7SVSm1dE1abMGqNXsBvYTtaluwJEsSeiIwYX_wuk,6050
120
120
  aury/agents/react/step.py,sha256=HVZdSumBiMRLafHAEG_VHAzqSYrltyOhQ1CeBwTtQOM,26784
121
- aury/agents/react/tools.py,sha256=FSVM5HbGDtf2qCQUybmHz9FzQx2TygEhRgxcQzEPZkQ,11434
121
+ aury/agents/react/tools.py,sha256=dxAaEVhfeHHVVNgDKY2SNQ510nawGF190h-FDPOdu9s,11736
122
122
  aury/agents/sandbox/__init__.py,sha256=adH29NhzpZUIFVCxhRUZxyANKpFauUjsPVd8iktUOaI,635
123
123
  aury/agents/sandbox/local.py,sha256=Dl-zJZ5FUz7WONtuze7MdpCDBjm9YZbjLIkGa9lYbwY,8328
124
124
  aury/agents/sandbox/remote.py,sha256=6NcYIs_thjyxa5LgIqwoPNsHYpT70DG6xGbjDYV6-X4,6444
@@ -149,7 +149,7 @@ aury/agents/workflow/expression.py,sha256=Hsx2jBigtt5zbJb9uK9pveipqMbBBUUAvlgYjB
149
149
  aury/agents/workflow/parser.py,sha256=mfiFZ_TtFq3IxAqPlTGcNkluiZ8ww16y3NYwbmbsrwE,6149
150
150
  aury/agents/workflow/state.py,sha256=AxTSo7P9b1DbWjGdQdzFY4_7m6CJGNFo7xkGK28SPZw,4234
151
151
  aury/agents/workflow/types.py,sha256=PVvjTQRgTObx5Mq_lXFogyLjGChOi5pUgcJwF5ZzVtg,2354
152
- aury_agent-0.0.5.dist-info/METADATA,sha256=REjXsoLbup_ewtWrju9cEg5kyjSnAFq8aGcoI2Idr_o,2114
153
- aury_agent-0.0.5.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
154
- aury_agent-0.0.5.dist-info/entry_points.txt,sha256=7EC5SMAKdC9HZLG8RfPhGno4OKOeSjaGsOWi1gOL-K8,56
155
- aury_agent-0.0.5.dist-info/RECORD,,
152
+ aury_agent-0.0.6.dist-info/METADATA,sha256=G-wgdW1wS_TJ55xwk6HHENQGb_2JiPGKNa8_pJ3VHtI,2114
153
+ aury_agent-0.0.6.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
154
+ aury_agent-0.0.6.dist-info/entry_points.txt,sha256=7EC5SMAKdC9HZLG8RfPhGno4OKOeSjaGsOWi1gOL-K8,56
155
+ aury_agent-0.0.6.dist-info/RECORD,,