Skip to main content

Module resources

Module resources 

Source
Available on crate feature managed-agents-preview only.
Expand description

Session resources: file / github_repository / memory_store mounts.

Resources are attached to a session at creation time (via CreateSessionRequest::resources) or added afterwards via the Resources sub-namespace. Each resource has a server-assigned ID (sesrsc_...) used for update and delete operations.

Three known resource kinds are typed below; an unknown kind on the wire deserializes into SessionResource::Other preserving the raw JSON.

Structs§

FileResource
type: "file" resource.
GitHubRepositoryResource
type: "github_repository" resource.
MemoryStoreResource
type: "memory_store" resource.
Resources
Namespace handle for resource operations on a single session.
UpdateResourceRequest
Patch for an existing session resource. Currently only the github_repository’s authorization_token is mutable.

Enums§

MemoryStoreAccess
Access mode for a MemoryStoreResource.
RepositoryCheckout
What ref to check out for a GitHubRepositoryResource. Tagged union of branch (by name) or commit (by SHA).
SessionResource
One resource mounted into a session container.