fact_store
Edition: pro ragraf_fact_store
Storing a fact with a key, a version and a lifetime; a second live record for the same key is refused
Parameters
| Name | Type | Default |
|---|---|---|
| subject | str | '' |
| predicate | str | '' |
| value | str | '' |
| namespace | str | 'default' |
| confidence | float | 1.0 |
| ttl_days | int | 0 |
| tags | str | '' |
| path | str | '' |
| task | str | '' |
Call example
ragraf -p config/ragraf.yaml query fact_store
Angle brackets mark a required parameter; defaults may be omitted.
What it returns
The answer is assembled by the operation and described by the envelope.
When it refuses
An empty result is exit code 0 with found=false, not an error. Code 3 is returned only when the operation cannot run right now: for example slice when capability is not full. The reason is always named in the note field.