(annotations: any[] | undefined)
| 2028 | |
| 2029 | const appendAnnotations = (annotations: any[] | undefined) => { |
| 2030 | if (!Array.isArray(annotations)) return; |
| 2031 | for (const entry of annotations) { |
| 2032 | if (entry?.type !== "url_citation") continue; |
| 2033 | appendSource(entry?.url, entry?.title); |
| 2034 | } |
| 2035 | }; |
| 2036 | |
| 2037 | const appendActionSources = (action: any) => { |
| 2038 | const sourceList = Array.isArray(action?.sources) |
| 2039 | ? action.sources |
no test coverage detected