我正在从邮递员 http://localhost:5005/conversations 调用RASA API 但这给我一个错误。
我已经创建了跟踪器存储区以在SQL中存储聊天,并且正在使用以下命令来运行rasa。
rasa run --cors "*" -m models --enable-api --log-file out.log --endpoints endpoints.yml --auth-token thisismysecret --debug
我不知道哪里出问题了。
我期待以下输出。
```[
{
"conversation_id": "string",
"latest_event_time": 0,
"latest_input_channel": "string",
"intents":
[],
"actions":
[],
"minimum_action_confidence": 0,
"in_training_data": true,
"policies":
[],
"n_user_messages": 0,
"flagged_messages":
[],
"unflagged_messages":
[]
}
]```
endpoints.yml
```action_endpoint:
url: "http://localhost:5055/webhook"
# Tracker store which is used to store the conversations.
# By default the conversations are stored in memory.
# https://rasa.com/docs/rasa/api/tracker-stores/
tracker_store:
type: SQL
dialect: "mysql+pymysql" # the dialect used to interact with the db
url: "localhost" # (optional) host of the sql db, e.g. "localhost"
db: "db" # path to your db
username: "username" # username used for authentication
password: "password" # password used for authentication
query: # optional dictionary to be added as a query string to the connection URL```
答案 0 :(得分:0)
这意味着您可能没有正确定义路由/端点/conversation
。