Summarization

Create short, detailed, or structured summaries with the Python SDK.

result = client.summarize(
    text=transcript_text,
    language="Hausa",
    style="short",
)
 
print(result.text)

Available styles are short, detailed, and structured. All summaries are returned in English.

Structured output

result = client.summarize(
    transcript_text,
    language="Hausa",
    style="structured",
)
 
summary = result.structured
print(summary.customer_issue)
print(summary.resolution_status)
print(summary.next_action)

Nullable structured fields are None when the source does not state them. Structured summaries do not stream.

Background job

job = client.submit_text_job(
    task="summarize",
    text=transcript_text,
    language="Hausa",
    style="structured",
)
completed = client.wait_for_text_job(job.job_id)

See Summarization, Structured extraction, and the Summarization API.

On this page