I’m working on writing Rasa SDK in Java. But it seems the API spec has been outdated…
Here’s the request I got, and it doesn’t conform the API spec. Did I misunderstand the spec or it has been outdated?
{
"next_action": "answer_weather_action",
"sender_id": "6edd5075e298480e98a4f57a79e82ebd",
"tracker": {
"sender_id": "6edd5075e298480e98a4f57a79e82ebd",
"slots": {
"session_started_metadata": null
},
"latest_message": {
"intent": {
"name": "ask_weather",
"confidence": 0.9946473240852356
},
"entities": [],
"text": "How is the weather today?",
"message_id": "0ca3cc1f54b745aa99c829e208857cde",
"metadata": {},
"text_tokens": [
[
0,
3
],
[
4,
6
],
[
7,
10
],
[
11,
18
],
[
19,
24
]
],
"intent_ranking": [{
"name": "ask_weather",
"confidence": 0.9946473240852356
},
{
"name": "bot_challenge",
"confidence": 0.0036057180259376764
},
{
"name": "mood_great",
"confidence": 0.000745364639442414
},
{
"name": "greet",
"confidence": 0.0003123953065369278
},
{
"name": "deny",
"confidence": 0.0003097508742939681
},
{
"name": "affirm",
"confidence": 0.00020025625417474657
},
{
"name": "goodbye",
"confidence": 0.0001471891300752759
},
{
"name": "mood_unhappy",
"confidence": 3.198030753992498e-05
}
],
"response_selector": {
"all_retrieval_intents": [],
"default": {
"response": {
"responses": null,
"confidence": 0.0,
"intent_response_key": null,
"utter_action": "utter_None"
},
"ranking": []
}
}
},
"latest_event_time": 1683340466.926449,
"followup_action": null,
"paused": false,
"events": [{
"event": "action",
"timestamp": 1683340466.566886,
"metadata": {
"model_id": "7ba7e0dad1f34088b446f21bd8577656",
"assistant_id": "20230506-101941-yellow-leisure"
},
"name": "action_session_start",
"policy": null,
"confidence": 1.0,
"action_text": null,
"hide_rule_turn": false
},
{
"event": "session_started",
"timestamp": 1683340466.566886,
"metadata": {
"model_id": "7ba7e0dad1f34088b446f21bd8577656",
"assistant_id": "20230506-101941-yellow-leisure"
}
},
{
"event": "action",
"timestamp": 1683340466.566886,
"metadata": {
"model_id": "7ba7e0dad1f34088b446f21bd8577656",
"assistant_id": "20230506-101941-yellow-leisure"
},
"name": "action_listen",
"policy": null,
"confidence": null,
"action_text": null,
"hide_rule_turn": false
},
{
"event": "user",
"timestamp": 1683340466.7148957,
"metadata": {
"model_id": "7ba7e0dad1f34088b446f21bd8577656",
"assistant_id": "20230506-101941-yellow-leisure"
},
"text": "How is the weather today?",
"parse_data": {
"intent": {
"name": "ask_weather",
"confidence": 0.9946473240852356
},
"entities": [],
"text": "How is the weather today?",
"message_id": "0ca3cc1f54b745aa99c829e208857cde",
"metadata": {},
"text_tokens": [
[
0,
3
],
[
4,
6
],
[
7,
10
],
[
11,
18
],
[
19,
24
]
],
"intent_ranking": [{
"name": "ask_weather",
"confidence": 0.9946473240852356
},
{
"name": "bot_challenge",
"confidence": 0.0036057180259376764
},
{
"name": "mood_great",
"confidence": 0.000745364639442414
},
{
"name": "greet",
"confidence": 0.0003123953065369278
},
{
"name": "deny",
"confidence": 0.0003097508742939681
},
{
"name": "affirm",
"confidence": 0.00020025625417474657
},
{
"name": "goodbye",
"confidence": 0.0001471891300752759
},
{
"name": "mood_unhappy",
"confidence": 3.198030753992498e-05
}
],
"response_selector": {
"all_retrieval_intents": [],
"default": {
"response": {
"responses": null,
"confidence": 0.0,
"intent_response_key": null,
"utter_action": "utter_None"
},
"ranking": []
}
}
},
"input_channel": "cmdline",
"message_id": "0ca3cc1f54b745aa99c829e208857cde"
},
{
"event": "user_featurization",
"timestamp": 1683340466.926449,
"use_text_for_featurization": false
}
],
"latest_input_channel": "cmdline",
"active_loop": {},
"latest_action": {
"action_name": "action_listen"
},
"latest_action_name": "action_listen"
},
"version": "3.5.4",
"domain": {
"version": "3.1",
"intents": [
"affirm",
"ask_weather",
"bot_challenge",
"deny",
"goodbye",
"greet",
"mood_great",
"mood_unhappy"
],
"actions": [
"answer_weather_action"
],
"responses": {
"utter_greet": [{
"text": "Hey! How are you?"
}],
"utter_cheer_up": [{
"text": "Here is something to cheer you up:",
"image": "https://i.imgur.com/nGF1K8f.jpg"
}],
"utter_did_that_help": [{
"text": "Did that help you?"
}],
"utter_happy": [{
"text": "Great, carry on!"
}],
"utter_goodbye": [{
"text": "Bye"
}],
"utter_iamabot": [{
"text": "I am a bot, powered by Rasa."
}]
},
"session_config": {
"session_expiration_time": 60,
"carry_over_slots_to_new_session": true
}
}
}