Model Selector
Two menus: one picks the model the agent runs, the other picks how hard it thinks.
Usage
Model Selector
import { Component, ViewEncapsulation, computed, signal } from '@angular/core';import { FormField, FormRoot, form } from '@angular/forms/signals';import { ScInputGroup, ScInputGroupAddon, ScInputGroupButton, ScMenu, ScMenuContent, ScMenuGroup, ScMenuItemIndicator, Two Menus with radio items, their triggers buttons in the Input Group of a Prompt Input. Choosing closes the menu (closeOnClick); the trigger shows the choice, its name says what it is ("Model: GPT-5", the word in hidden text).
Anatomy
import { ScMenuProvider, ScMenuTrigger, ScMenuPortal, ScMenu, ScMenuContent, ScMenuGroup, ScMenuLabel, ScMenuRadioGroup, ScMenuRadioItem, ScMenuItemIndicator, ScInputGroup, ScInputGroupAddon, ScInputGroupButton, ScTextarea,} from '@semantic-components/ui';<div scInputGroup> <textarea scTextarea aria-label="Message"></textarea> <div scInputGroupAddon side="bottom"> <div scMenuProvider alignment="start"> <button scInputGroupButton scMenuTrigger size="sm" variant="outline"> <span class="sr-only">Model: </span>GPT-5 <svg siChevronDownIcon></svg> </button> <ng-template scMenuPortal> <div scMenu> <ng-template scMenuContent> <div scMenuRadioGroup [value]="model()" (valueChange)="model.set($event)"> <div scMenuRadioItem closeOnClick value="gpt-5"> <span scMenuItemIndicator><svg siCheckIcon></svg></span> GPT-5 </div> … </div> </ng-template> </div> </ng-template> </div> </div></div>Sending
Send the model and the effort with the message; the server maps them to a model and its provider's options.
Examples
RTL
import { Dir } from '@angular/cdk/bidi';import { Component, LOCALE_ID, ViewEncapsulation, signal } from '@angular/core';import { ScInputGroup, ScInputGroupAddon, ScInputGroupButton, ScMenu, ScMenuContent, ScMenuItemIndicator, ScMenuPortal,API reference
See the Menu and the Input Group.