Your IP : 216.73.217.154


Current Path : /var/www/pythonian/streamlit/.venv/lib64/python3.10/site-packages/cohere/
Upload File :
Current File : /var/www/pythonian/streamlit/.venv/lib64/python3.10/site-packages/cohere/summarize.py

from typing import NamedTuple

SummarizeResponse = NamedTuple("SummarizeResponse", [("id", str), ("summary", str)])
SummarizeResponse.__doc__ = """
Returned by co.summarize, which generates a summary of the specified length for the provided text.

Example:
```
res = co.summarize(text="Stock market report for today...")
print(res.summary)
```

Example:
```
res = co.summarize(
    text="Stock market report for today...",
    model="summarize-xlarge",
    length="long",
    format="bullets",
    temperature=0.3,
    additional_command="focusing on the highest performing stocks")
print(res.summary)
```
"""