Sources

The links the agent used for a reply: a line that says how many there are, like "Used 3 sources", and opens into a link for each.

Usage

Sources

How do I start an Astro project with pnpm?

Run pnpm create astro@latest and follow the prompts. It scaffolds the project and installs the dependencies.

import {  Component,  DestroyRef,  ViewEncapsulation,  computed,  inject,  signal,} from '@angular/core';import {  ScBubble,

A Trace with a collapsible line for the list, after the reply. The agent can cite the same page more than once: list each once, by its address. A title is optional — fall back to the page's host. To cite in the sentence itself, use an Inline Citation.

Anatomy

import {  ScTrace, ScTraceLine, ScTraceIcon, ScTraceTitle,  ScTraceCollapsible, ScTraceCollapsibleTrigger, ScTraceCollapsiblePanelContent,  ScCollapsible, ScCollapsibleTrigger, ScCollapsiblePanel,} from '@semantic-components/ui';
<div scTrace>  <div scCollapsible scTraceCollapsible>    <button scCollapsibleTrigger scTraceCollapsibleTrigger>      <span scTraceLine>        <span scTraceIcon><svg siGlobeIcon></svg></span>        <span scTraceTitle>Used {{ sources.length }} sources</span>      </span>    </button>    <div scCollapsiblePanel>      <div scTraceCollapsiblePanelContent>        <div scTrace>          <a [href]="source.url" target="_blank" rel="noreferrer">            <span scTraceLine>              <span scTraceTitle>                {{ source.title }}                <span class="sr-only"> (opens in a new tab)</span>              </span>              <span scTraceIcon><svg siArrowUpRightIcon></svg></span>            </span>          </a>        </div>      </div>    </div>  </div></div>

Accessibility

  • Each source is a plain link in the list. It opens in a new tab: say so in hidden text, "(opens in a new tab)".
  • The arrow is decorative; the title is the link's name.
  • The count, "Used 3 sources", tells the person what opens before they open it.

Examples

RTL

import { Dir } from '@angular/cdk/bidi';import { Component, LOCALE_ID, ViewEncapsulation } from '@angular/core';import {  ScCollapsible,  ScCollapsiblePanel,  ScCollapsibleTrigger,  ScTrace,  ScTraceCollapsible,  ScTraceCollapsiblePanelContent,  ScTraceCollapsibleTrigger,

API reference

See the Trace.