API Reference
Everything importable from hother.streamblocks, grouped by area. All names below are re-exported at the package root:
Processors
StreamBlockProcessor: single-syntax stream processor (the common case)ProtocolStreamProcessor: protocol-event processor with output adaptationProcessorConfig: event-volume and safety-limit configurationStreamState: processor stream state
Registry & Models
Registry: maps block types to block classes; owns the syntax.to_prompt(),register_template(),serialize_block(), andregistered_blockssupport prompt generationBlock[TMetadata, TContent]: user-facing generic block base;__examples__+get_examples()feed promptsExtractedBlock: runtime block with extraction metadataBlockCandidate: in-flight block accumulationBaseMetadata,BaseContent: base Pydantic models for block typing
Prompts
generate_block_prompt: build an instruction prompt for a single block typeTemplateManager: Jinja2 template management for prompt A/B versioning- See also
Registry.to_prompt()and the Generating Prompts guide
Events
Event: discriminated union of all event typesEventType,BlockState,BlockErrorCode: enums- Lifecycle:
StreamStartedEvent,StreamFinishedEvent,StreamErrorEvent - Text:
TextContentEvent,TextDeltaEvent - Block:
BlockStartEvent,BlockHeaderDeltaEvent,BlockMetadataDeltaEvent,BlockContentDeltaEvent,BlockMetadataEndEvent,BlockContentEndEvent,BlockEndEvent,BlockErrorEvent CustomEvent,BaseEvent
Syntaxes
DelimiterPreambleSyntax,DelimiterFrontmatterSyntax,MarkdownFrontmatterSyntaxBaseSyntax: base class for custom syntaxesSyntax: enum for factory-based selectionDetectionResult,ParseResult
Adapters
InputProtocolAdapter,OutputProtocolAdapter,BidirectionalAdapter: protocolsInputAdapterRegistry,detect_input_adapter: auto-detectionEventCategory: input event categorization
Parsing & Validation
parse_as_json,parse_as_yaml,ParseStrategy: content parsing decoratorsValidationResult,MetadataValidationFailureMode: validation types
Extensions
hother.streamblocks.extensions.gemini/.openai/.anthropic: provider input adaptershother.streamblocks.extensions.agui: bidirectional AG-UI adapters and filters
Integrations
hother.streamblocks.integrations.pydantic_ai:BlockAwareAgent,AgentStreamProcessor