Skip to content

Documentation / @agentick/core / Grounding

Function: Grounding() ​

Grounding(props): Element

Defined in: core/src/jsx/components/messages.tsx:377

Grounding component - semantic wrapper for Ephemeral.

For dynamic state and world information that the model should be aware of. This is ephemeral content (not persisted) that provides current context.

Formatting (delimiters, etc.) is configured at the model level via modelOptions.messageTransformation, not in JSX props.

Parameters ​

props ​

GroundingProps

Returns ​

Element

Example ​

ts
// Basic usage with title
<Grounding title="Current State">
  Active todos: {JSON.stringify(todos)}
</Grounding>

// Positioned before user's message
<Grounding title="User Preferences" position="before-user">
  Theme: dark, Language: en
</Grounding>

// With type for semantic categorization
<Grounding type="system_state" audience="model">
  {stateJson}
</Grounding>

Released under the ISC License.