Interface: Annotations
Defined in: packages/core/src/domain/Annotations.ts:23
Resource Annotations — audience, priority, and freshness metadata.
Used on Resource instances to provide hints about who should see the resource and how important it is.
Example
typescript
import { createAnnotations, Role } from '@vinkius-core/mcp-fusion';
const annotations = createAnnotations({
audience: [Role.ASSISTANT],
priority: 0.8,
lastModified: '2025-01-15T10:30:00Z',
});See
- Resource for usage on resources
- createAnnotations for the factory function
Properties
audience?
ts
readonly optional audience: readonly Role[];Defined in: packages/core/src/domain/Annotations.ts:25
Target audience roles for this resource
lastModified?
ts
readonly optional lastModified: string;Defined in: packages/core/src/domain/Annotations.ts:29
ISO 8601 timestamp of last modification
priority?
ts
readonly optional priority: number;Defined in: packages/core/src/domain/Annotations.ts:27
Priority weight (0.0 = lowest, 1.0 = highest)