Skip to content

Commit

Permalink
Fix custom tool example (#201)
Browse files Browse the repository at this point in the history
* fixed readme example

* added requirements
  • Loading branch information
dillonalaird authored Aug 20, 2024
1 parent 955ef9e commit b5faa36
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/custom_tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ call out which tool you want to use. For example:
```python
import vision_agent as va

agent = va.agent.VisionAgent(verbosity=2)
agent = va.agent.VisionAgentCoder(verbosity=2)
agent(
"Can you use the 'template_match_' tool to find the location of pid_template.png in pid.png?",
media="pid.png",
Expand Down
2 changes: 2 additions & 0 deletions examples/custom_tools/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
torch
torchvision
2 changes: 1 addition & 1 deletion examples/custom_tools/run_custom_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def template_match(target_image: np.ndarray, template_image: np.ndarray) -> dict


if __name__ == "__main__":
agent = va.agent.VisionAgent(verbosity=2)
agent = va.agent.VisionAgentCoder(verbosity=2)
result = agent.chat_with_workflow(
[
{
Expand Down

0 comments on commit b5faa36

Please sign in to comment.