File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed
examples/conversational-ai/react-native/elevenlabs-conversational-ai-expo-react-native Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,18 @@ import type {
15
15
ConversationEvent ,
16
16
Role ,
17
17
} from "@elevenlabs/react-native" ;
18
- import tools from "./utils/tools" ;
18
+ import {
19
+ get_battery_level ,
20
+ change_brightness ,
21
+ flash_screen ,
22
+ } from "./utils/tools" ;
19
23
20
24
const ConversationScreen = ( ) => {
21
25
const conversation = useConversation ( {
22
26
clientTools : {
23
- get_battery_level : tools . get_battery_level ,
24
- change_brightness : tools . change_brightness ,
25
- flash_screen : tools . flash_screen ,
27
+ get_battery_level,
28
+ change_brightness,
29
+ flash_screen,
26
30
} ,
27
31
onConnect : ( { conversationId } : { conversationId : string } ) => {
28
32
console . log ( "✅ Connected to conversation" , conversationId ) ;
Original file line number Diff line number Diff line change @@ -24,10 +24,4 @@ const flash_screen = () => {
24
24
return "Successfully flashed the screen." ;
25
25
} ;
26
26
27
- const tools = {
28
- get_battery_level,
29
- change_brightness,
30
- flash_screen,
31
- } ;
32
-
33
- export default tools ;
27
+ export { get_battery_level , change_brightness , flash_screen } ;
You can’t perform that action at this time.
0 commit comments