Documentation
¶
Overview ¶
Package runctx is the public SDK facade over Harbor's internal/runtime/runctx package — the RunContext-population projections a run-loop driver applies between "task spawned" and "planner.Next" (RFC §3.6, §6.2). Alias-based re-exports only: no behavior lives here.
Index ¶
Constants ¶
const EventTypeInputDispositionResolved = internal.EventTypeInputDispositionResolved
EventTypeInputDispositionResolved is published once per input artifact when the disposition is resolved.
Variables ¶
var DispositionHints = internal.DispositionHints
DispositionHints converts a task's string-typed per-attachment hint map into the typed map InputArtifactOptions.Hints expects.
var ExtractAssistantAnswer = internal.ExtractAssistantAnswer
ExtractAssistantAnswer extracts the assistant answer string from a terminal Finish.
var NewRunContext = internal.NewRunContext
NewRunContext projects stack-derived subsystem handles into a fully-formed planner.RunContext, composing the same memory / skills / artifact / streaming projection helpers the run-loop drivers use. The shared factory a one-call runner or a headless RunSpec builder composes.
var ProjectMemoryBlocks = internal.ProjectMemoryBlocks
ProjectMemoryBlocks projects a memory LLMContextPatch into the planner's MemoryBlocks view.
var ProjectSkillsContext = internal.ProjectSkillsContext
ProjectSkillsContext projects ranked skills into the planner's skills-context entries.
var ProjectSkillsDirectory = internal.ProjectSkillsDirectory
ProjectSkillsDirectory projects the skills Directory view into the planner's skills-context entries (the canonical producer).
var ResolveInputArtifacts = internal.ResolveInputArtifacts
ResolveInputArtifacts resolves the run's input artifact refs into planner-visible InputArtifactViews, resolving each attachment's disposition (caller hint > agent policy > runtime default) via the planner-homed pure resolver.
var WithDispositionPolicy = internal.WithDispositionPolicy
WithDispositionPolicy supplies the per-agent disposition policy map (the middle precedence layer).
var WithInputArtifactDispositions = internal.WithInputArtifactDispositions
WithInputArtifactDispositions supplies the per-attachment disposition hint map (the top precedence layer).
var WithInputArtifacts = internal.WithInputArtifacts
WithInputArtifacts pre-resolves operator-uploaded artifact IDs into the run's first-turn multimodal inputs.
Functions ¶
This section is empty.
Types ¶
type InputArtifactOptions ¶ added in v1.4.0
type InputArtifactOptions = internal.InputArtifactOptions
InputArtifactOptions carries the disposition inputs (hints / policy / catalog / emit) to ResolveInputArtifacts. The zero value reproduces the prior default behaviour exactly.
type InputDispositionResolvedPayload ¶ added in v1.4.0
type InputDispositionResolvedPayload = internal.InputDispositionResolvedPayload
InputDispositionResolvedPayload is the `task.input_disposition.resolved` event payload.