Skip to content

Commit df7c327

Browse files
authored
Update @tool to return an AgentTool that also acts as a function (#258)
Right now when you decorate a function you get back another function that mimics the behavior of a python module. Going forward, we're discussing adding helper/utility methods for AgentTool and in anticipatation of those changes return an AgentTool implementation that also acts like the original function. Co-authored-by: Mackenzie Zastrow <[email protected]>
1 parent 34b1569 commit df7c327

File tree

9 files changed

+465
-229
lines changed

9 files changed

+465
-229
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ test-integ = [
192192
prepare = [
193193
"hatch fmt --linter",
194194
"hatch fmt --formatter",
195+
"hatch run test-lint",
195196
"hatch test --all"
196197
]
197198
test-a2a = [

0 commit comments

Comments
 (0)