Documentation / @agentick/core / Model
Function: Model()
Model(
props):ReactElement
Defined in: core/src/jsx/components/model.tsx:63
Model component that dynamically sets the model adapter for the current execution.
Model is a configuration component - it sets which model adapter to use. It does NOT contain content (messages, timeline entries, etc.).
When mounted, sets the model on the COM. When unmounted, clears the model.
Parameters
props
ModelComponentProps
Returns
ReactElement
Example
tsx
<>
<Model model={myModel} />
<Message role="user" content="Hello" />
</>