awslabs / awslabs/agentcore-samples

01-tutorials - [Bug]

Open
#638 0 comments 0 reactions 1 assignee Claimed by @vedashreevinay View on GitHub
01-tutorials 05-AgentCore-tools bug
Dominant language
Python
Stars
3.4k
Forks
1.3k
Avg merge
1d 22h
Merged PRs (30d)
30

Description

**In which component is this bug present?**

- [ ] 01-AgentCore-runtime
- [ ] 02-AgentCore-gateway
- [ ] 03-AgentCore-identity
- [ ] 04-AgentCore-memory
- [x] 05-AgentCore-tools
- [ ] 06-AgentCore-observability
- [ ] 07-AgentCore-E2E

If you are reporting multiple bugs, please create a separate issue for each. For documentation improvements, use the documentation improvement issue type.

**Bug Description**
A clear and concise description of the bug.
```
Issue 12: Notebook cell gives errors blocking progress

Where: amazon-bedrock-agentcore-workshop/05-AgentCore-tools/02-Agent-Core-browser-tool/01-browser-with-NovaAct/02_agentcore-browser-tool-live-view-with-nova-act.ipynb

Error received when running cell # 4 comprising of

!python live_view_with_nova_act.py --prompt "Search for macboks and extract the details of the first one" --starting-page "https://www.amazon.com/" --nova-act-key {NOVA_ACT_KEY}

Error details:

Traceback (most recent call last):
File "/home/sagemaker-user/amazon-bedrock-agentcore-workshop/05-AgentCore-tools/02-Agent-Core-browser-tool/01-browser-with-NovaAct/live_view_with_nova_act.py", line 2, in
from nova_act import NovaAct
File "/opt/conda/lib/python3.12/site-packages/nova_act/__init__.py", line 20, in
from nova_act.impl.extension import ExtensionActuator
File "/opt/conda/lib/python3.12/site-packages/nova_act/impl/extension.py", line 16, in
from nova_act.tools.browser.interface.browser import BrowserActuatorBase
File "/opt/conda/lib/python3.12/site-packages/nova_act/tools/browser/interface/browser.py", line 45, in
class BrowserActionProvider:
File "/opt/conda/lib/python3.12/site-packages/nova_act/tools/browser/interface/browser.py", line 75, in BrowserActionProvider
@tool(name="agentClick")
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.12/site-packages/strands/tools/decorator.py", line 757, in decorator
tool_spec = tool_meta.extract_metadata()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.12/site-packages/strands/tools/decorator.py", line 292, in extract_metadata
input_schema = self.input_model.model_json_schema()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.12/site-packages/pydantic/main.py", line 576, in model_json_schema
return model_json_schema(
^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.12/site-packages/pydantic/json_schema.py", line 2542, in model_json_schema
cls.__pydantic_core_schema__.rebuild()
File "/opt/conda/lib/python3.12/site-packages/pydantic/_internal/_mock_val_ser.py", line 67, in rebuild
raise PydanticUserError(self._error_message, code=self._code)
pydantic.errors.PydanticUserError: `Agent_clickTool` is not fully defined; you should define `ClickType`, then call `Agent_clickTool.model_rebuild()`.
For further information visit https://errors.pydantic.dev/2.12/u/class-not-fully-defined

```

**Screenshots**
If applicable, add screenshots to help explain your problem.
```
Please provide screenshots here.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.