tooluniverse.tools.OutputSummarizationComposer module¶
OutputSummarizationComposer
Composes output summarization workflow by chunking long outputs, processing each chunk with AI su…
- tooluniverse.tools.OutputSummarizationComposer.OutputSummarizationComposer(tool_output, query_context, tool_name, chunk_size=30000, focus_areas='key_findings_and_results', max_summary_length=10000, *, stream_callback=None, use_cache=False, validate=True)[source]¶
Composes output summarization workflow by chunking long outputs, processing each chunk with AI su…
- Parameters:
tool_output (
str) – The original tool output to be summarizedquery_context (
str) – Context about the original querytool_name (
str) – Name of the tool that generated the outputchunk_size (
int) – Size of each chunk for processingfocus_areas (
str) – Areas to focus on in summarizationmax_summary_length (
int) – Maximum length of final summarystream_callback (
Callable, optional) – Callback for streaming output
- Return type:
dict[str,Any]