@asgard-js/react 0.0.23 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -99,15 +99,21 @@ export default App;
99
99
  - `apiKey`: `string` (required) - API key for authentication
100
100
  - `endpoint`: `string` (required) - API endpoint URL
101
101
  - `botProviderEndpoint?`: `string` - Bot provider endpoint URL
102
- - `onExecutionError?`: `(error: ErrorEventData) => void` - Error handler for execution errors
103
102
  - `transformSsePayload?`: `(payload: FetchSsePayload) => FetchSsePayload` - SSE payload transformer
103
+ - `debugMode?`: `boolean` - Enable debug mode, defaults to `false`
104
+ - `onRunInit?`: `InitEventHandler` - Handler for run initialization events
105
+ - `onMessage?`: `MessageEventHandler` - Handler for message events
106
+ - `onToolCall?`: `ToolCallEventHandler` - Handler for tool call events
107
+ - `onProcess?`: `ProcessEventHandler` - Handler for process events
108
+ - `onRunDone?`: `DoneEventHandler` - Handler for run completion events
109
+ - `onRunError?`: `ErrorEventHandler` - Error handler for execution errors
110
+ - **customActions?**: `ReactNode[]` - Custom actions to display on the chatbot header
104
111
  - **enableLoadConfigFromService?**: `boolean` - Enable loading configuration from service
105
112
  - **maintainConnectionWhenClosed?**: `boolean` - Maintain connection when chat is closed, defaults to `false`
106
113
  - **loadingComponent?**: `ReactNode` - Custom loading component
107
114
  - **asyncInitializers?**: `Record<string, () => Promise<unknown>>` - Asynchronous initializers for app initialization before rendering any component. Good for loading data or other async operations as the initial state. It only works when `enableLoadConfigFromService` is set to `true`.
108
115
  - **customChannelId**: `string` - Custom channel identifier for the chat session
109
116
  - **initMessages**: `ConversationMessage[]` - Initial messages to display in the chat
110
- - **debugMode**: `boolean` - Enable debug mode, defaults to `false`
111
117
  - **fullScreen**: `boolean` - Display chatbot in full screen mode, defaults to `false`
112
118
  - **avatar**: `string` - URL for the chatbot's avatar image
113
119
  - **botTypingPlaceholder**: `string` - Text to display while the bot is typing
@@ -1 +1 @@
1
- {"version":3,"file":"use-asgard-service-client.d.ts","sourceRoot":"","sources":["../../src/hooks/use-asgard-service-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAa,MAAM,iBAAiB,CAAC;AAG/E,UAAU,2BAA2B;IACnC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,2BAA2B,GACjC,mBAAmB,GAAG,IAAI,CAmD5B"}
1
+ {"version":3,"file":"use-asgard-service-client.d.ts","sourceRoot":"","sources":["../../src/hooks/use-asgard-service-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAa,MAAM,iBAAiB,CAAC;AAG/E,UAAU,2BAA2B;IACnC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,2BAA2B,GACjC,mBAAmB,GAAG,IAAI,CA0D5B"}