@agentium/harness and 1 from @agentium/harness/testing. This reference includes their full public declarations, including every configuration field and public method.
Start with the package quickstart. The runtime guide explains defaults and failure behavior. This reference targets @agentium/harness@4.0.0; see release and upgrade guidance.
Definitions and abilities
Compose definitions, implement abilities, and validate portable manifests.AbilityAbilityDefinitionAbilityDescriptiondefineAbilitydefineHarnessdescribeHarnessexportManifestextendHarnesshashManifestloadManifestAbilityBindingAbilityFactoryAbilitySelectionBoundHarnessHarnessContextBudgetHarnessContextEntryHarnessContextSourceHarnessDefaultsHarnessDefinitionHarnessDescriptionHarnessDiagnosticHarnessExtensionHarnessManifestHarnessMiddlewareJsonObjectJsonValueLocalAbilityUsePromptFragmentResolvedHarness
Presets and context
Built-in abilities, research presets, file context, and MCP resource connections.MCPResourceClientMCPResourceGrantMCPResourcesOptionsmcpResourcesBaseOptionsFileContextOptionsResearchOptionsSuppliedToolsOptionsTextContextOptionsbasefileContextresearchsuppliedToolstextContext
Runtime and run handles
Runtime construction, grants, budgets, execution services, results, and controls.ExecutionDriverHarnessBudgetsHarnessDriverOutputHarnessExecutionServicesHarnessGrantsHarnessRunRequestHarnessRuntimeConfigHarnessSendModeHarnessStartOptionsRunHandleHarnessBudgetErrorHarnessRuntimeHarnessUnsupportedError
Execution drivers
Adapt an Agent, Team, or Workflow and implement controlled execution.Controllers and policies
Step overrides, model roles, context projection, and completion decisions.ReflectionPolicyOptionsSummaryContextPolicyOptionsreflectionPolicysummaryContextPolicyCompletionDecisionCompletionPolicyContextPolicyContextProjectionModelRoleBindingStepControllerStepOverrides
Sessions and resources
Identity-scoped session leases, snapshots, stores, and resource ownership.HarnessIdentityHarnessSessionLeaseHarnessSessionSnapshotHarnessSessionStoreScopedResourceSessionResourceLeaseHarnessResourcePoolHarnessSessionConflictInMemoryHarnessSessionStore
Events and results
Versioned events, terminal results, replay cursors, and bounded event retention.HarnessEventHarnessEventPayloadHarnessReasonHarnessResultHarnessStatusHarnessEventGapErrorInMemoryHarnessEventStore
Runtime registries
Resolve versioned driver and policy references against host-approved implementations.HarnessRegistryEntryHarnessRegistryReferenceHarnessRuntimeBindingsHarnessRuntimeReferencesHarnessRuntimeRegistryresolveHarnessRuntime
Durable watches
Watch definitions, lifecycle methods, scheduler contracts, limits, and state.defineWatchdescribeWatchDurableWatchWatchIdentityWatchQuietHoursWatchLimitsWatchDefinitionWatchDefinitionInputWatchEventWatchSubscriptionWatchSourceBatchVerifiedWatchTriggerWatchSourceWatchScheduleKindWatchScheduleWatchSchedulerWatchOperationWatchAuthorizationWatchServicesWatchOutboxWatchState