Skip to content
RAGRAF

ragraf_fact_replace

Edition: pro Capability: memory-facts Operation page: fact_replace

What it does

Replacing a fact's value: a new version, the previous one kept in history with its reason

What problem it solves

Replaces an outdated fact with a new one, keeping the old record in history.

How to call it

ragraf_fact_replace()
ragraf -p config/ragraf.yaml query fact_replace

The ellipsis stands for a value the agent supplies; optional parameters can be omitted.

Parameters

Name Type Default
fact_idstr''
valuestr''
reasonstr''
confidencefloat | NoneNone
ttl_daysint | NoneNone

What it returns

The answer is assembled by the operation and described by the envelope.