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 summarized

  • query_context (str) – Context about the original query

  • tool_name (str) – Name of the tool that generated the output

  • chunk_size (int) – Size of each chunk for processing

  • focus_areas (str) – Areas to focus on in summarization

  • max_summary_length (int) – Maximum length of final summary

  • stream_callback (Callable, optional) – Callback for streaming output

  • use_cache (bool, default False) – Enable caching

  • validate (bool, default True) – Validate parameters

Return type:

Any