KnowledgeTools toolkit enables Agents to search, retrieve, and analyze information from knowledge bases. This toolkit integrates with Knowledge and provides a structured workflow for finding and evaluating relevant information before responding to users.
The toolkit implements a “Think → Search → Analyze” cycle that allows an Agent to:
- Think through the problem and plan search queries
- Search the knowledge base for relevant information
- Analyze the results to determine if they are sufficient or if additional searches are needed
think: A scratchpad for planning, brainstorming keywords, and refining approaches. These thoughts remain internal to the Agent and are not shown to users.search: Executes queries against the knowledge base to retrieve relevant documents.analyze: Evaluates whether the returned documents are correct and sufficient, determining if further searches are needed.
Example
Here’s an example of how to use theKnowledgeTools toolkit: