convert_action(api_key: str, action: str) -> Tool
api_key
(str): Composio API key for authentication.action
(str): Name of the Composio action to convert.Tool
: The converted Galadriel Tool.convert_app(api_key: str, app: App) -> list[Tool]
api_key
(str): Composio API key for authentication.app
(App
): The Composio App to convert.list[Tool]
: List of converted Galadriel Tools.RetrieverTool(docs: List[Document], **kwargs)
docs
(List[Document]): List of documents to index for retrieval. Documents should be pre-processed and split if needed.**kwargs
: Additional arguments passed to the parent Tool
class.name
(str): Tool identifier for the agent system (set to “retriever”).description
(str): Description of the tool’s functionality.inputs
(dict): Schema for the required input parameters.output_type
(str): Type of data returned by the tool (set to “string”).retriever
(BM25Retriever
): The underlying BM25 retrieval engine.forward(query: str) -> str
query
(str): The search query string. This should be semantically close to your target documents. Use the affirmative form rather than a question.str
: A formatted string containing the retrieved documents, with each document prefixed by its index.AssertionError
: If the query is not a string.