WikipediaQueryRunToolwikipediaapi
package to perform searches
against a specified language edition of Wikipedia and returns
up to top_k
page summaries.Name | Description |
---|---|
language | Type: str Default: ‘en’ |
top_k | Type: int Default: 3 |
verbose | Type: bool Default: False |
query
to MAX_QUERY_LENGTH before searching.Name | Description |
---|---|
query | Search term(s) to look up in Wikipedia. Type: str |
Type | Description |
---|---|
str | list[str] | list[str]: Each element is “Page: <title> Summary: <text>”. str: Error message if no results are found or on exception. Note: Automatically handles API exceptions and returns error strings for robust operation |
Name | Description |
---|---|
agent | The agent to which the tool will be registered. Type: ConversableAgent |
Name | Description |
---|---|
agent | The agent to which the tool will be registered. Type: ConversableAgent |
register_for_llm
and register_for_execution
with the same agent.Name | Description |
---|---|
agent | The agent to which the tool will be registered. Type: ConversableAgent |