How an answer was bounded: cut at the output limit, scope too large, history left out, * and which of its names the model was not given.
({ shortened, packet, model, historyOmitted, unsupported = [] }: { shortened?: LimitNote; packet?: PreparedExplanationContext; model: string; historyOmitted?: number; unsupported?: readonly string[] })
| 147 | /** How an answer was bounded: cut at the output limit, scope too large, history left out, |
| 148 | * and which of its names the model was not given. */ |
| 149 | function AnswerNotes({ shortened, packet, model, historyOmitted, unsupported = [] }: { shortened?: LimitNote; packet?: PreparedExplanationContext; model: string; historyOmitted?: number; unsupported?: readonly string[] }): JSX.Element { |
| 150 | const capacity = packet?.capacity; |
| 151 | return <> |
| 152 | {unsupported.length > 0 && <small className="cbm-chat-answer-note">{browserChatText.unsupportedNames(unsupported)}</small>} |
| 153 | {shortened && <TokenLimitNote {...shortened} />} |
| 154 | {capacity && <small className="cbm-chat-answer-note">{browserChatText.capacity(capacity.nodes, capacity.edges, model, capacity.shown)}</small>} |
| 155 | {!!historyOmitted && <small className="cbm-chat-answer-note">{browserChatText.historyTrimmed(historyOmitted)}</small>} |
| 156 | </>; |
| 157 | } |
| 158 | |
| 159 | /** `codeOnly` where the listed facts already stand above it, in the explanation card. The |
| 160 | * source does not push the first graph facts out: a listed answer shows both (K14). */ |
nothing calls this directly
no outgoing calls
no test coverage detected