add_evidence
Record supporting, contradicting, or sourced-from evidence for a memory, rejecting duplicate relations to keep memory provenance accurate.
Instructions
Record evidence for a memory. relation="supports"/"contradicts" links evidence_id → memory_id (a memory supporting or contradicting it); relation="sourced_from" records memory_id's external provenance via source (URL/document). Writes one relation and returns its relation_id; an identical relation is rejected rather than duplicated. Contradictions accelerate the contradicted memory's decay; superseded or archived evidence stops counting. Requires agent auth when the agent has a registered key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | External source: URL, document path, conversation reference (required for sourced_from). | |
| api_key | No | API key for agent authentication (required if agent has a registered key) | |
| agent_id | No | ID of the requesting agent | unknown |
| relation | Yes | Evidence relation: "supports" | "contradicts" | "sourced_from". supports/contradicts link two memories (`evidence_id` = the memory providing evidence); sourced_from records an external source text. | |
| memory_id | Yes | The memory this evidence statement is ABOUT, or that the subject memory supports/contradicts — see `relation` for direction. For supports/contradicts: the memory being supported/contradicted. For sourced_from: the memory whose provenance is recorded. | |
| confidence | No | Evidence confidence, 0.0-1.0 (default 0.8). | |
| evidence_id | No | The memory providing evidence (required for supports/contradicts). |