AgentToolCallSpec class final
Resolved visual properties for an AgentToolCall: the row, the output well and the approval card.
Every slot is empty by default; presets supply the look.
- Implemented types
- Annotations
-
- @MixableSpec.new()
- @immutable
Constructors
-
AgentToolCallSpec({StyleSpec<
FlexBoxSpec> ? row, StyleSpec<IconSpec> ? icon, StyleSpec<TextSpec> ? summary, StyleSpec<TextSpec> ? meta, StyleSpec<TextSpec> ? toolId, StyleSpec<FlexBoxSpec> ? status, StyleSpec<IconSpec> ? statusIcon, StyleSpec<TextSpec> ? statusLabel, StyleSpec<IconSpec> ? indicator, StyleSpec<BoxSpec> ? output, double? outputMaxHeight, StyleSpec<FlexBoxSpec> ? outputToggle, StyleSpec<TextSpec> ? outputToggleLabel, StyleSpec<BoxSpec> ? outputContent, StyleSpec<TextSpec> ? outputText, StyleSpec<BoxSpec> ? error, StyleSpec<TextSpec> ? errorText, StyleSpec<BoxSpec> ? card, StyleSpec<FlexBoxSpec> ? cardBody, StyleSpec<BoxSpec> ? cardIcon, StyleSpec<IconSpec> ? cardGlyph, StyleSpec<FlexBoxSpec> ? cardContent, StyleSpec<FlexBoxSpec> ? cardHeading, StyleSpec<FlexBoxSpec> ? cardTitleRow, StyleSpec<TextSpec> ? title, StyleSpec<TextSpec> ? description, }) -
Creates a spec; every slot defaults to empty.
const
Properties
-
card
→ StyleSpec<
BoxSpec> -
The approval card.
final
-
cardBody
→ StyleSpec<
FlexBoxSpec> -
The card's body: its icon beside its content.
final
-
cardContent
→ StyleSpec<
FlexBoxSpec> -
The card's content: heading, description and input.
final
-
cardGlyph
→ StyleSpec<
IconSpec> -
The card's icon.
final
-
cardHeading
→ StyleSpec<
FlexBoxSpec> -
The card's heading: the question row over the tool id.
final
-
cardIcon
→ StyleSpec<
BoxSpec> -
The tile behind the card's icon.
final
-
cardTitleRow
→ StyleSpec<
FlexBoxSpec> -
The question beside the status.
final
-
description
→ StyleSpec<
TextSpec> -
The card's description.
final
-
error
→ StyleSpec<
BoxSpec> -
Wraps the error text, after the output.
final
-
errorText
→ StyleSpec<
TextSpec> -
The error text.
final
-
The card's footer of actions.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
icon
→ StyleSpec<
IconSpec> -
The tool's icon on the row.
final
-
indicator
→ StyleSpec<
IconSpec> -
The glyph that shows whether the output well is open.
final
-
meta
→ StyleSpec<
TextSpec> -
The inline meta: style, directives, locale and semantics for the detail,
duration and decision.
final
-
output
→ StyleSpec<
BoxSpec> -
The output well.
final
-
outputContent
→ StyleSpec<
BoxSpec> -
Wraps the output text.
final
- outputMaxHeight → double?
-
The tallest the well's content grows before it scrolls and offers
"Show all". Null leaves the content unbounded.
final
-
outputText
→ StyleSpec<
TextSpec> -
The output text.
final
-
outputToggle
→ StyleSpec<
FlexBoxSpec> -
The "Show all" / "Show less" button below overflowing output.
final
-
outputToggleLabel
→ StyleSpec<
TextSpec> -
The output toggle's label.
final
-
props
→ List<
Object?> -
The properties based on which equality and hash code are computed.
no setterinherited
-
row
→ StyleSpec<
FlexBoxSpec> -
The row: icon, text, status and indicator. Resolves hover, press and
focus variants from the row's interaction state.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
status
→ StyleSpec<
FlexBoxSpec> -
The status: its glyph and word.
final
-
statusIcon
→ StyleSpec<
IconSpec> -
The status glyph.
final
-
statusLabel
→ StyleSpec<
TextSpec> -
The status word.
final
- stringify → bool
-
Whether to use a detailed string representation of the object.
no setterinherited
-
summary
→ StyleSpec<
TextSpec> -
The call's summary and the row's paragraph configuration.
The row always uses one line with an ellipsis.
final
-
title
→ StyleSpec<
TextSpec> -
The card's question.
final
-
toolId
→ StyleSpec<
TextSpec> -
The tool id, inline on the row and as a full text slot on the card.
final
- type → Type
-
no setterinherited
Methods
-
copyWith(
{StyleSpec< FlexBoxSpec> ? row, StyleSpec<IconSpec> ? icon, StyleSpec<TextSpec> ? summary, StyleSpec<TextSpec> ? meta, StyleSpec<TextSpec> ? toolId, StyleSpec<FlexBoxSpec> ? status, StyleSpec<IconSpec> ? statusIcon, StyleSpec<TextSpec> ? statusLabel, StyleSpec<IconSpec> ? indicator, StyleSpec<BoxSpec> ? output, double? outputMaxHeight, StyleSpec<FlexBoxSpec> ? outputToggle, StyleSpec<TextSpec> ? outputToggleLabel, StyleSpec<BoxSpec> ? outputContent, StyleSpec<TextSpec> ? outputText, StyleSpec<BoxSpec> ? error, StyleSpec<TextSpec> ? errorText, StyleSpec<BoxSpec> ? card, StyleSpec<FlexBoxSpec> ? cardBody, StyleSpec<BoxSpec> ? cardIcon, StyleSpec<IconSpec> ? cardGlyph, StyleSpec<FlexBoxSpec> ? cardContent, StyleSpec<FlexBoxSpec> ? cardHeading, StyleSpec<FlexBoxSpec> ? cardTitleRow, StyleSpec<TextSpec> ? title, StyleSpec<TextSpec> ? description, }) → AgentToolCallSpec -
Creates a copy of this spec with the given fields
replaced by the non-null parameter values.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
getDiff(
Equatable other) → Map< String, String> -
Returns a map of properties that differ between this object and another.
inherited
-
lerp(
covariant AgentToolCallSpec? other, double t) → AgentToolCallSpec -
Linearly interpolates with another Spec object.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited