Skip to content

@codesoul-co/hypha-kernel / index

Using this module

Aggregates the public entrypoint exports for @codesoul-co/hypha-kernel; applications import these symbols from the package entrypoint instead of internal file paths.

Import from the package entrypoint

ts
import {
  BasicReActAgentRuntime,
  DefaultAgenticReasoner,
  DefaultContextBuilder,
  DefaultThinkingPlanner,
  DefaultVerifier,
  InMemoryReActContinuationCheckpointStore,
  MemoryContextBuilder,
  ReActAgentRunner,
} from '@codesoul-co/hypha-kernel';

import type {
  AgenticReasoner,
  AgenticReasonerInput,
  AgenticReasoningDecision,
  BasicReActAgentRuntimeOptions,
  BuiltAgentContext,
  ContextBudget,
  ContextBuilder,
  ContextBuildInput,
} from '@codesoul-co/hypha-kernel';

// The complete export list is documented below.

Usage patterns

  • Use the 44 type/interface exports as static contracts in application code, adapters, or tests. Import them with import type; they do not exist at runtime.
  • The module exposes 12 classes as constructable runtime implementations. Each symbol entry lists its constructor and public methods.
  • The module exposes 8 functions as direct operation entrypoints. Every overload, required/optional parameter, and return type is documented below.
  • The 21 constant/enum exports provide stable values, schemas, definitions, or defaults. Reuse these exports instead of copying internal values into an application.

Runtime validation example

ts
import { agenticReasoningModeSchema } from '@codesoul-co/hypha-kernel';

declare function loadExternalInput(): unknown;
const input: unknown = loadExternalInput();
const parsed = agenticReasoningModeSchema.parse(input);

Parse untrusted configuration, network, or persisted input with the runtime schema before passing it to functions or classes that expect a validated contract.

Public exports

SymbolKindSignatureDescription
BasicReActAgentRuntimeclassnew BasicReActAgentRuntime(options?: BasicReActAgentRuntimeOptions): BasicReActAgentRuntimeBasic ReAct Agent Runtime class with 4 public constructor or member entries; its exact declarations are listed below.
DefaultAgenticReasonerclassnew DefaultAgenticReasoner(now?: () => string): DefaultAgenticReasonerDefault Agentic Reasoner class with 2 public constructor or member entries; its exact declarations are listed below.
DefaultContextBuilderclassnew DefaultContextBuilder(): DefaultContextBuilderDefault Context Builder class with 2 public constructor or member entries; its exact declarations are listed below.
DefaultThinkingPlannerclassnew DefaultThinkingPlanner(now?: () => string): DefaultThinkingPlannerDefault Thinking Planner class with 2 public constructor or member entries; its exact declarations are listed below.
DefaultVerifierclassnew DefaultVerifier(): DefaultVerifierDefault Verifier class with 2 public constructor or member entries; its exact declarations are listed below.
InMemoryReActContinuationCheckpointStoreclassnew InMemoryReActContinuationCheckpointStore(options?: InMemoryReActContinuationCheckpointStoreOptions): InMemoryReActContinuationCheckpointStoreIn Memory ReAct Continuation Checkpoint Store class with 4 public constructor or member entries; its exact declarations are listed below.
MemoryContextBuilderclassnew MemoryContextBuilder(options: MemoryContextBuilderOptions): MemoryContextBuilderMemory Context Builder class with 2 public constructor or member entries; its exact declarations are listed below.
ReActAgentRunnerclassnew ReActAgentRunner(options: ReActAgentRunnerOptions): ReActAgentRunnerReAct Agent Runner class with 2 public constructor or member entries; its exact declarations are listed below.
ReActRunnerclassnew ReActRunner(runtime: ReActAgentRuntime, options: ReActRunnerOptions): ReActRunnerReAct Runner class with 2 public constructor or member entries; its exact declarations are listed below.
ReasoningContextBuilderclassnew ReasoningContextBuilder(options?: ReasoningContextBuilderOptions): ReasoningContextBuilderReasoning Context Builder class with 2 public constructor or member entries; its exact declarations are listed below.
SkillContextBuilderclassnew SkillContextBuilder(options: SkillContextBuilderOptions): SkillContextBuilderSkill Context Builder class with 2 public constructor or member entries; its exact declarations are listed below.
ToolRunnerActivityAdapterclassnew ToolRunnerActivityAdapter(runner: ToolRunner): ToolRunnerActivityAdapterTool Runner Activity Adapter class with 3 public constructor or member entries; its exact declarations are listed below.
agenticReasoningModeSchemaconstantconst agenticReasoningModeSchema: z.ZodEnum<["react", "fsm_react", "tot", "critique"]>Runtime schema for Agentic Reasoning Mode.
kernelSpecDefinitionsconstantconst kernelSpecDefinitions: readonly [SpecSchemaDefinition<ReActAgentSpec>, SpecSchemaDefinition<ReasoningConfig>]Kernel Spec Definitions constant exported by the index module.
kernelSpecJsonSchemasconstantconst kernelSpecJsonSchemas: Record<string, JsonSchema>Kernel Spec JSON Schemas constant exported by the index module.
REACT_PHASE_ORDERconstantconst REACT_PHASE_ORDER: ReActPhase[]REACT PHASE ORDER constant exported by the index module.
REACT_SUSPENSION_REASONSconstantconst REACT_SUSPENSION_REASONS: readonly ["quantum_exhausted", "iteration_budget_exhausted", "model_call_budget_exhausted", "tool_call_budget_exhausted", "token_budget_exhausted", "non_progress", "deadline_exceeded"]REACT SUSPENSION REASONS constant exported by the index module.
reActActionSchemaconstantconst reActActionSchema: z.ZodEffects<z.ZodObject<{ type: z.ZodEnum<["tool", "model", "finish", "human_review"]>; toolCallId: z.ZodOptional<z.ZodString>; target: z.ZodOptional<z.ZodString>; input: z.ZodOptional<z.ZodEffects<z.ZodUnknown, unknown, unknown>>; reason: z.ZodOptional<z.ZodString>; }, "strict", z.ZodTypeAny, { type: "human_review" | "tool" | "model" | "finish"; reason?: string | undefined; toolCallId?: ...Runtime schema for Re Act Action.
reactAgentSpecDefinitionconstantconst reactAgentSpecDefinition: SpecSchemaDefinition<ReActAgentSpec>Runtime validation entrypoint for the React Agent spec, combining its parser, example and JSON Schema.
reactAgentSpecExampleconstantconst reactAgentSpecExample: ReActAgentSpecValid example value for React Agent Spec.
reactAgentSpecJsonSchemaconstantconst reactAgentSpecJsonSchema: JsonSchemaJSON Schema for React Agent Spec.
reactAgentSpecSchemaconstantconst reactAgentSpecSchema: z.ZodObject<{ id: z.ZodString; version: z.ZodString; description: z.ZodOptional<z.ZodString>; owner: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; } & { name: z.ZodString; modelAlias: z.ZodString; systemInstructions: z.ZodOptional<z.ZodString>; promptRefs: z.ZodOptional<z.Zo...Runtime schema for React Agent Spec.
reActContinuationCheckpointJsonSchemaconstantconst reActContinuationCheckpointJsonSchema: JsonSchemaJSON Schema for Re Act Continuation Checkpoint.
reActContinuationCheckpointSchemaconstantconst reActContinuationCheckpointSchema: z.ZodEffects<z.ZodObject<{ version: z.ZodLiteral<"1.0.0">; runId: z.ZodString; stepId: z.ZodString; scopeHash: z.ZodString; agentRef: z.ZodObject<{ id: z.ZodString; version: z.ZodString; }, "strict", z.ZodTypeAny, { version: string; id: string; }, { version: string; id: string; }>; nextPhase: z.ZodEnum<["reason", "act"]>; messages: z.ZodArray<z.ZodObject<{ role: z.ZodEnum<[...Runtime schema for Re Act Continuation Checkpoint.
reActExecutionBudgetJsonSchemaconstantconst reActExecutionBudgetJsonSchema: JsonSchemaJSON Schema for Re Act Execution Budget.
reActExecutionBudgetSchemaconstantconst reActExecutionBudgetSchema: z.ZodObject<{ maxIterations: z.ZodNumber; maxModelCalls: z.ZodNumber; maxToolCalls: z.ZodNumber; maxTotalTokens: z.ZodOptional<z.ZodNumber>; maxConsecutiveNoProgress: z.ZodNumber; quantumIterations: z.ZodNumber; deadlineAt: z.ZodOptional<z.ZodString>; }, "strict", z.ZodTypeAny, { maxIterations: number; maxModelCalls: number; maxToolCalls: number; maxConsecutiveNoProgress: number; ...Runtime schema for Re Act Execution Budget.
reactPhaseSchemaconstantconst reactPhaseSchema: z.ZodEnum<["observe", "reason", "select_action", "policy_check", "act", "observe_result", "verify", "memory_sync", "complete", "fail", "human_review", "suspend", "cancel"]>Runtime schema for React Phase.
reasoningConfigExampleconstantconst reasoningConfigExample: ReasoningConfigValid example value for Reasoning Config.
reasoningConfigJsonSchemaconstantconst reasoningConfigJsonSchema: JsonSchemaJSON Schema for Reasoning Config.
reasoningConfigSchemaconstantconst reasoningConfigSchema: z.ZodObject<{ thinkingMode: z.ZodOptional<z.ZodEnum<["none", "summary", "structured"]>>; agenticMode: z.ZodOptional<z.ZodEnum<["react", "fsm_react", "tot", "critique"]>>; maxSteps: z.ZodOptional<z.ZodNumber>; persist: z.ZodOptional<z.ZodEnum<["summary_only", "events_only"]>>; plannerRef: z.ZodOptional<z.ZodString>; reasonerRef: z.ZodOptional<z.ZodString>; metadata: z.ZodOptional<z.ZodR...Runtime schema for Reasoning Config.
reasoningConfigSpecDefinitionconstantconst reasoningConfigSpecDefinition: SpecSchemaDefinition<ReasoningConfig>Runtime validation entrypoint for the Reasoning Config spec, combining its parser, example and JSON Schema.
reasoningPersistenceSchemaconstantconst reasoningPersistenceSchema: z.ZodEnum<["summary_only", "events_only"]>Runtime schema for Reasoning Persistence.
thinkingModeSchemaconstantconst thinkingModeSchema: z.ZodEnum<["none", "summary", "structured"]>Runtime schema for Thinking Mode.
createEpisodicMemorySyncfunctioncreateEpisodicMemorySync(options: EpisodicMemorySyncOptions): NonNullable<ReActRunnerOptions["syncMemory"]>Create Episodic Memory Sync function with 1 public call signature; parameters and return types are listed below.
createReActStepfunctioncreateReActStep(id: string, phase: ReActPhase, input?: unknown): ReActStepCreate ReAct Step function with 1 public call signature; parameters and return types are listed below.
reActContinuationScopeHashfunctionreActContinuationScopeHash(context: ReActRunContext): stringRe Act Continuation Scope Hash function with 1 public call signature; parameters and return types are listed below.
validateReActActionfunctionvalidateReActAction(input: unknown): ReActActionValidate ReAct Action function with 1 public call signature; parameters and return types are listed below.
validateReActAgentSpecfunctionvalidateReActAgentSpec(input: unknown): ReActAgentSpecValidate ReAct Agent Spec function with 1 public call signature; parameters and return types are listed below.
validateReActContinuationCheckpointfunctionvalidateReActContinuationCheckpoint(input: unknown): ReActContinuationCheckpointValidate ReAct Continuation Checkpoint function with 1 public call signature; parameters and return types are listed below.
validateReActExecutionBudgetfunctionvalidateReActExecutionBudget(input: unknown): ReActExecutionBudgetValidate ReAct Execution Budget function with 1 public call signature; parameters and return types are listed below.
validateReasoningConfigfunctionvalidateReasoningConfig(input: unknown): ReasoningConfigValidate Reasoning Config function with 1 public call signature; parameters and return types are listed below.
AgenticReasonerinterfaceinterface AgenticReasonerAgentic Reasoner interface with 1 public fields or methods.
AgenticReasonerInputinterfaceinterface AgenticReasonerInputAgentic Reasoner Input interface with 3 public fields or methods.
AgenticReasoningDecisioninterfaceinterface AgenticReasoningDecisionAgentic Reasoning Decision interface with 11 public fields or methods.
BasicReActAgentRuntimeOptionsinterfaceinterface BasicReActAgentRuntimeOptionsBasic ReAct Agent Runtime Options interface with 1 public fields or methods.
BuiltAgentContextinterfaceinterface BuiltAgentContext extends ReActRunContextBuilt Agent Context interface with 18 public fields or methods.
ContextBudgetinterfaceinterface ContextBudgetContext Budget interface with 4 public fields or methods.
ContextBuilderinterfaceinterface ContextBuilderContext Builder interface with 1 public fields or methods.
ContextBuildInputinterfaceinterface ContextBuildInputContext Build Input interface with 12 public fields or methods.
ContextProvenanceinterfaceinterface ContextProvenanceContext Provenance interface with 6 public fields or methods.
EpisodicMemorySyncOptionsinterfaceinterface EpisodicMemorySyncOptionsEpisodic Memory Sync Options interface with 7 public fields or methods.
InMemoryReActContinuationCheckpointStoreOptionsinterfaceinterface InMemoryReActContinuationCheckpointStoreOptionsIn Memory ReAct Continuation Checkpoint Store Options interface with 3 public fields or methods.
MemoryContextBuilderOptionsinterfaceinterface MemoryContextBuilderOptionsMemory Context Builder Options interface with 7 public fields or methods.
MemoryContextIteminterfaceinterface MemoryContextItemMemory Context Item interface with 5 public fields or methods.
ReActActioninterfaceinterface ReActActionReAct Action interface with 5 public fields or methods.
ReActAgentRunnerOptionsinterfaceinterface ReActAgentRunnerOptions extends Omit<ReActRunnerOptions, 'toolRunner'>ReAct Agent Runner Options interface with 25 public fields or methods.
ReActAgentRuntimeinterfaceinterface ReActAgentRuntimeReAct Agent Runtime interface with 3 public fields or methods.
ReActAgentSpecinterfaceinterface ReActAgentSpec extends VersionedSpec, SpecMetadataReAct Agent Spec interface with 17 public fields or methods.
ReActContinuationCheckpointinterfaceinterface ReActContinuationCheckpointReAct Continuation Checkpoint interface with 19 public fields or methods.
ReActContinuationCheckpointPutResultinterfaceinterface ReActContinuationCheckpointPutResultReAct Continuation Checkpoint Put Result interface with 2 public fields or methods.
ReActContinuationCheckpointStoreinterfaceinterface ReActContinuationCheckpointStoreReAct Continuation Checkpoint Store interface with 3 public fields or methods.
ReActExecutionBudgetinterfaceinterface ReActExecutionBudgetGlobal limits survive process restarts through ReActContinuationCheckpoint. quantumIterations only bounds one worker turn; it is not a new total budget.
ReActObservationinterfaceinterface ReActObservationReAct Observation interface with 3 public fields or methods.
ReActRunContextinterfaceinterface ReActRunContextReAct Run Context interface with 14 public fields or methods.
ReActRunControlinterfaceinterface ReActRunControlReAct Run Control interface with 4 public fields or methods.
ReActRunnerOptionsinterfaceinterface ReActRunnerOptionsReAct Runner Options interface with 13 public fields or methods.
ReActRunResultinterfaceinterface ReActRunResultReAct Run Result interface with 8 public fields or methods.
ReActStepinterfaceinterface ReActStepReAct Step interface with 5 public fields or methods.
ReActSuspensioninterfaceinterface ReActSuspensionReAct Suspension interface with 4 public fields or methods.
ReasoningConfiginterfaceinterface ReasoningConfigReasoning Config interface with 7 public fields or methods.
ReasoningContextBuilderOptionsinterfaceinterface ReasoningContextBuilderOptionsReasoning Context Builder Options interface with 5 public fields or methods.
RequiredReasoningConfiginterfaceinterface RequiredReasoningConfig extends Required<Omit<ReasoningConfig, 'plannerRef' | 'reasonerRef' | 'metadata'>>Required Reasoning Config interface with 7 public fields or methods.
SkillContextBuilderOptionsinterfaceinterface SkillContextBuilderOptionsSkill Context Builder Options interface with 9 public fields or methods.
ThinkingPlaninterfaceinterface ThinkingPlanThinking Plan interface with 10 public fields or methods.
ThinkingPlannerinterfaceinterface ThinkingPlannerThinking Planner interface with 1 public fields or methods.
ThinkingPlannerInputinterfaceinterface ThinkingPlannerInputThinking Planner Input interface with 2 public fields or methods.
ToolActivityPortinterfaceinterface ToolActivityPortTool Activity Port interface with 2 public fields or methods.
ToolActivityRequestinterfaceinterface ToolActivityRequestTool Activity Request interface with 10 public fields or methods.
ToolActivityResultinterfaceinterface ToolActivityResultTool Activity Result interface with 7 public fields or methods.
Verifierinterfaceinterface VerifierVerifier interface with 1 public fields or methods.
AgenticReasoningModetypetype AgenticReasoningMode = 'react' | 'fsm_react' | 'tot' | 'critique'Public type alias for Agentic Reasoning Mode; the declaration contains its complete type expression.
ReActPhasetypetype ReActPhase = 'observe' | 'reason' | 'select_action' | 'policy_check' | 'act' | 'observe_result' | 'verify' | 'memory_sync' | 'complete' | 'fail' | 'human_review' | 'suspend' | 'cancel'Public type alias for ReAct Phase; the declaration contains its complete type expression.
ReActSuspensionReasontypetype ReActSuspensionReason = (typeof REACT_SUSPENSION_REASONS)[number]Public type alias for ReAct Suspension Reason; the declaration contains its complete type expression.
ReasoningPersistencetypetype ReasoningPersistence = 'summary_only' | 'events_only'Public type alias for Reasoning Persistence; the declaration contains its complete type expression.
ThinkingModetypetype ThinkingMode = 'none' | 'summary' | 'structured'Public type alias for Thinking Mode; the declaration contains its complete type expression.

BasicReActAgentRuntime

Basic ReAct Agent Runtime class with 4 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { BasicReActAgentRuntime } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare class BasicReActAgentRuntime implements ReActAgentRuntime {
    constructor(options?: BasicReActAgentRuntimeOptions);
    reason(context: ReActRunContext): Promise<InferenceRequest>;
    selectAction(response: InferenceResponse): Promise<ReActAction>;
    verify(context: ReActRunContext, observation: ReActObservation): Promise<ReActAction>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(options?: BasicReActAgentRuntimeOptions): BasicReActAgentRuntimeCreates an instance of this class.
reasonmethodreason(context: ReActRunContext): Promise<InferenceRequest>Public method; parameters and return type are shown in the signature.
selectActionmethodselectAction(response: InferenceResponse): Promise<ReActAction>Public method; parameters and return type are shown in the signature.
verifymethodverify(context: ReActRunContext, observation: ReActObservation): Promise<ReActAction>Public method; parameters and return type are shown in the signature.

DefaultAgenticReasoner

Default Agentic Reasoner class with 2 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { DefaultAgenticReasoner } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare class DefaultAgenticReasoner implements AgenticReasoner {
    constructor(now?: () => string);
    decide(input: AgenticReasonerInput): Promise<AgenticReasoningDecision>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(now?: () => string): DefaultAgenticReasonerCreates an instance of this class.
decidemethoddecide(input: AgenticReasonerInput): Promise<AgenticReasoningDecision>Public method; parameters and return type are shown in the signature.

DefaultContextBuilder

Default Context Builder class with 2 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { DefaultContextBuilder } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare class DefaultContextBuilder implements ContextBuilder {
    build(input: ContextBuildInput): Promise<BuiltAgentContext>;
}

Public members

MemberKindSignatureDescription
buildmethodbuild(input: ContextBuildInput): Promise<BuiltAgentContext>Public method; parameters and return type are shown in the signature.
constructorconstructor(): DefaultContextBuilderCreates an instance of this class.

DefaultThinkingPlanner

Default Thinking Planner class with 2 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { DefaultThinkingPlanner } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare class DefaultThinkingPlanner implements ThinkingPlanner {
    constructor(now?: () => string);
    plan(input: ThinkingPlannerInput): Promise<ThinkingPlan>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(now?: () => string): DefaultThinkingPlannerCreates an instance of this class.
planmethodplan(input: ThinkingPlannerInput): Promise<ThinkingPlan>Public method; parameters and return type are shown in the signature.

DefaultVerifier

Default Verifier class with 2 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { DefaultVerifier } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare class DefaultVerifier implements Verifier {
    verify(_context: ReActRunContext, observation: ReActObservation): Promise<ReActAction>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(): DefaultVerifierCreates an instance of this class.
verifymethodverify(_context: ReActRunContext, observation: ReActObservation): Promise<ReActAction>Public method; parameters and return type are shown in the signature.

InMemoryReActContinuationCheckpointStore

In Memory ReAct Continuation Checkpoint Store class with 4 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { InMemoryReActContinuationCheckpointStore } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare class InMemoryReActContinuationCheckpointStore implements ReActContinuationCheckpointStore {
    constructor(options?: InMemoryReActContinuationCheckpointStoreOptions);
    put(input: ReActContinuationCheckpoint, idempotencyKey: string): Promise<ReActContinuationCheckpointPutResult>;
    get(runId: string, stepId: string, expectedScopeHash: string): Promise<ReActContinuationCheckpoint | null>;
    delete(runId: string, stepId: string, expectedScopeHash: string, expectedStepSequence?: number): Promise<boolean>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(options?: InMemoryReActContinuationCheckpointStoreOptions): InMemoryReActContinuationCheckpointStoreCreates an instance of this class.
deletemethoddelete(runId: string, stepId: string, expectedScopeHash: string, expectedStepSequence?: number): Promise<boolean>Public method; parameters and return type are shown in the signature.
getmethodget(runId: string, stepId: string, expectedScopeHash: string): Promise<ReActContinuationCheckpoint | null>Public method; parameters and return type are shown in the signature.
putmethodput(input: ReActContinuationCheckpoint, idempotencyKey: string): Promise<ReActContinuationCheckpointPutResult>Public method; parameters and return type are shown in the signature.

MemoryContextBuilder

Memory Context Builder class with 2 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { MemoryContextBuilder } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare class MemoryContextBuilder implements ContextBuilder {
    constructor(options: MemoryContextBuilderOptions);
    build(input: ContextBuildInput): Promise<BuiltAgentContext>;
}

Public members

MemberKindSignatureDescription
buildmethodbuild(input: ContextBuildInput): Promise<BuiltAgentContext>Public method; parameters and return type are shown in the signature.
constructorconstructor(options: MemoryContextBuilderOptions): MemoryContextBuilderCreates an instance of this class.

ReActAgentRunner

ReAct Agent Runner class with 2 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { ReActAgentRunner } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare class ReActAgentRunner {
    constructor(options: ReActAgentRunnerOptions);
    run(input: ContextBuildInput, control?: ReActRunControl): Promise<ReActRunResult>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(options: ReActAgentRunnerOptions): ReActAgentRunnerCreates an instance of this class.
runmethodrun(input: ContextBuildInput, control?: ReActRunControl): Promise<ReActRunResult>Public method; parameters and return type are shown in the signature.

ReActRunner

ReAct Runner class with 2 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { ReActRunner } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare class ReActRunner {
    constructor(runtime: ReActAgentRuntime, options: ReActRunnerOptions);
    run(context: ReActRunContext, control?: ReActRunControl): Promise<ReActRunResult>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(runtime: ReActAgentRuntime, options: ReActRunnerOptions): ReActRunnerCreates an instance of this class.
runmethodrun(context: ReActRunContext, control?: ReActRunControl): Promise<ReActRunResult>Public method; parameters and return type are shown in the signature.

ReasoningContextBuilder

Reasoning Context Builder class with 2 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { ReasoningContextBuilder } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare class ReasoningContextBuilder implements ContextBuilder {
    constructor(options?: ReasoningContextBuilderOptions);
    build(input: ContextBuildInput): Promise<BuiltAgentContext>;
}

Public members

MemberKindSignatureDescription
buildmethodbuild(input: ContextBuildInput): Promise<BuiltAgentContext>Public method; parameters and return type are shown in the signature.
constructorconstructor(options?: ReasoningContextBuilderOptions): ReasoningContextBuilderCreates an instance of this class.

SkillContextBuilder

Skill Context Builder class with 2 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { SkillContextBuilder } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare class SkillContextBuilder implements ContextBuilder {
    constructor(options: SkillContextBuilderOptions);
    build(input: ContextBuildInput): Promise<BuiltAgentContext>;
}

Public members

MemberKindSignatureDescription
buildmethodbuild(input: ContextBuildInput): Promise<BuiltAgentContext>Public method; parameters and return type are shown in the signature.
constructorconstructor(options: SkillContextBuilderOptions): SkillContextBuilderCreates an instance of this class.

ToolRunnerActivityAdapter

Tool Runner Activity Adapter class with 3 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { ToolRunnerActivityAdapter } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare class ToolRunnerActivityAdapter implements ToolActivityPort {
    constructor(runner: ToolRunner);
    execute(request: ToolActivityRequest): Promise<ToolActivityResult>;
    cancel(invocationId: string, reason?: string): Promise<ToolActivityResult | null>;
}

Public members

MemberKindSignatureDescription
cancelmethodcancel(invocationId: string, reason?: string): Promise<ToolActivityResult | null>Public method; parameters and return type are shown in the signature.
constructorconstructor(runner: ToolRunner): ToolRunnerActivityAdapterCreates an instance of this class.
executemethodexecute(request: ToolActivityRequest): Promise<ToolActivityResult>Public method; parameters and return type are shown in the signature.

agenticReasoningModeSchema

Runtime schema for Agentic Reasoning Mode.

  • Kind: constant
  • Import: import { agenticReasoningModeSchema } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare const agenticReasoningModeSchema: z.ZodEnum<["react", "fsm_react", "tot", "critique"]>;

kernelSpecDefinitions

Kernel Spec Definitions constant exported by the index module.

  • Kind: constant
  • Import: import { kernelSpecDefinitions } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare const kernelSpecDefinitions: readonly [SpecSchemaDefinition<ReActAgentSpec>, SpecSchemaDefinition<ReasoningConfig>];

kernelSpecJsonSchemas

Kernel Spec JSON Schemas constant exported by the index module.

  • Kind: constant
  • Import: import { kernelSpecJsonSchemas } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare const kernelSpecJsonSchemas: Record<string, JsonSchema>;

REACT_PHASE_ORDER

REACT PHASE ORDER constant exported by the index module.

  • Kind: constant
  • Import: import { REACT_PHASE_ORDER } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare const REACT_PHASE_ORDER: ReActPhase[];

REACT_SUSPENSION_REASONS

REACT SUSPENSION REASONS constant exported by the index module.

  • Kind: constant
  • Import: import { REACT_SUSPENSION_REASONS } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare const REACT_SUSPENSION_REASONS: readonly ["quantum_exhausted", "iteration_budget_exhausted", "model_call_budget_exhausted", "tool_call_budget_exhausted", "token_budget_exhausted", "non_progress", "deadline_exceeded"];

reActActionSchema

Runtime schema for Re Act Action.

  • Kind: constant
  • Import: import { reActActionSchema } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare const reActActionSchema: z.ZodEffects<z.ZodObject<{ type: z.ZodEnum<["tool", "model", "finish", "human_review"]>; toolCallId: z.ZodOptional<z.ZodString>; target: z.ZodOptional<z.ZodString>; input: z.ZodOptional<z.ZodEffects<z.ZodUnknown, unknown, unknown>>; reason: z.ZodOptional<z.ZodString>; }, "strict", z.ZodTypeAny, { type: "human_review" | "tool" | "model" | "finish"; reason?: string | undefined; toolCallId?: string | undefined; target?: string | undefined; input?: unknown; }, { type: "human_review" | "tool" | "model" | "finish"; reason?: string | undefined; toolCallId?: string | undefined; target?: string | undefined; input?: unknown; }>, { type: "human_review" | "tool" | "model" | "finish"; reason?: string | undefined; toolCallId?: string | undefined; target?: string | undefined; input?: unknown; }, { type: "human_review" | "tool" | "model" | "finish"; reason?: string | undefined; toolCallId?: string | undefined; target?: string | undefined; input?: unknown; }>;

reactAgentSpecDefinition

Runtime validation entrypoint for the React Agent spec, combining its parser, example and JSON Schema.

  • Kind: constant
  • Import: import { reactAgentSpecDefinition } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare const reactAgentSpecDefinition: SpecSchemaDefinition<ReActAgentSpec>;

reactAgentSpecExample

Valid example value for React Agent Spec.

  • Kind: constant
  • Import: import { reactAgentSpecExample } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare const reactAgentSpecExample: ReActAgentSpec;

reactAgentSpecJsonSchema

JSON Schema for React Agent Spec.

  • Kind: constant
  • Import: import { reactAgentSpecJsonSchema } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare const reactAgentSpecJsonSchema: JsonSchema;

reactAgentSpecSchema

Runtime schema for React Agent Spec.

  • Kind: constant
  • Import: import { reactAgentSpecSchema } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
// Exact type resolved from the package entrypoint; see source for the compiler expansion.
export declare const reactAgentSpecSchema: (typeof import('@codesoul-co/hypha-kernel'))['reactAgentSpecSchema'];

This compiler-expanded constant type is compacted. Its public name, top-level type, and source location remain here; use the module’s exported interfaces, types, or runtime schema for input/output fields.

reActContinuationCheckpointJsonSchema

JSON Schema for Re Act Continuation Checkpoint.

  • Kind: constant
  • Import: import { reActContinuationCheckpointJsonSchema } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare const reActContinuationCheckpointJsonSchema: JsonSchema;

reActContinuationCheckpointSchema

Runtime schema for Re Act Continuation Checkpoint.

  • Kind: constant
  • Import: import { reActContinuationCheckpointSchema } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
// Exact type resolved from the package entrypoint; see source for the compiler expansion.
export declare const reActContinuationCheckpointSchema: (typeof import('@codesoul-co/hypha-kernel'))['reActContinuationCheckpointSchema'];

This compiler-expanded constant type is compacted. Its public name, top-level type, and source location remain here; use the module’s exported interfaces, types, or runtime schema for input/output fields.

reActExecutionBudgetJsonSchema

JSON Schema for Re Act Execution Budget.

  • Kind: constant
  • Import: import { reActExecutionBudgetJsonSchema } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare const reActExecutionBudgetJsonSchema: JsonSchema;

reActExecutionBudgetSchema

Runtime schema for Re Act Execution Budget.

  • Kind: constant
  • Import: import { reActExecutionBudgetSchema } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare const reActExecutionBudgetSchema: z.ZodObject<{ maxIterations: z.ZodNumber; maxModelCalls: z.ZodNumber; maxToolCalls: z.ZodNumber; maxTotalTokens: z.ZodOptional<z.ZodNumber>; maxConsecutiveNoProgress: z.ZodNumber; quantumIterations: z.ZodNumber; deadlineAt: z.ZodOptional<z.ZodString>; }, "strict", z.ZodTypeAny, { maxIterations: number; maxModelCalls: number; maxToolCalls: number; maxConsecutiveNoProgress: number; quantumIterations: number; maxTotalTokens?: number | undefined; deadlineAt?: string | undefined; }, { maxIterations: number; maxModelCalls: number; maxToolCalls: number; maxConsecutiveNoProgress: number; quantumIterations: number; maxTotalTokens?: number | undefined; deadlineAt?: string | undefined; }>;

reactPhaseSchema

Runtime schema for React Phase.

  • Kind: constant
  • Import: import { reactPhaseSchema } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare const reactPhaseSchema: z.ZodEnum<["observe", "reason", "select_action", "policy_check", "act", "observe_result", "verify", "memory_sync", "complete", "fail", "human_review", "suspend", "cancel"]>;

reasoningConfigExample

Valid example value for Reasoning Config.

  • Kind: constant
  • Import: import { reasoningConfigExample } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare const reasoningConfigExample: ReasoningConfig;

reasoningConfigJsonSchema

JSON Schema for Reasoning Config.

  • Kind: constant
  • Import: import { reasoningConfigJsonSchema } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare const reasoningConfigJsonSchema: JsonSchema;

reasoningConfigSchema

Runtime schema for Reasoning Config.

  • Kind: constant
  • Import: import { reasoningConfigSchema } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare const reasoningConfigSchema: z.ZodObject<{ thinkingMode: z.ZodOptional<z.ZodEnum<["none", "summary", "structured"]>>; agenticMode: z.ZodOptional<z.ZodEnum<["react", "fsm_react", "tot", "critique"]>>; maxSteps: z.ZodOptional<z.ZodNumber>; persist: z.ZodOptional<z.ZodEnum<["summary_only", "events_only"]>>; plannerRef: z.ZodOptional<z.ZodString>; reasonerRef: z.ZodOptional<z.ZodString>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { thinkingMode?: "none" | "summary" | "structured" | undefined; agenticMode?: "react" | "fsm_react" | "tot" | "critique" | undefined; maxSteps?: number | undefined; persist?: "summary_only" | "events_only" | undefined; plannerRef?: string | undefined; reasonerRef?: string | undefined; metadata?: Record<string, unknown> | undefined; }, { thinkingMode?: "none" | "summary" | "structured" | undefined; agenticMode?: "react" | "fsm_react" | "tot" | "critique" | undefined; maxSteps?: number | undefined; persist?: "summary_only" | "events_only" | undefined; plannerRef?: string | undefined; reasonerRef?: string | undefined; metadata?: Record<string, unknown> | undefined; }>;

reasoningConfigSpecDefinition

Runtime validation entrypoint for the Reasoning Config spec, combining its parser, example and JSON Schema.

  • Kind: constant
  • Import: import { reasoningConfigSpecDefinition } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare const reasoningConfigSpecDefinition: SpecSchemaDefinition<ReasoningConfig>;

reasoningPersistenceSchema

Runtime schema for Reasoning Persistence.

  • Kind: constant
  • Import: import { reasoningPersistenceSchema } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare const reasoningPersistenceSchema: z.ZodEnum<["summary_only", "events_only"]>;

thinkingModeSchema

Runtime schema for Thinking Mode.

  • Kind: constant
  • Import: import { thinkingModeSchema } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare const thinkingModeSchema: z.ZodEnum<["none", "summary", "structured"]>;

createEpisodicMemorySync

Create Episodic Memory Sync function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { createEpisodicMemorySync } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare function createEpisodicMemorySync(options: EpisodicMemorySyncOptions): NonNullable<ReActRunnerOptions['syncMemory']>;

Call signature

text
createEpisodicMemorySync(options: EpisodicMemorySyncOptions): NonNullable<ReActRunnerOptions["syncMemory"]>

Parameters

ParameterTypeRequiredDescription
optionsEpisodicMemorySyncOptionsYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: (context: ReActRunContext, observation: ReActObservation) => Promise<void>
  • Description: The return contract is defined by the type shown above.

createReActStep

Create ReAct Step function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { createReActStep } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare function createReActStep(id: string, phase: ReActPhase, input?: unknown): ReActStep;

Call signature

text
createReActStep(id: string, phase: ReActPhase, input?: unknown): ReActStep

Parameters

ParameterTypeRequiredDescription
idstringYesRequired parameter; accepted values are defined by the type column.
phaseReActPhaseYesRequired parameter; accepted values are defined by the type column.
inputunknownNoOptional parameter; accepted values are defined by the type column.

Returns

  • Type: ReActStep
  • Description: The return contract is defined by the type shown above.

reActContinuationScopeHash

Re Act Continuation Scope Hash function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { reActContinuationScopeHash } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare function reActContinuationScopeHash(context: ReActRunContext): string;

Call signature

text
reActContinuationScopeHash(context: ReActRunContext): string

Parameters

ParameterTypeRequiredDescription
contextReActRunContextYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: string
  • Description: The return contract is defined by the type shown above.

validateReActAction

Validate ReAct Action function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { validateReActAction } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare function validateReActAction(input: unknown): ReActAction;

Call signature

text
validateReActAction(input: unknown): ReActAction

Parameters

ParameterTypeRequiredDescription
inputunknownYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: ReActAction
  • Description: The return contract is defined by the type shown above.

validateReActAgentSpec

Validate ReAct Agent Spec function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { validateReActAgentSpec } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare function validateReActAgentSpec(input: unknown): ReActAgentSpec;

Call signature

text
validateReActAgentSpec(input: unknown): ReActAgentSpec

Parameters

ParameterTypeRequiredDescription
inputunknownYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: ReActAgentSpec
  • Description: The return contract is defined by the type shown above.

validateReActContinuationCheckpoint

Validate ReAct Continuation Checkpoint function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { validateReActContinuationCheckpoint } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare function validateReActContinuationCheckpoint(input: unknown): ReActContinuationCheckpoint;

Call signature

text
validateReActContinuationCheckpoint(input: unknown): ReActContinuationCheckpoint

Parameters

ParameterTypeRequiredDescription
inputunknownYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: ReActContinuationCheckpoint
  • Description: The return contract is defined by the type shown above.

validateReActExecutionBudget

Validate ReAct Execution Budget function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { validateReActExecutionBudget } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare function validateReActExecutionBudget(input: unknown): ReActExecutionBudget;

Call signature

text
validateReActExecutionBudget(input: unknown): ReActExecutionBudget

Parameters

ParameterTypeRequiredDescription
inputunknownYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: ReActExecutionBudget
  • Description: The return contract is defined by the type shown above.

validateReasoningConfig

Validate Reasoning Config function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { validateReasoningConfig } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export declare function validateReasoningConfig(input: unknown): ReasoningConfig;

Call signature

text
validateReasoningConfig(input: unknown): ReasoningConfig

Parameters

ParameterTypeRequiredDescription
inputunknownYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: ReasoningConfig
  • Description: The return contract is defined by the type shown above.

AgenticReasoner

Agentic Reasoner interface with 1 public fields or methods.

  • Kind: interface
  • Import: import type { AgenticReasoner } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface AgenticReasoner {
    decide(input: AgenticReasonerInput): Promise<AgenticReasoningDecision>;
}

Contract members

MemberKindSignatureDescription
decidemethoddecide(input: AgenticReasonerInput): Promise<AgenticReasoningDecision>Public method; parameters and return type are shown in the signature.

AgenticReasonerInput

Agentic Reasoner Input interface with 3 public fields or methods.

  • Kind: interface
  • Import: import type { AgenticReasonerInput } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface AgenticReasonerInput {
    context: BuiltAgentContext;
    config: RequiredReasoningConfig;
    thinkingPlan?: ThinkingPlan;
}

Contract members

MemberKindSignatureDescription
configpropertyconfig: RequiredReasoningConfigPublic property; its type, readonly modifier and optionality are shown in the signature.
contextpropertycontext: BuiltAgentContextPublic property; its type, readonly modifier and optionality are shown in the signature.
thinkingPlanpropertythinkingPlan?: ThinkingPlanPublic property; its type, readonly modifier and optionality are shown in the signature.

AgenticReasoningDecision

Agentic Reasoning Decision interface with 11 public fields or methods.

  • Kind: interface
  • Import: import type { AgenticReasoningDecision } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface AgenticReasoningDecision {
    id: string;
    mode: AgenticReasoningMode;
    recommendedPhase: ReActPhase;
    actionType: 'reason' | ReActAction['type'];
    toolCandidates: string[];
    requiresHumanReview: boolean;
    verificationStrategy: string;
    rationale: string;
    confidence?: number;
    createdAt: string;
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
actionTypepropertyactionType: "human_review" | "tool" | "model" | "reason" | "finish"Public property; its type, readonly modifier and optionality are shown in the signature.
confidencepropertyconfidence?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
createdAtpropertycreatedAt: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
idpropertyid: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
modepropertymode: AgenticReasoningModePublic property; its type, readonly modifier and optionality are shown in the signature.
rationalepropertyrationale: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
recommendedPhasepropertyrecommendedPhase: ReActPhasePublic property; its type, readonly modifier and optionality are shown in the signature.
requiresHumanReviewpropertyrequiresHumanReview: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
toolCandidatespropertytoolCandidates: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
verificationStrategypropertyverificationStrategy: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

BasicReActAgentRuntimeOptions

Basic ReAct Agent Runtime Options interface with 1 public fields or methods.

  • Kind: interface
  • Import: import type { BasicReActAgentRuntimeOptions } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface BasicReActAgentRuntimeOptions {
    verifier?: Verifier;
}

Contract members

MemberKindSignatureDescription
verifierpropertyverifier?: VerifierPublic property; its type, readonly modifier and optionality are shown in the signature.

BuiltAgentContext

Built Agent Context interface with 18 public fields or methods.

  • Kind: interface
  • Import: import type { BuiltAgentContext } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface BuiltAgentContext extends ReActRunContext {
    sourceInput?: unknown;
    contextBudget?: ContextBudget;
    contextProvenance?: ContextProvenance[];
    memoryContext?: MemoryContextItem[];
}

Contract members

MemberKindSignatureDescription
activeSkillspropertyactiveSkills?: LoadedSkillContext[]Public property; its type, readonly modifier and optionality are shown in the signature.
agentpropertyagent: ReActAgentSpecPublic property; its type, readonly modifier and optionality are shown in the signature.
contextBudgetpropertycontextBudget?: ContextBudgetPublic property; its type, readonly modifier and optionality are shown in the signature.
contextProvenancepropertycontextProvenance?: ContextProvenance[]Public property; its type, readonly modifier and optionality are shown in the signature.
contextSpecpropertycontextSpec?: ContextSpecPublic property; its type, readonly modifier and optionality are shown in the signature.
memoryContextpropertymemoryContext?: MemoryContextItem[]Public property; its type, readonly modifier and optionality are shown in the signature.
memoryScopepropertymemoryScope?: MemoryScopePublic property; its type, readonly modifier and optionality are shown in the signature.
messagespropertymessages: ModelMessage[]Public property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
reasoningConfigpropertyreasoningConfig?: ReasoningConfigPublic property; its type, readonly modifier and optionality are shown in the signature.
reasoningDecisionpropertyreasoningDecision?: AgenticReasoningDecisionPublic property; its type, readonly modifier and optionality are shown in the signature.
rejectedSkillspropertyrejectedSkills?: { skillId: string; reason: string; }[]Public property; its type, readonly modifier and optionality are shown in the signature.
runIdpropertyrunId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
sourceInputpropertysourceInput?: unknownPublic property; its type, readonly modifier and optionality are shown in the signature.
stepIdpropertystepId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
thinkingPlanpropertythinkingPlan?: ThinkingPlanPublic property; its type, readonly modifier and optionality are shown in the signature.
toolExecutionScopepropertytoolExecutionScope?: ToolExecutionScopePublic property; its type, readonly modifier and optionality are shown in the signature.
toolPrincipalpropertytoolPrincipal?: ToolPrincipalPublic property; its type, readonly modifier and optionality are shown in the signature.

ContextBudget

Context Budget interface with 4 public fields or methods.

  • Kind: interface
  • Import: import type { ContextBudget } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ContextBudget {
    maxMessages?: number;
    maxMemoryItems?: number;
    maxMemoryChars?: number;
    maxTotalChars?: number;
}

Contract members

MemberKindSignatureDescription
maxMemoryCharspropertymaxMemoryChars?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
maxMemoryItemspropertymaxMemoryItems?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
maxMessagespropertymaxMessages?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
maxTotalCharspropertymaxTotalChars?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.

ContextBuilder

Context Builder interface with 1 public fields or methods.

  • Kind: interface
  • Import: import type { ContextBuilder } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ContextBuilder {
    build(input: ContextBuildInput): Promise<BuiltAgentContext>;
}

Contract members

MemberKindSignatureDescription
buildmethodbuild(input: ContextBuildInput): Promise<BuiltAgentContext>Public method; parameters and return type are shown in the signature.

ContextBuildInput

Context Build Input interface with 12 public fields or methods.

  • Kind: interface
  • Import: import type { ContextBuildInput } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ContextBuildInput<TInput = unknown> {
    runId: string;
    stepId: string;
    sessionId?: string;
    userId?: string;
    agent: ReActAgentSpec;
    input: TInput;
    messages?: ModelMessage[];
    memoryScope?: MemoryScope;
    contextSpec?: ContextSpec;
    metadata?: Record<string, unknown>;
    toolExecutionScope?: ToolExecutionScope;
    toolPrincipal?: ToolPrincipal;
}

Contract members

MemberKindSignatureDescription
agentpropertyagent: ReActAgentSpecPublic property; its type, readonly modifier and optionality are shown in the signature.
contextSpecpropertycontextSpec?: ContextSpecPublic property; its type, readonly modifier and optionality are shown in the signature.
inputpropertyinput: TInputPublic property; its type, readonly modifier and optionality are shown in the signature.
memoryScopepropertymemoryScope?: MemoryScopePublic property; its type, readonly modifier and optionality are shown in the signature.
messagespropertymessages?: ModelMessage[]Public property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
runIdpropertyrunId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
sessionIdpropertysessionId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
stepIdpropertystepId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
toolExecutionScopepropertytoolExecutionScope?: ToolExecutionScopePublic property; its type, readonly modifier and optionality are shown in the signature.
toolPrincipalpropertytoolPrincipal?: ToolPrincipalPublic property; its type, readonly modifier and optionality are shown in the signature.
userIdpropertyuserId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

ContextProvenance

Context Provenance interface with 6 public fields or methods.

  • Kind: interface
  • Import: import type { ContextProvenance } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ContextProvenance {
    source: 'memory' | 'input' | 'system' | 'skill';
    id: string;
    type?: string;
    score?: number;
    provenance?: Record<string, unknown>;
    includedAt: string;
}

Contract members

MemberKindSignatureDescription
idpropertyid: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
includedAtpropertyincludedAt: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
provenancepropertyprovenance?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
scorepropertyscore?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
sourcepropertysource: "memory" | "skill" | "system" | "input"Public property; its type, readonly modifier and optionality are shown in the signature.
typepropertytype?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

EpisodicMemorySyncOptions

Episodic Memory Sync Options interface with 7 public fields or methods.

  • Kind: interface
  • Import: import type { EpisodicMemorySyncOptions } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface EpisodicMemorySyncOptions {
    memory: Pick<MemoryManager, 'write'>;
    now?: () => string;
    source?: string;
    idPrefix?: string;
    confidence?: number;
    visibility?: MemoryRecord['visibility'];
    allowLongTerm?: boolean;
}

Contract members

MemberKindSignatureDescription
allowLongTermpropertyallowLongTerm?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
confidencepropertyconfidence?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
idPrefixpropertyidPrefix?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
memorypropertymemory: Pick<MemoryManager, "write">Public property; its type, readonly modifier and optionality are shown in the signature.
nowmethodnow?(): stringPublic method; parameters and return type are shown in the signature.
sourcepropertysource?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
visibilitypropertyvisibility?: "workspace" | "private" | "public"Public property; its type, readonly modifier and optionality are shown in the signature.

InMemoryReActContinuationCheckpointStoreOptions

In Memory ReAct Continuation Checkpoint Store Options interface with 3 public fields or methods.

  • Kind: interface
  • Import: import type { InMemoryReActContinuationCheckpointStoreOptions } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface InMemoryReActContinuationCheckpointStoreOptions {
    maxCheckpoints?: number;
    maxIdempotencyRecords?: number;
    maxCheckpointBytes?: number;
}

Contract members

MemberKindSignatureDescription
maxCheckpointBytespropertymaxCheckpointBytes?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
maxCheckpointspropertymaxCheckpoints?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
maxIdempotencyRecordspropertymaxIdempotencyRecords?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.

MemoryContextBuilderOptions

Memory Context Builder Options interface with 7 public fields or methods.

  • Kind: interface
  • Import: import type { MemoryContextBuilderOptions } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface MemoryContextBuilderOptions {
    memory: Pick<MemoryManager, 'search'>;
    embeddings?: EmbeddingProvider;
    baseBuilder?: ContextBuilder;
    budget?: ContextBudget;
    memoryTypes?: MemoryType[];
    now?: () => string;
    query?: MemorySearchQuery | ((input: ContextBuildInput, base: BuiltAgentContext) => MemorySearchQuery | Promise<MemorySearchQuery>);
}

Contract members

MemberKindSignatureDescription
baseBuilderpropertybaseBuilder?: ContextBuilderPublic property; its type, readonly modifier and optionality are shown in the signature.
budgetpropertybudget?: ContextBudgetPublic property; its type, readonly modifier and optionality are shown in the signature.
embeddingspropertyembeddings?: EmbeddingProviderPublic property; its type, readonly modifier and optionality are shown in the signature.
memorypropertymemory: Pick<MemoryManager, "search">Public property; its type, readonly modifier and optionality are shown in the signature.
memoryTypespropertymemoryTypes?: MemoryType[]Public property; its type, readonly modifier and optionality are shown in the signature.
nowmethodnow?(): stringPublic method; parameters and return type are shown in the signature.
querypropertyquery?: MemorySearchQuery | ((input: ContextBuildInput, base: BuiltAgentContext) => MemorySearchQuery | Promise<MemorySearchQuery>)Public property; its type, readonly modifier and optionality are shown in the signature.

MemoryContextItem

Memory Context Item interface with 5 public fields or methods.

  • Kind: interface
  • Import: import type { MemoryContextItem } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface MemoryContextItem {
    id: string;
    type: MemoryType;
    content: string;
    score?: number;
    provenance: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
contentpropertycontent: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
idpropertyid: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
provenancepropertyprovenance: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
scorepropertyscore?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
typepropertytype: MemoryTypePublic property; its type, readonly modifier and optionality are shown in the signature.

ReActAction

ReAct Action interface with 5 public fields or methods.

  • Kind: interface
  • Import: import type { ReActAction } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ReActAction {
    type: 'tool' | 'model' | 'finish' | 'human_review';
    toolCallId?: string;
    target?: string;
    input?: unknown;
    reason?: string;
}

Contract members

MemberKindSignatureDescription
inputpropertyinput?: unknownPublic property; its type, readonly modifier and optionality are shown in the signature.
reasonpropertyreason?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
targetpropertytarget?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
toolCallIdpropertytoolCallId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
typepropertytype: "human_review" | "tool" | "model" | "finish"Public property; its type, readonly modifier and optionality are shown in the signature.

ReActAgentRunnerOptions

ReAct Agent Runner Options interface with 25 public fields or methods.

  • Kind: interface
  • Import: import type { ReActAgentRunnerOptions } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ReActAgentRunnerOptions extends Omit<ReActRunnerOptions, 'toolRunner'> {
    toolRunner?: ToolRunner;
    contextBuilder?: ContextBuilder;
    verifier?: Verifier;
    runtime?: ReActAgentRuntime;
    thinkingPlanner?: ThinkingPlanner;
    agenticReasoner?: AgenticReasoner;
    reasoningConfig?: ReasoningConfig;
    skillRegistry?: SkillRegistry;
    skillSelector?: SkillSelector;
    skillContextLoader?: SkillContextLoader;
    skillPolicy?: SkillPolicy;
    allowedSkills?: SkillContextBuilderOptions['allowedSkills'];
    requiredSkills?: SkillContextBuilderOptions['requiredSkills'];
}

Contract members

MemberKindSignatureDescription
agenticReasonerpropertyagenticReasoner?: AgenticReasonerPublic property; its type, readonly modifier and optionality are shown in the signature.
allowedSkillspropertyallowedSkills?: string[] | ((input: ContextBuildInput, base: BuiltAgentContext) => string[] | undefined | Promise<string[] | undefined>)Public property; its type, readonly modifier and optionality are shown in the signature.
checkpointStorepropertycheckpointStore?: ReActContinuationCheckpointStorePublic property; its type, readonly modifier and optionality are shown in the signature.
contextBuilderpropertycontextBuilder?: ContextBuilderPublic property; its type, readonly modifier and optionality are shown in the signature.
continueAfterToolpropertycontinueAfterTool?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
executionBudgetpropertyexecutionBudget?: Partial<ReActExecutionBudget>Public property; its type, readonly modifier and optionality are shown in the signature.
inferencepropertyinference: InferenceProviderPublic property; its type, readonly modifier and optionality are shown in the signature.
maxIterationspropertymaxIterations?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
nowmethodnow?(): stringPublic method; parameters and return type are shown in the signature.
onCheckpointmethodonCheckpoint?(checkpoint: ReActContinuationCheckpoint): Promise<void> | voidPublic method; parameters and return type are shown in the signature.
onResumemethodonResume?(checkpoint: ReActContinuationCheckpoint): Promise<void> | voidPublic method; parameters and return type are shown in the signature.
onStepmethodonStep?(step: ReActStep): Promise<void> | voidPublic method; parameters and return type are shown in the signature.
reasoningConfigpropertyreasoningConfig?: ReasoningConfigPublic property; its type, readonly modifier and optionality are shown in the signature.
requiredSkillspropertyrequiredSkills?: string[] | ((input: ContextBuildInput, base: BuiltAgentContext) => string[] | undefined | Promise<string[] | undefined>)Public property; its type, readonly modifier and optionality are shown in the signature.
resolveToolExecutionScopemethodresolveToolExecutionScope?(context: ReActRunContext, action: ReActAction): ToolExecutionScope | undefinedPublic method; parameters and return type are shown in the signature.
retainCheckpointUntilOutcomepropertyretainCheckpointUntilOutcome?: booleanKeep the latest durable checkpoint until an outer transaction records the terminal/waiting outcome. Production quantum executors use this to avoid an unrecoverable gap between Runner completion and Event persistence.
runtimepropertyruntime?: ReActAgentRuntimePublic property; its type, readonly modifier and optionality are shown in the signature.
skillContextLoaderpropertyskillContextLoader?: SkillContextLoaderPublic property; its type, readonly modifier and optionality are shown in the signature.
skillPolicypropertyskillPolicy?: SkillPolicyPublic property; its type, readonly modifier and optionality are shown in the signature.
skillRegistrypropertyskillRegistry?: SkillRegistryPublic property; its type, readonly modifier and optionality are shown in the signature.
skillSelectorpropertyskillSelector?: SkillSelectorPublic property; its type, readonly modifier and optionality are shown in the signature.
syncMemorymethodsyncMemory?(context: ReActRunContext, observation: ReActObservation): Promise<void>Public method; parameters and return type are shown in the signature.
thinkingPlannerpropertythinkingPlanner?: ThinkingPlannerPublic property; its type, readonly modifier and optionality are shown in the signature.
toolRunnerpropertytoolRunner?: ToolRunnerPublic property; its type, readonly modifier and optionality are shown in the signature.
verifierpropertyverifier?: VerifierPublic property; its type, readonly modifier and optionality are shown in the signature.

ReActAgentRuntime

ReAct Agent Runtime interface with 3 public fields or methods.

  • Kind: interface
  • Import: import type { ReActAgentRuntime } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ReActAgentRuntime {
    reason(context: ReActRunContext): Promise<InferenceRequest>;
    selectAction(response: InferenceResponse): Promise<ReActAction>;
    verify(context: ReActRunContext, observation: ReActObservation): Promise<ReActAction>;
}

Contract members

MemberKindSignatureDescription
reasonmethodreason(context: ReActRunContext): Promise<InferenceRequest>Public method; parameters and return type are shown in the signature.
selectActionmethodselectAction(response: InferenceResponse): Promise<ReActAction>Public method; parameters and return type are shown in the signature.
verifymethodverify(context: ReActRunContext, observation: ReActObservation): Promise<ReActAction>Public method; parameters and return type are shown in the signature.

ReActAgentSpec

ReAct Agent Spec interface with 17 public fields or methods.

  • Kind: interface
  • Import: import type { ReActAgentSpec } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ReActAgentSpec extends VersionedSpec, SpecMetadata {
    name: string;
    modelAlias: string;
    systemInstructions?: string;
    promptRefs?: AgentPromptRef[];
    skillRefs?: SkillRef[];
    toolRefs?: string[];
    memoryProfileRef?: string;
    policyRefs?: string[];
    contextSpecRef?: SpecRef;
    reasoning?: ReasoningConfig;
}

Contract members

MemberKindSignatureDescription
contextSpecRefpropertycontextSpecRef?: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
createdAtpropertycreatedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
descriptionpropertydescription?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
idpropertyid: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
memoryProfileRefpropertymemoryProfileRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
modelAliaspropertymodelAlias: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
namepropertyname: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
ownerpropertyowner?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
policyRefspropertypolicyRefs?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
promptRefspropertypromptRefs?: AgentPromptRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
reasoningpropertyreasoning?: ReasoningConfigPublic property; its type, readonly modifier and optionality are shown in the signature.
skillRefspropertyskillRefs?: SkillRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
systemInstructionspropertysystemInstructions?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
tagspropertytags?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
toolRefspropertytoolRefs?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
updatedAtpropertyupdatedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
versionpropertyversion: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

ReActContinuationCheckpoint

ReAct Continuation Checkpoint interface with 19 public fields or methods.

  • Kind: interface
  • Import: import type { ReActContinuationCheckpoint } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ReActContinuationCheckpoint {
    version: '1.0.0';
    runId: string;
    stepId: string;
    scopeHash: string;
    agentRef: SpecRef;
    nextPhase: 'reason' | 'act';
    messages: ModelMessage[];
    iterations: number;
    modelCalls: number;
    toolCalls: number;
    totalTokens: number;
    toolInvocationSequence: number;
    stepSequence: number;
    consecutiveNoProgress: number;
    lastProgressFingerprint?: string;
    pendingAction?: ReActAction;
    pendingToolInvocationId?: string;
    createdAt: string;
    updatedAt: string;
}

Contract members

MemberKindSignatureDescription
agentRefpropertyagentRef: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
consecutiveNoProgresspropertyconsecutiveNoProgress: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
createdAtpropertycreatedAt: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
iterationspropertyiterations: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
lastProgressFingerprintpropertylastProgressFingerprint?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
messagespropertymessages: ModelMessage[]Public property; its type, readonly modifier and optionality are shown in the signature.
modelCallspropertymodelCalls: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
nextPhasepropertynextPhase: "reason" | "act"Public property; its type, readonly modifier and optionality are shown in the signature.
pendingActionpropertypendingAction?: ReActActionPublic property; its type, readonly modifier and optionality are shown in the signature.
pendingToolInvocationIdpropertypendingToolInvocationId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
runIdpropertyrunId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
scopeHashpropertyscopeHash: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
stepIdpropertystepId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
stepSequencepropertystepSequence: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
toolCallspropertytoolCalls: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
toolInvocationSequencepropertytoolInvocationSequence: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
totalTokenspropertytotalTokens: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
updatedAtpropertyupdatedAt: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
versionpropertyversion: "1.0.0"Public property; its type, readonly modifier and optionality are shown in the signature.

ReActContinuationCheckpointPutResult

ReAct Continuation Checkpoint Put Result interface with 2 public fields or methods.

  • Kind: interface
  • Import: import type { ReActContinuationCheckpointPutResult } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ReActContinuationCheckpointPutResult {
    checkpoint: ReActContinuationCheckpoint;
    reused: boolean;
}

Contract members

MemberKindSignatureDescription
checkpointpropertycheckpoint: ReActContinuationCheckpointPublic property; its type, readonly modifier and optionality are shown in the signature.
reusedpropertyreused: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.

ReActContinuationCheckpointStore

ReAct Continuation Checkpoint Store interface with 3 public fields or methods.

  • Kind: interface
  • Import: import type { ReActContinuationCheckpointStore } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ReActContinuationCheckpointStore {
    put(checkpoint: ReActContinuationCheckpoint, idempotencyKey: string): Promise<ReActContinuationCheckpointPutResult>;
    get(runId: string, stepId: string, expectedScopeHash: string): Promise<ReActContinuationCheckpoint | null>;
    delete(runId: string, stepId: string, expectedScopeHash: string, expectedStepSequence?: number): Promise<boolean>;
}

Contract members

MemberKindSignatureDescription
deletemethoddelete(runId: string, stepId: string, expectedScopeHash: string, expectedStepSequence?: number): Promise<boolean>Public method; parameters and return type are shown in the signature.
getmethodget(runId: string, stepId: string, expectedScopeHash: string): Promise<ReActContinuationCheckpoint | null>Public method; parameters and return type are shown in the signature.
putmethodput(checkpoint: ReActContinuationCheckpoint, idempotencyKey: string): Promise<ReActContinuationCheckpointPutResult>Public method; parameters and return type are shown in the signature.

ReActExecutionBudget

Global limits survive process restarts through ReActContinuationCheckpoint. quantumIterations only bounds one worker turn; it is not a new total budget.

  • Kind: interface
  • Import: import type { ReActExecutionBudget } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ReActExecutionBudget {
    maxIterations: number;
    maxModelCalls: number;
    maxToolCalls: number;
    maxTotalTokens?: number;
    maxConsecutiveNoProgress: number;
    quantumIterations: number;
    deadlineAt?: string;
}

Contract members

MemberKindSignatureDescription
deadlineAtpropertydeadlineAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
maxConsecutiveNoProgresspropertymaxConsecutiveNoProgress: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
maxIterationspropertymaxIterations: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
maxModelCallspropertymaxModelCalls: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
maxToolCallspropertymaxToolCalls: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
maxTotalTokenspropertymaxTotalTokens?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
quantumIterationspropertyquantumIterations: numberPublic property; its type, readonly modifier and optionality are shown in the signature.

ReActObservation

ReAct Observation interface with 3 public fields or methods.

  • Kind: interface
  • Import: import type { ReActObservation } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ReActObservation<TValue = unknown> {
    source: 'model' | 'tool' | 'memory' | 'human' | 'system';
    value: TValue;
    provenance?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
provenancepropertyprovenance?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
sourcepropertysource: "memory" | "system" | "human" | "tool" | "model"Public property; its type, readonly modifier and optionality are shown in the signature.
valuepropertyvalue: TValuePublic property; its type, readonly modifier and optionality are shown in the signature.

ReActRunContext

ReAct Run Context interface with 14 public fields or methods.

  • Kind: interface
  • Import: import type { ReActRunContext } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ReActRunContext {
    runId: string;
    stepId: string;
    agent: ReActAgentSpec;
    messages: ModelMessage[];
    memoryScope?: MemoryScope;
    contextSpec?: ContextSpec;
    metadata?: Record<string, unknown>;
    reasoningConfig?: ReasoningConfig;
    thinkingPlan?: ThinkingPlan;
    reasoningDecision?: AgenticReasoningDecision;
    activeSkills?: LoadedSkillContext[];
    rejectedSkills?: Array<{
        skillId: string;
        reason: string;
    }>;
    toolExecutionScope?: ToolExecutionScope;
    toolPrincipal?: ToolPrincipal;
}

Contract members

MemberKindSignatureDescription
activeSkillspropertyactiveSkills?: LoadedSkillContext[]Public property; its type, readonly modifier and optionality are shown in the signature.
agentpropertyagent: ReActAgentSpecPublic property; its type, readonly modifier and optionality are shown in the signature.
contextSpecpropertycontextSpec?: ContextSpecPublic property; its type, readonly modifier and optionality are shown in the signature.
memoryScopepropertymemoryScope?: MemoryScopePublic property; its type, readonly modifier and optionality are shown in the signature.
messagespropertymessages: ModelMessage[]Public property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
reasoningConfigpropertyreasoningConfig?: ReasoningConfigPublic property; its type, readonly modifier and optionality are shown in the signature.
reasoningDecisionpropertyreasoningDecision?: AgenticReasoningDecisionPublic property; its type, readonly modifier and optionality are shown in the signature.
rejectedSkillspropertyrejectedSkills?: { skillId: string; reason: string; }[]Public property; its type, readonly modifier and optionality are shown in the signature.
runIdpropertyrunId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
stepIdpropertystepId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
thinkingPlanpropertythinkingPlan?: ThinkingPlanPublic property; its type, readonly modifier and optionality are shown in the signature.
toolExecutionScopepropertytoolExecutionScope?: ToolExecutionScopePublic property; its type, readonly modifier and optionality are shown in the signature.
toolPrincipalpropertytoolPrincipal?: ToolPrincipalPublic property; its type, readonly modifier and optionality are shown in the signature.

ReActRunControl

ReAct Run Control interface with 4 public fields or methods.

  • Kind: interface
  • Import: import type { ReActRunControl } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ReActRunControl {
    checkpoint?: ReActContinuationCheckpoint;
    executionBudget?: Partial<ReActExecutionBudget>;
    abortSignal?: AbortSignal;
    resumeFromCheckpointStore?: boolean;
}

Contract members

MemberKindSignatureDescription
abortSignalpropertyabortSignal?: AbortSignalPublic property; its type, readonly modifier and optionality are shown in the signature.
checkpointpropertycheckpoint?: ReActContinuationCheckpointPublic property; its type, readonly modifier and optionality are shown in the signature.
executionBudgetpropertyexecutionBudget?: Partial<ReActExecutionBudget>Public property; its type, readonly modifier and optionality are shown in the signature.
resumeFromCheckpointStorepropertyresumeFromCheckpointStore?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.

ReActRunnerOptions

ReAct Runner Options interface with 13 public fields or methods.

  • Kind: interface
  • Import: import type { ReActRunnerOptions } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ReActRunnerOptions {
    inference: InferenceProvider;
    toolRunner?: ToolRunner;
    maxIterations?: number;
    executionBudget?: Partial<ReActExecutionBudget>;
    checkpointStore?: ReActContinuationCheckpointStore;
    continueAfterTool?: boolean;
    onStep?: (step: ReActStep) => Promise<void> | void;
    onCheckpoint?: (checkpoint: ReActContinuationCheckpoint) => Promise<void> | void;
    onResume?: (checkpoint: ReActContinuationCheckpoint) => Promise<void> | void;
    syncMemory?: (context: ReActRunContext, observation: ReActObservation) => Promise<void>;
    /**
     * Keep the latest durable checkpoint until an outer transaction records the
     * terminal/waiting outcome. Production quantum executors use this to avoid
     * an unrecoverable gap between Runner completion and Event persistence.
     */
    retainCheckpointUntilOutcome?: boolean;
    resolveToolExecutionScope?: (context: ReActRunContext, action: ReActAction) => ToolExecutionScope | undefined;
    now?: () => string;
}

Contract members

MemberKindSignatureDescription
checkpointStorepropertycheckpointStore?: ReActContinuationCheckpointStorePublic property; its type, readonly modifier and optionality are shown in the signature.
continueAfterToolpropertycontinueAfterTool?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
executionBudgetpropertyexecutionBudget?: Partial<ReActExecutionBudget>Public property; its type, readonly modifier and optionality are shown in the signature.
inferencepropertyinference: InferenceProviderPublic property; its type, readonly modifier and optionality are shown in the signature.
maxIterationspropertymaxIterations?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
nowmethodnow?(): stringPublic method; parameters and return type are shown in the signature.
onCheckpointmethodonCheckpoint?(checkpoint: ReActContinuationCheckpoint): Promise<void> | voidPublic method; parameters and return type are shown in the signature.
onResumemethodonResume?(checkpoint: ReActContinuationCheckpoint): Promise<void> | voidPublic method; parameters and return type are shown in the signature.
onStepmethodonStep?(step: ReActStep): Promise<void> | voidPublic method; parameters and return type are shown in the signature.
resolveToolExecutionScopemethodresolveToolExecutionScope?(context: ReActRunContext, action: ReActAction): ToolExecutionScope | undefinedPublic method; parameters and return type are shown in the signature.
retainCheckpointUntilOutcomepropertyretainCheckpointUntilOutcome?: booleanKeep the latest durable checkpoint until an outer transaction records the terminal/waiting outcome. Production quantum executors use this to avoid an unrecoverable gap between Runner completion and Event persistence.
syncMemorymethodsyncMemory?(context: ReActRunContext, observation: ReActObservation): Promise<void>Public method; parameters and return type are shown in the signature.
toolRunnerpropertytoolRunner?: ToolRunnerPublic property; its type, readonly modifier and optionality are shown in the signature.

ReActRunResult

ReAct Run Result interface with 8 public fields or methods.

  • Kind: interface
  • Import: import type { ReActRunResult } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ReActRunResult {
    runId: string;
    status: 'completed' | 'failed' | 'human_review_required' | 'suspended' | 'cancelled';
    steps: ReActStep[];
    output?: unknown;
    finalAction?: ReActAction;
    checkpoint?: ReActContinuationCheckpoint;
    suspension?: ReActSuspension;
    error?: unknown;
}

Contract members

MemberKindSignatureDescription
checkpointpropertycheckpoint?: ReActContinuationCheckpointPublic property; its type, readonly modifier and optionality are shown in the signature.
errorpropertyerror?: unknownPublic property; its type, readonly modifier and optionality are shown in the signature.
finalActionpropertyfinalAction?: ReActActionPublic property; its type, readonly modifier and optionality are shown in the signature.
outputpropertyoutput?: unknownPublic property; its type, readonly modifier and optionality are shown in the signature.
runIdpropertyrunId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
statuspropertystatus: "completed" | "cancelled" | "failed" | "suspended" | "human_review_required"Public property; its type, readonly modifier and optionality are shown in the signature.
stepspropertysteps: ReActStep[]Public property; its type, readonly modifier and optionality are shown in the signature.
suspensionpropertysuspension?: ReActSuspensionPublic property; its type, readonly modifier and optionality are shown in the signature.

ReActStep

ReAct Step interface with 5 public fields or methods.

  • Kind: interface
  • Import: import type { ReActStep } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ReActStep {
    id: string;
    phase: ReActPhase;
    input?: unknown;
    output?: unknown;
    traceEventId?: string;
}

Contract members

MemberKindSignatureDescription
idpropertyid: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
inputpropertyinput?: unknownPublic property; its type, readonly modifier and optionality are shown in the signature.
outputpropertyoutput?: unknownPublic property; its type, readonly modifier and optionality are shown in the signature.
phasepropertyphase: ReActPhasePublic property; its type, readonly modifier and optionality are shown in the signature.
traceEventIdpropertytraceEventId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

ReActSuspension

ReAct Suspension interface with 4 public fields or methods.

  • Kind: interface
  • Import: import type { ReActSuspension } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ReActSuspension {
    reason: ReActSuspensionReason;
    retryable: boolean;
    requiresHumanReview: boolean;
    message: string;
}

Contract members

MemberKindSignatureDescription
messagepropertymessage: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
reasonpropertyreason: "quantum_exhausted" | "iteration_budget_exhausted" | "model_call_budget_exhausted" | "tool_call_budget_exhausted" | "token_budget_exhausted" | "non_progress" | "deadline_exceeded"Public property; its type, readonly modifier and optionality are shown in the signature.
requiresHumanReviewpropertyrequiresHumanReview: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
retryablepropertyretryable: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.

ReasoningConfig

Reasoning Config interface with 7 public fields or methods.

  • Kind: interface
  • Import: import type { ReasoningConfig } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ReasoningConfig {
    thinkingMode?: ThinkingMode;
    agenticMode?: AgenticReasoningMode;
    maxSteps?: number;
    persist?: ReasoningPersistence;
    plannerRef?: string;
    reasonerRef?: string;
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
agenticModepropertyagenticMode?: AgenticReasoningModePublic property; its type, readonly modifier and optionality are shown in the signature.
maxStepspropertymaxSteps?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
persistpropertypersist?: ReasoningPersistencePublic property; its type, readonly modifier and optionality are shown in the signature.
plannerRefpropertyplannerRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
reasonerRefpropertyreasonerRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
thinkingModepropertythinkingMode?: ThinkingModePublic property; its type, readonly modifier and optionality are shown in the signature.

ReasoningContextBuilderOptions

Reasoning Context Builder Options interface with 5 public fields or methods.

  • Kind: interface
  • Import: import type { ReasoningContextBuilderOptions } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ReasoningContextBuilderOptions {
    baseBuilder?: ContextBuilder;
    planner?: ThinkingPlanner;
    reasoner?: AgenticReasoner;
    config?: ReasoningConfig;
    now?: () => string;
}

Contract members

MemberKindSignatureDescription
baseBuilderpropertybaseBuilder?: ContextBuilderPublic property; its type, readonly modifier and optionality are shown in the signature.
configpropertyconfig?: ReasoningConfigPublic property; its type, readonly modifier and optionality are shown in the signature.
nowmethodnow?(): stringPublic method; parameters and return type are shown in the signature.
plannerpropertyplanner?: ThinkingPlannerPublic property; its type, readonly modifier and optionality are shown in the signature.
reasonerpropertyreasoner?: AgenticReasonerPublic property; its type, readonly modifier and optionality are shown in the signature.

RequiredReasoningConfig

Required Reasoning Config interface with 7 public fields or methods.

  • Kind: interface
  • Import: import type { RequiredReasoningConfig } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface RequiredReasoningConfig extends Required<Omit<ReasoningConfig, 'plannerRef' | 'reasonerRef' | 'metadata'>> {
    plannerRef?: string;
    reasonerRef?: string;
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
agenticModepropertyagenticMode?: AgenticReasoningModePublic property; its type, readonly modifier and optionality are shown in the signature.
maxStepspropertymaxSteps?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
persistpropertypersist?: ReasoningPersistencePublic property; its type, readonly modifier and optionality are shown in the signature.
plannerRefpropertyplannerRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
reasonerRefpropertyreasonerRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
thinkingModepropertythinkingMode?: ThinkingModePublic property; its type, readonly modifier and optionality are shown in the signature.

SkillContextBuilderOptions

Skill Context Builder Options interface with 9 public fields or methods.

  • Kind: interface
  • Import: import type { SkillContextBuilderOptions } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface SkillContextBuilderOptions {
    registry: SkillRegistry;
    baseBuilder?: ContextBuilder;
    selector?: SkillSelector;
    contextLoader?: SkillContextLoader;
    policy?: SkillPolicy;
    allowedSkills?: string[] | ((input: ContextBuildInput, base: BuiltAgentContext) => string[] | undefined | Promise<string[] | undefined>);
    requiredSkills?: string[] | ((input: ContextBuildInput, base: BuiltAgentContext) => string[] | undefined | Promise<string[] | undefined>);
    availableToolRefs?: string[] | ((input: ContextBuildInput, base: BuiltAgentContext) => string[] | Promise<string[]>);
    now?: () => string;
}

Contract members

MemberKindSignatureDescription
allowedSkillspropertyallowedSkills?: string[] | ((input: ContextBuildInput, base: BuiltAgentContext) => string[] | undefined | Promise<string[] | undefined>)Public property; its type, readonly modifier and optionality are shown in the signature.
availableToolRefspropertyavailableToolRefs?: string[] | ((input: ContextBuildInput, base: BuiltAgentContext) => string[] | Promise<string[]>)Public property; its type, readonly modifier and optionality are shown in the signature.
baseBuilderpropertybaseBuilder?: ContextBuilderPublic property; its type, readonly modifier and optionality are shown in the signature.
contextLoaderpropertycontextLoader?: SkillContextLoaderPublic property; its type, readonly modifier and optionality are shown in the signature.
nowmethodnow?(): stringPublic method; parameters and return type are shown in the signature.
policypropertypolicy?: SkillPolicyPublic property; its type, readonly modifier and optionality are shown in the signature.
registrypropertyregistry: SkillRegistryPublic property; its type, readonly modifier and optionality are shown in the signature.
requiredSkillspropertyrequiredSkills?: string[] | ((input: ContextBuildInput, base: BuiltAgentContext) => string[] | undefined | Promise<string[] | undefined>)Public property; its type, readonly modifier and optionality are shown in the signature.
selectorpropertyselector?: SkillSelectorPublic property; its type, readonly modifier and optionality are shown in the signature.

ThinkingPlan

Thinking Plan interface with 10 public fields or methods.

  • Kind: interface
  • Import: import type { ThinkingPlan } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ThinkingPlan {
    id: string;
    mode: Exclude<ThinkingMode, 'none'>;
    intent: string;
    constraints: string[];
    successCriteria: string[];
    plan: string[];
    risks: string[];
    summary: string;
    createdAt: string;
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
constraintspropertyconstraints: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
createdAtpropertycreatedAt: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
idpropertyid: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
intentpropertyintent: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
modepropertymode: "structured" | "summary"Public property; its type, readonly modifier and optionality are shown in the signature.
planpropertyplan: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
riskspropertyrisks: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
successCriteriapropertysuccessCriteria: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
summarypropertysummary: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

ThinkingPlanner

Thinking Planner interface with 1 public fields or methods.

  • Kind: interface
  • Import: import type { ThinkingPlanner } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ThinkingPlanner {
    plan(input: ThinkingPlannerInput): Promise<ThinkingPlan>;
}

Contract members

MemberKindSignatureDescription
planmethodplan(input: ThinkingPlannerInput): Promise<ThinkingPlan>Public method; parameters and return type are shown in the signature.

ThinkingPlannerInput

Thinking Planner Input interface with 2 public fields or methods.

  • Kind: interface
  • Import: import type { ThinkingPlannerInput } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ThinkingPlannerInput {
    context: BuiltAgentContext;
    config: RequiredReasoningConfig;
}

Contract members

MemberKindSignatureDescription
configpropertyconfig: RequiredReasoningConfigPublic property; its type, readonly modifier and optionality are shown in the signature.
contextpropertycontext: BuiltAgentContextPublic property; its type, readonly modifier and optionality are shown in the signature.

ToolActivityPort

Tool Activity Port interface with 2 public fields or methods.

  • Kind: interface
  • Import: import type { ToolActivityPort } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ToolActivityPort {
    execute(request: ToolActivityRequest): Promise<ToolActivityResult>;
    cancel(invocationId: string, reason?: string): Promise<ToolActivityResult | null>;
}

Contract members

MemberKindSignatureDescription
cancelmethodcancel(invocationId: string, reason?: string): Promise<ToolActivityResult | null>Public method; parameters and return type are shown in the signature.
executemethodexecute(request: ToolActivityRequest): Promise<ToolActivityResult>Public method; parameters and return type are shown in the signature.

ToolActivityRequest

Tool Activity Request interface with 10 public fields or methods.

  • Kind: interface
  • Import: import type { ToolActivityRequest } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ToolActivityRequest {
    operationId: string;
    invocationId: string;
    runId: string;
    stateAttemptId: string;
    toolRef: SpecRef;
    input: unknown;
    principal: ToolPrincipal;
    deadlineAt?: string;
    idempotencyKey?: string;
    contractSnapshotRef?: string;
}

Contract members

MemberKindSignatureDescription
contractSnapshotRefpropertycontractSnapshotRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
deadlineAtpropertydeadlineAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
idempotencyKeypropertyidempotencyKey?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
inputpropertyinput: unknownPublic property; its type, readonly modifier and optionality are shown in the signature.
invocationIdpropertyinvocationId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
operationIdpropertyoperationId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
principalpropertyprincipal: ToolPrincipalPublic property; its type, readonly modifier and optionality are shown in the signature.
runIdpropertyrunId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
stateAttemptIdpropertystateAttemptId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
toolRefpropertytoolRef: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.

ToolActivityResult

Tool Activity Result interface with 7 public fields or methods.

  • Kind: interface
  • Import: import type { ToolActivityResult } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface ToolActivityResult {
    invocationId: string;
    status: 'completed' | 'failed' | 'denied' | 'waiting_approval' | 'cancelled' | 'conflict';
    output?: unknown;
    artifactRefs?: string[];
    approvalRequestRef?: string;
    eventIds: string[];
    error?: NormalizedToolError;
}

Contract members

MemberKindSignatureDescription
approvalRequestRefpropertyapprovalRequestRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
artifactRefspropertyartifactRefs?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
errorpropertyerror?: NormalizedToolErrorPublic property; its type, readonly modifier and optionality are shown in the signature.
eventIdspropertyeventIds: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
invocationIdpropertyinvocationId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
outputpropertyoutput?: unknownPublic property; its type, readonly modifier and optionality are shown in the signature.
statuspropertystatus: "completed" | "cancelled" | "failed" | "denied" | "conflict" | "waiting_approval"Public property; its type, readonly modifier and optionality are shown in the signature.

Verifier

Verifier interface with 1 public fields or methods.

  • Kind: interface
  • Import: import type { Verifier } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export interface Verifier {
    verify(context: ReActRunContext, observation: ReActObservation): Promise<ReActAction>;
}

Contract members

MemberKindSignatureDescription
verifymethodverify(context: ReActRunContext, observation: ReActObservation): Promise<ReActAction>Public method; parameters and return type are shown in the signature.

AgenticReasoningMode

Public type alias for Agentic Reasoning Mode; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { AgenticReasoningMode } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export type AgenticReasoningMode = 'react' | 'fsm_react' | 'tot' | 'critique';

ReActPhase

Public type alias for ReAct Phase; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { ReActPhase } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export type ReActPhase = 'observe' | 'reason' | 'select_action' | 'policy_check' | 'act' | 'observe_result' | 'verify' | 'memory_sync' | 'complete' | 'fail' | 'human_review' | 'suspend' | 'cancel';

ReActSuspensionReason

Public type alias for ReAct Suspension Reason; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { ReActSuspensionReason } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export type ReActSuspensionReason = (typeof REACT_SUSPENSION_REASONS)[number];

ReasoningPersistence

Public type alias for Reasoning Persistence; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { ReasoningPersistence } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export type ReasoningPersistence = 'summary_only' | 'events_only';

ThinkingMode

Public type alias for Thinking Mode; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { ThinkingMode } from '@codesoul-co/hypha-kernel';
  • Source module: index

Declaration

text
export type ThinkingMode = 'none' | 'summary' | 'structured';