Skip to content

@Tool decorator not working #26150

Closed Answered by eyurtsev
YogeshSaini85 asked this question in Q&A
Discussion options

You must be logged in to vote

The tool decorator is a lower case tool as opposed to the Tool class

from langchain_core.tools import tool

@tool
def foo():

Replies: 6 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dosubot
Comment options

Comment options

You must be logged in to vote
1 reply
@dosubot
Comment options

Comment options

You must be logged in to vote
1 reply
@YogeshSaini85
Comment options

Answer selected by YogeshSaini85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants