(part: Prompt.FilePart)
| 1675 | ): typeof Generated.CacheControlEphemeral.Encoded | undefined => part.options.anthropic?.cacheControl |
| 1676 | |
| 1677 | const getDocumentMetadata = (part: Prompt.FilePart): { |
| 1678 | readonly title: string | undefined |
| 1679 | readonly context: string | undefined |
| 1680 | } | undefined => { |
| 1681 | const options = part.options.anthropic |
| 1682 | if (Predicate.isNotUndefined(options)) { |
| 1683 | return { |
| 1684 | title: options.documentTitle, |
| 1685 | context: options.documentContext |
| 1686 | } |
| 1687 | } |
| 1688 | return undefined |
| 1689 | } |
| 1690 | |
| 1691 | const shouldEnableCitations = (part: Prompt.FilePart): boolean => part.options.anthropic?.citations?.enabled ?? false |
| 1692 |
no outgoing calls
no test coverage detected