Functions
Summarize
Create concise summaries of any 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 summarizeinstructions
: Optional guidance for the summaryagent
: Optional custom agent to usethread
: Optional thread for conversation contextcontext
: 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: