Store procedure
store_procedureStore a reusable procedure: an ordered sequence of steps for a task you
expect to repeat, retrievable later with match_procedures. A name that
already exists is rejected; change an existing procedure with
update_procedure. For timeless facts use store_fact; for one-off
events use store_episode.
Args:
name: Unique, human-readable identifier, e.g. "publish_blog_post".
description: One-sentence summary of what the procedure achieves.
steps: Ordered list of step dicts with keys: order (int), action (str),
target (str, optional), parameters (dict, optional).
context_tags: Tags describing when the procedure applies, used by
`match_procedures`, e.g. ["blog", "publish"].
Example:
store_procedure(
name="publish_blog_post",
description="Publish a draft post to the company blog.",
steps=[
{"order": 1, "action": "run the publish command",
"parameters": {"slug": "<slug>"}},
{"order": 2, "action": "confirm the post URL in the output"},
],
context_tags=["blog", "publish"],
)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| steps | Yes | ||
| description | Yes | ||
| context_tags | No |