kdeps-components-memory_query
v1.1.1kdeps kdeps-component: memory_query
set components / shelf workflow
PurposeRun a relational memory query through the kdeps API
LLM context: ~80 tokens when loaded (prompt or tool definition)
Where it runs
Part of the components set, used in workflow and agent mode. Ready-made workflow steps (sql, browser, email, git, ocr...) a resource calls by name; in agent mode they are also tools.
- a resource names a component (or the model calls it as a tool)
- the component's own resources runcomponents/memory_query
- its output goes back to the caller
Loaded by: kdeps (agent loop), /settings, kdeps validate, kdeps run, kdeps bundle package, kdeps env, kdeps export k8s, kdeps test
In the code: kdeps (agent loop)yaml.(*Parser).ParseWorkflowyaml.(*Parser).loadAssetComponents
Install
A kdeps asset: installed with the first-run profile that includes its set, or the first time a command needs it, and updated without a new release.
Also installs what it requires, when missing or older: schemas/v1, tools/memory_query.
Pin a version with kdeps install components/memory_query@<version>.
Contents
component.yaml
apiVersion: kdeps.io/v1
kind: Component
metadata:
name: memory_query
description: Run a relational memory query through the kdeps API
version: "1.1.1"
interface:
inputs:
- name: query
type: string
required: true
description: expr-lang query over memory, tool_calls, and tasks
- name: limit
type: integer
default: 50
description: Max rows returned when the result is a relation (hard cap 500)
# body is the JSON result, or the handler error. The HTTP envelope stays inside the call.
output: "{{ output('call').body }}"
resources:
- actionId: call
name: Query memory
httpClient:
method: POST
url: http://kdeps.api/apis/tools.kdeps.io/v1/tools/memory_query/call
headers:
Content-Type: application/json
failOnError: true
timeout: 30s
data:
query: "{{ get('memory_query.query') }}"
limit: "{{ get('memory_query.limit') }}"
requires:
schemas/v1: ""
tools/memory_query: ""
version: 1.1.1
requires:
schemas/v1: ""
tools/memory_query: ""
files:
component.yaml: |
apiVersion: kdeps.io/v1
kind: Component
metadata:
name: memory_query
description: Run a relational memory query through the kdeps API
version: "1.1.1"
interface:
inputs:
- name: query
type: string
required: true
description: expr-lang query over memory, tool_calls, and tasks
- name: limit
type: integer
default: 50
description: Max rows returned when the result is a relation (hard cap 500)
# body is the JSON result, or the handler error. The HTTP envelope stays inside the call.
output: "{{ output('call').body }}"
resources:
- actionId: call
name: Query memory
httpClient:
method: POST
url: http://kdeps.api/apis/tools.kdeps.io/v1/tools/memory_query/call
headers:
Content-Type: application/json
failOnError: true
timeout: 30s
data:
query: "{{ get('memory_query.query') }}"
limit: "{{ get('memory_query.limit') }}"
Versions
| Version | Published | Status |
|---|---|---|
| 1.1.1 | 10/21/2026 | active |
| 1.1.0 | 10/21/2026 | active |
| 1.0.0 | 10/20/2026 | active |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 1.1.1
- Published
- 10/20/2026