Formatting Module

Formatting utilities for pipeline outputs with agent support.

agent.pipeline.formatting.to_telegram_html(output)[source]

Synchronous facade using the fallback to avoid event loop requirements.

Parameters:

output (PipelineOutput) – Full pipeline output to format.

Return type:

str

Returns:

Telegram-friendly HTML string.

async agent.pipeline.formatting.to_telegram_html_agent(output)[source]

Agent-based formatter; falls back to local template on failure.

Parameters:

output (PipelineOutput) – Full pipeline output to format.

Return type:

str

Returns:

Telegram-friendly HTML string.