Skip to main content
Summarizing text is such a common operation that we created a dedicated function for it. The summarize function transforms any text into a concise summary, with optional instructions for format and focus. For complex summarization needs, consider creating a custom task. The summarize function is a convenient wrapper around Marvin’s task system - see Tasks for more details.

Usage

Create a simple summary:

Parameters

  • data: The content to summarize
  • instructions: Optional guidance for the summary
  • agent: Optional custom agent to use
  • thread: Optional thread for conversation context
  • context: Optional dict of additional context

Async Support

The function is also available in an async version:

Examples

Bullet Points

Get a structured summary:

With Context

Provide background information: