semantic_cache_embedding_lookup
Match user prompts against cached vector embeddings to retrieve similar answers within a strict cosine threshold, reducing LLM token usage.
Instructions
Vector similarity cache lookup matching incoming user prompts against cached answers within a strict cosine distance threshold to save LLM tokens. (0.035 USDC on Base L2)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"payload": "<payload>"
},
"name": "semantic_cache_embedding_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | Input parameters or JSON string payload for the tool execution | |
| paymentSignature | No | Base L2 USDC micropayment signature or transaction hash for x402 settlement |