Skip to main content
All Python modules · Import and compatibility guidance

Exports

CatalogSkill

Attach registry routing identity to source-owned skill metadata.
Fields (— means no declared default):

CatalogSkill.as_dict

Return the stable model-facing routing representation.

DecisionSkillSelector

Build bounded decisions from visible skill metadata before a managed model call.
Fields (— means no declared default):

FilesystemSkillSource

Serve compiler-validated skills from one agent-owned filesystem scope.

FilesystemSkillSource.list

Page a bounded local catalog in deterministic directory order.

FilesystemSkillSource.load

Read one static manifest after validating its pinned version.

FilesystemSkillSource.load_resource

Read one regular UTF-8 file without escaping its skill directory.

FilesystemSkillSource.descriptors

Expose compile-time routing metadata without loading instructions.

FilesystemSkillSource.routing_identity

Distinguish equal content owned by different agent directories.

SkillAccess

Public context.skills operations bound to the current agent identity.

SkillAccess.list

List metadata visible to this invocation without loading bodies.

SkillAccess.load

Load one selected skill through this invocation’s governed scope.

SkillAccess.load_resource

Load one resource through this invocation’s governed scope.

SkillCatalogPage

A bounded catalog merged from one or more independently paged sources.
Fields (— means no declared default):

SkillCatalogPage.as_dict

Return a JSON-safe catalog without including instruction bodies.

SkillContext

Revocable invocation identity passed to every dynamic skill source. Obtain this object from the owning Harnest API; its constructor includes runtime bindings.

SkillContext.task

Return current task text during automatic selection, never prior conversation turns.

SkillContext.state

Snapshot JSON application state only when the selection callback requests it.

SkillContext.framework

Return the framework active for this invocation.

SkillContext.agent_name

Return the exact root or subagent currently requesting skills.

SkillContext.parent_agent_name

Return the immediate parent identity when this is a subagent.

SkillContext.depth

Return the managed subagent nesting depth.

SkillContext.invocation_id

Return the current invocation correlation identity.

SkillContext.user_id

Return the authenticated runtime user identity.

SkillContext.claims

Return verified non-secret authentication claims when available.

SkillContext.session_id

Return the framework-neutral session identity.

SkillContext.metadata

Return immutable non-secret invocation metadata.

SkillContext.credentials

Return private credential resolution without copying secret values.

SkillContext.storage

Return invocation-scoped access to named application storage.

SkillContext.resource

Resolve an explicitly exported application resource.

SkillDescriptor

Bounded metadata that lets a model select a skill progressively.
Fields (— means no declared default):

SkillDocument

One versioned instruction document returned by a skill source.
Fields (— means no declared default):

SkillError

Base error for invalid or unavailable skill operations.

SkillNotFoundError

A requested source, skill, version, or resource is unavailable.

SkillPage

One source-owned page that never requires loading skill bodies.
Fields (— means no declared default):

SkillRegistry

Route invocation-scoped access to each compiled agent’s skill sources.

SkillRegistry.agent_names

Return compiled identities for diagnostics without exposing sources.

SkillRegistry.scope

Return one immutable compiled scope for runtime-safe augmentation.

SkillRegistry.access

Bind a registry view to one revocable invocation context.

SkillResource

One bounded UTF-8 supporting resource for a selected skill version.
Fields (— means no declared default):

SkillResourceNotSupported

A source deliberately does not expose supporting resources.

SkillScope

Compose named sources for one compiled agent or subagent identity.

SkillScope.source_names

Return stable source identities without exposing provider objects.

SkillScope.routing_identity

Compare repeated compiler composition without equating remote clients.

SkillScope.with_filesystem_directories

Return a scope whose filesystem route also owns new immutable skills.

SkillScope.list

List one source page or merge first pages without per-skill queries.

SkillScope.load

Load one document through an explicit or unambiguous source.

SkillScope.load_resource

Load one bounded resource through an exact source route.

SkillScope.selected_source

Resolve the route used by context access and model-tool shorthand.

SkillSelectionError

Selection failed without exposing source, callback, or provider payloads.

SkillSelectionFallback

Closed failure modes; ordinary discovery remains available by default.

SkillSource

Base class for bounded, authorization-aware progressive skill providers.

SkillSource.list

Return only descriptors visible to the active agent and principal.

SkillSource.load

Load one authorized versioned instruction document.

SkillSource.load_resource

Load one supporting resource when this source exposes them.

SkillSourceExecutionError

A source operation failed across the governed runtime boundary.

SkillValidationError

A source or skill value violates the portable contract.