(status database.ChatStatus)
| 947 | } |
| 948 | |
| 949 | func turnStatusLabelStateContext(status database.ChatStatus) string { |
| 950 | switch status { |
| 951 | case database.ChatStatusWaiting: |
| 952 | return "The turn finished and the chat is idle." |
| 953 | case database.ChatStatusPending: |
| 954 | return "Another user message is queued and the chat will continue." |
| 955 | case database.ChatStatusRequiresAction: |
| 956 | return "The chat is waiting for user input or action." |
| 957 | case database.ChatStatusError: |
| 958 | return "The chat ended with an error." |
| 959 | default: |
| 960 | return "The chat state is unknown." |
| 961 | } |
| 962 | } |
| 963 | |
| 964 | func fallbackTurnStatusLabel(status database.ChatStatus) string { |
| 965 | switch status { |
no outgoing calls
no test coverage detected