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