Skip to content
SolidRusT.ai

Agent Tools

The AI agent has access to six built-in tools for searching the knowledge base, storing facts, and checking system health.

GET https://api.solidrust.ai/v1/agent/tools
Terminal window
curl "https://api.solidrust.ai/v1/agent/tools" \
-H "Authorization: Bearer YOUR_API_KEY"
import requests
API_KEY = "YOUR_API_KEY"
BASE_URL = "https://api.solidrust.ai"
def list_tools() -> dict:
response = requests.get(
f"{BASE_URL}/v1/agent/tools",
headers={"Authorization": f"Bearer {API_KEY}"},
)
return response.json()
tools = list_tools()
print(f"Agent has {tools['count']} tools:\n")
for tool in tools["tools"]:
print(f"- {tool['name']}: {tool['description']}")
print(f" Params: {list(tool['parameters'].get('properties', {}).keys())}\n")
{
"tools": [
{
"name": "SemanticSearchTool",
"description": "Search the knowledge base using semantic similarity",
"parameters": { "type": "object", "properties": { "query": { "type": "string", "description": "..." }, ... } }
}
],
"count": 6
}

Search the knowledge base using vector similarity. Best for conceptual and “how to” queries.

ParameterTypeRequiredDefaultDescription
querystring✅ YesNatural language search query
limitintegerNo10Maximum results (1–50)
min_scorefloatNo0.5Minimum similarity score (0.0–1.0)
sourcesstring[]NoallFilter by source names

When the agent uses it: Questions about concepts, procedures, documentation queries.


Query entity relationships in the Neo4j knowledge graph.

ParameterTypeRequiredDefaultDescription
entitystring✅ YesEntity name to query
depthintegerNo1Traversal depth (1–5)
relationship_typesstring[]NoallFilter by relationship types
directionstringNobothoutgoing, incoming, or both

When the agent uses it: Questions about relationships between concepts, entity exploration.


Combined semantic + graph search with entity extraction and configurable weighting.

ParameterTypeRequiredDefaultDescription
querystring✅ YesSearch query
semantic_weightfloatNo0.7Weight for semantic results (0.0–1.0)
graph_weightfloatNo0.3Weight for graph results (0.0–1.0)
entity_booststring[]NoEntity names to boost
limitintegerNo10Maximum results (1–50)

When the agent uses it: Complex queries needing both strategies, comprehensive research.


Search companion memory across all stores: vector, keyword, graph, and knowledge base.

ParameterTypeRequiredDefaultDescription
companion_idstringNohermesCompanion identifier
querystring✅ YesWhat to search for in memory
max_resultsintegerNo10Maximum results (1–50)
search_knowledge_basebooleanNotrueAlso search the knowledge base

When the agent uses it: Questions about past conversations, user preferences, stored facts.


Store a fact or memory for future recall. Facts persist across conversations.

ParameterTypeRequiredDefaultDescription
companion_idstringNohermesCompanion identifier
contentstring✅ YesMemory content (clear factual statement)
importanceintegerNo5Importance score 1–10
tagsstring[]No[]Categorization tags
sourcestringNoagentOrigin: agent, conversation, compaction, manual

When the agent uses it: When it learns something important that should persist.


Check the health and population of the memory system.

ParameterTypeRequiredDefaultDescription
companion_idstringNohermesCompanion identifier

When the agent uses it: Verifying memory system health, understanding what’s stored.


You can call tools directly through the respective API endpoints:

ToolEquivalent Direct Endpoint
SemanticSearchToolPOST /data/v1/query/semantic
KnowledgeGraphToolPOST /data/v1/query/knowledge-graph
HybridSearchToolPOST /data/v1/query/hybrid
MemorySearchToolPOST /data/v1/memory/recall (internal)
MemoryStoreToolPOST /data/v1/memory/store (internal)
MemoryStatsToolGET /data/v1/memory/stats (internal)