Arguments
- resource_kind
Stable resource-kind identifier such as
"web","file", or"scientific.document".- locator
Opaque locator or URI. Tempest records it but does not resolve it outside a resource-kind adapter.
- title
Display title.
- media_type
IANA media type.
- resource_id
Optional stable resource identifier. By default it is derived from
resource_kindandlocator.- content
Optional inline canonical content.
- storage_ref
Optional opaque reference to externally stored content.
- origin_connection_id
Optional host connection reference identifier.
- scope_metadata
Serializable tenant or project scope metadata. Credential-like field names and values are rejected recursively.
- content_hash
Optional content checksum. Tempest computes one for inline content when omitted.
- retrieved_at
Retrieval timestamp.
- redaction
Serializable redaction metadata. Credential-like field names and values are rejected recursively.
- retention
Serializable retention metadata. Credential-like field names and values are rejected recursively.
- metadata
Serializable namespaced host metadata. Credential-like field names and values are rejected recursively.
Details
Resources identify provisional scientific evidence without requiring a public URL. The durable value may describe a web page, file, lab record, or database result used during research. Authenticated clients and credentials remain host-owned and are never stored here. This record is not a generic connection-management contract; its 0.2 role narrows to scientific source and context evidence in a research workspace.
Examples
workspace <- tempest_research_workspace()
resource <- tempest_resource(
resource_kind = "web",
locator = "https://example.org/study",
title = "Study",
media_type = "text/html",
content = "Study abstract"
)
workspace$upsert_retrieved_resource(resource)
