Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update agents.md #2070

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class RetrieverTool(Tool):
}
output_type = "text"

def __init__(self, vectordb: VectorStore, all_sources: str, **kwargs):
def __init__(self, vectordb: VectorStore, all_sources: list[str], **kwargs):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, the comment in L191 says it's a string representation of a list, but both that and a list should work. cc @aymeric-roucher to use whichever one he thinks it's best.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both List[str] and str should work, so this line could be Union[str, List[str]]!

super().__init__(**kwargs)
self.vectordb = vectordb
self.inputs["source"]["description"] = (
Expand Down Expand Up @@ -450,4 +450,4 @@ We will keep improving this package in the coming months. We have already identi

👉 **Go try out transformers agents!** We’re looking forward to receiving your feedback and your ideas.

Let’s fill the top of the leaderboard with more open-source models! 🚀
Let’s fill the top of the leaderboard with more open-source models! 🚀