all_turns¶
all_turns(without=())
Show the model every earlier turn of the conversation (the default).
Running out of the model's context, and being told, is better than a model that silently misses what was said; so a conversation shows every earlier turn unless told otherwise.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
| without | list of str | Inputs or outputs left out of every earlier turn (a long document the model already answered about). The current turn is always whole. | () |
Returns¶
| Name | Type | Description |
|---|---|---|
| Context | For fn.conversation(context=...). |
See Also¶
last_turns: only the most recent turns.
Examples¶
import functai
from functai import *
# not run: part of a program (the Memory guide runs whole ones)
qa = reader.conversation(context=functai.all_turns(without=["document"]))