Skip to content

@codesoul-co/hypha-inference / pipeline

Using this module

Use the Pipeline module for using the public contracts and operations for this capability boundary. It exports 1 class, 1 interface.

Import from the package entrypoint

ts
import {
  HyphaInferencePipeline,
} from '@codesoul-co/hypha-inference';

import type {
  HyphaInferencePipelineOptions,
} from '@codesoul-co/hypha-inference';

Usage patterns

  • Use the 1 type/interface export as static contracts in application code, adapters, or tests. Import them with import type; they do not exist at runtime.
  • The module exposes 1 class as constructable runtime implementations. Each symbol entry lists its constructor and public methods.

Public exports

SymbolKindSignatureDescription
HyphaInferencePipelineclassnew HyphaInferencePipeline(options?: HyphaInferencePipelineOptions): HyphaInferencePipelineHypha Inference Pipeline class with 4 public constructor or member entries; its exact declarations are listed below.
HyphaInferencePipelineOptionsinterfaceinterface HyphaInferencePipelineOptionsHypha Inference Pipeline Options interface with 7 public fields or methods.

HyphaInferencePipeline

Hypha Inference Pipeline class with 4 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { HyphaInferencePipeline } from '@codesoul-co/hypha-inference';
  • Source module: pipeline

Declaration

text
export declare class HyphaInferencePipeline implements InferenceProvider {
    readonly id: string;
    constructor(options?: HyphaInferencePipelineOptions);
    infer(request: InferenceRequest): Promise<InferenceResponse>;
    stream(request: InferenceRequest): AsyncIterable<InferenceResponse>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(options?: HyphaInferencePipelineOptions): HyphaInferencePipelineCreates an instance of this class.
idpropertyreadonly id: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
infermethodinfer(request: InferenceRequest): Promise<InferenceResponse>Public method; parameters and return type are shown in the signature.
streammethodstream(request: InferenceRequest): AsyncIterable<InferenceResponse>Public method; parameters and return type are shown in the signature.

HyphaInferencePipelineOptions

Hypha Inference Pipeline Options interface with 7 public fields or methods.

  • Kind: interface
  • Import: import type { HyphaInferencePipelineOptions } from '@codesoul-co/hypha-inference';
  • Source module: pipeline

Declaration

text
export interface HyphaInferencePipelineOptions {
    id?: string;
    defaultBackendId?: string;
    compiler?: PromptCompiler;
    segmenter?: PrefixSegmenter;
    hotLayer?: PlasmodHotLayer;
    backends?: InferenceBackendRegistry;
    reusePolicy?: PlasmodReusePolicy;
}

Contract members

MemberKindSignatureDescription
backendspropertybackends?: InferenceBackendRegistryPublic property; its type, readonly modifier and optionality are shown in the signature.
compilerpropertycompiler?: PromptCompilerPublic property; its type, readonly modifier and optionality are shown in the signature.
defaultBackendIdpropertydefaultBackendId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
hotLayerpropertyhotLayer?: PlasmodHotLayerPublic 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.
reusePolicypropertyreusePolicy?: PlasmodReusePolicyPublic property; its type, readonly modifier and optionality are shown in the signature.
segmenterpropertysegmenter?: PrefixSegmenterPublic property; its type, readonly modifier and optionality are shown in the signature.