Class StatefulResourceStatus
java.lang.Object
uno.anahata.ai.context.stateful.StatefulResourceStatus
A data class that holds the complete status of a stateful resource,
comparing its state in the chat context versus its state on the physical disk.
This is used by the ResourceTracker to determine if a resource in
the context is valid, stale, or deleted, and to provide this information
to the model and UI.
- Author:
- Anahata
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal longThe last modified timestamp of the resource as recorded in the context.final longThe size of the resource as recorded in the context.final longThe current last modified timestamp of the resource on disk.final longThe current size of the resource on disk.final StringThe unique ID of the FunctionResponse Part that introduced this stateful resource into the context (messageId/partIndex).final StatefulResourceA transient reference to the actual resource object from the context.final StringThe unique identifier of the resource (e.g., absolute file path).final ResourceStatusThe calculated status comparing the context and disk states.final StringThe ID of the FunctionCall/FunctionResponse pair that introduced this stateful resource into the context. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
resourceId
The unique identifier of the resource (e.g., absolute file path). -
contextLastModified
public final long contextLastModifiedThe last modified timestamp of the resource as recorded in the context. -
contextSize
public final long contextSizeThe size of the resource as recorded in the context. -
diskLastModified
public final long diskLastModifiedThe current last modified timestamp of the resource on disk. -
diskSize
public final long diskSizeThe current size of the resource on disk. -
status
The calculated status comparing the context and disk states. -
resource
A transient reference to the actual resource object from the context. -
partId
The unique ID of the FunctionResponse Part that introduced this stateful resource into the context (messageId/partIndex). -
toolCallId
The ID of the FunctionCall/FunctionResponse pair that introduced this stateful resource into the context.
-
-
Constructor Details
-
StatefulResourceStatus
public StatefulResourceStatus()
-
