AiFact
Type: Object
Represents a single, atomic piece of knowledge or memory that an AI agent can store and recall. In the complex world of print manufacturing, these 'facts' are the building blocks of intelligence. They could be anything from a customer's stated preference for a specific paper stock, a sensor reading indicating a press is running hot, or a learned heuristic that a particular job type is often delayed in the bindery. By categorizing, scoring for confidence, and scoping these facts (e.g., to a specific job or as general knowledge), the AI can build a rich, contextual understanding of the operational environment, enabling it to make smarter, data-driven decisions.
Fields
| Name | Type | Args | Description | Deprecated |
|---|---|---|---|---|
| agent | AiAgent! | |||
| agentId | ID! | |||
| category | String | The type of fact: observation, conclusion, context, instruction, or result | ||
| confidence | Float | Confidence level in this fact (0.0 = no confidence, 1.0 = certain) | ||
| content | String! | The factual information or memory content | ||
| createdAt | DateTime! | When the fact was recorded | ||
| execution | AiExecution | Optional link to specific execution run | ||
| executionId | ID | |||
| expiresAt | DateTime | When this fact should be considered stale | ||
| id | ID! | |||
| metadata | JsonString | Additional metadata about the fact | ||
| scope | String | Whether this fact persists across executions or is execution-specific | ||
| source | String | Where this fact came from (task_id, external source, etc.) | ||
| updatedAt | DateTime! | When the fact was last updated |