You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+55
Original file line number
Diff line number
Diff line change
@@ -48,10 +48,65 @@ To run the events server, you can use the following command:
48
48
npm run start:eventsServer
49
49
```
50
50
51
+
If your `eventsHook` is set you will receive events from Fonoster including the chat history which will look like this:
52
+
53
+
```json
54
+
{
55
+
eventType: 'conversation.ended',
56
+
chatHistory: [
57
+
{
58
+
ai: "Hello, I'm the Awesome Autopilot, how can I help you today?"
59
+
},
60
+
{ human: 'trying to find out what the meaning of life' },
61
+
{ ai: "Before we dive into that, what's your name?" },
62
+
{ human: 'My name is John Doe' },
63
+
{
64
+
ai: 'Hello John Doe. Life is a journey of love, laughter, and learning. Anything else I can help you with?'
65
+
},
66
+
{ human: 'No that is all' },
67
+
{ ai: 'Thank you for your time. Have a great day!' }
68
+
]
69
+
}
70
+
```
71
+
51
72
This will start the events server on port `3000`. You will also need to run Ngrok to expose the events server to the internet. You can do this by running the following command:
52
73
53
74
```bash
54
75
ngrok http 3000
55
76
```
56
77
57
78
This will expose the events server to the internet and you can use the URL returned by Ngrok to test the events server.
79
+
80
+
81
+
82
+
## Run the test cases
83
+
84
+
Firt, make sure to set the `apiKey` for the language model and the evals provider in the `appConfig.yaml` file.
85
+
86
+
Then, you use the following command to run the test cases:
0 commit comments