| 1 | package provider |
| 2 | |
| 3 | // OutputBudgetProvider reports the output budget used when a request leaves it unset. |
| 4 | type OutputBudgetProvider interface { |
| 5 | OutputBudget() int |
| 6 | } |
| 7 | |
| 8 | // SharedWindowOutputProvider reports whether input and output share one window. |
| 9 | type SharedWindowOutputProvider interface { |
| 10 | SharesContextWindow() bool |
| 11 | } |
| 12 | |
| 13 | // SharedWindowInputPolicy describes adapter-specific text replayed into a |
| 14 | // shared context window in addition to the fields common to all transports. |
| 15 | type SharedWindowInputPolicy struct { |
| 16 | ReplaysOrdinaryReasoning bool |
| 17 | ReplaysResponsesItems bool |
| 18 | } |
| 19 | |
| 20 | // SharedWindowInputPolicyProvider reports adapter-specific replay behavior so |
| 21 | // admission estimates can follow the actual wire without changing its bytes. |
| 22 | type SharedWindowInputPolicyProvider interface { |
| 23 | SharedWindowInputPolicy() SharedWindowInputPolicy |
| 24 | } |
| 25 |