Fourth verb: expand. The opposite of summarize — take a brief and produce more text from it. Outlines → paragraphs, bullets → prose, scaffolds → drafts.
outline = """
- Python is easy to learn
- It has a huge standard library
- It runs everywhere
"""
result = Agent(model).run_sync(f"Turn this outline into a 3-sentence paragraph:\n{outline}")
print(result.output)Use expand for first drafts you'll edit. The hallucination risk is real (the model fills in plausible details that may not match the source intent), so review before shipping.
Inverse of summarize. Input: a brief or outline. Output: more text.
result = Agent(model).run_sync(f"""
Write a 200-word product description from this brief:
- Product: time-tracker app
- Audience: freelancers
- Tone: friendly, practical
- Key features: hourly rates, invoice export, mobile app
""")The constraints (length, audience, tone, features) anchor the model to your intent.
Create a free account to get started. Paid plans unlock all tracks.
Fourth verb: expand. The opposite of summarize — take a brief and produce more text from it. Outlines → paragraphs, bullets → prose, scaffolds → drafts.
outline = """
- Python is easy to learn
- It has a huge standard library
- It runs everywhere
"""
result = Agent(model).run_sync(f"Turn this outline into a 3-sentence paragraph:\n{outline}")
print(result.output)Use expand for first drafts you'll edit. The hallucination risk is real (the model fills in plausible details that may not match the source intent), so review before shipping.
Inverse of summarize. Input: a brief or outline. Output: more text.
result = Agent(model).run_sync(f"""
Write a 200-word product description from this brief:
- Product: time-tracker app
- Audience: freelancers
- Tone: friendly, practical
- Key features: hourly rates, invoice export, mobile app
""")The constraints (length, audience, tone, features) anchor the model to your intent.