s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Content · Components

ContentAgentChat

No summary has been written for ContentAgentChat. Everything below is generated from the declaration shipped in 0.44.0 and describes the real contract.

Public export

typescript
import { ContentAgentChat } from '@happyvertical/smrt-content/svelte';
Import path
@happyvertical/smrt-content/svelte
Props
10
Props described
10 of 10
Bindable state
0
Callback events
2
Verified release
0.44.0

Props

NameTypeRequiredDescription
apiBaseUrlstringNoBase URL for API requests to fetch and update chat sessions.
assistantContextContentEditorAssistantContext | nullNoContext object from the parent editor containing content and editor state.
contentIdstringNoIdentifier of the content being discussed in the chat.
currentEditorStatestringNoCurrent markdown or structured state of the content editor.
currentReferenceIdsstring[]NoList of reference or link identifiers mentioned in the content.
formFieldsRecord<string, string>NoCurrent form field values to include in AI context.
currentProfileIdstringNoIdentifier of the profile owner or collaborator in the chat.
assistantFieldAllowListContentEditorAssistantFieldUpdateAllowListNoPolicy object defining which fields the assistant can modify.
onapplyfields(fields: Record<string, string>) => voidNoFired when the assistant recommends field updates in its response.
onclose() => voidNoFired when the user closes the chat interface.

Bindable state

This component has no bindable public state.

Callback events

  • onapplyfields(fields: Record<string, string>) => void
  • onclose() => void

Examples and explanation