Reasoning Tools
Knowledge Tools
The KnowledgeTools
toolkit enables Agents to search, retrieve, and analyze information from knowledge bases. This toolkit integrates with AgentKnowledge
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
This approach significantly improves an Agent’s ability to provide accurate information by giving it tools to find, evaluate, and synthesize knowledge.
The toolkit includes the following tools:
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 the KnowledgeTools
toolkit:
The toolkit comes with default instructions and few-shot examples to help the Agent use the tools effectively. Here is how you can configure them: