Skip to content

Conversation

@daxian-dbw
Copy link
Member

PR Summary

  • Handle error message from the Azure Orchestrator.
  • Add ConversationId property to the CopilotResponse type.

The Azure Orchestrator may return an error message like this:

{
  "type": "message",
  "id": "7zoAgmG58OPJttpKKYnYqZ-us|0000002",
  "timestamp": "2024-10-28T17:59:41.5245466Z",
  "channelId": "directline",
  "from": {
    "id": "copilotweb-canary-prod",
    "name": "copilotweb-canary-prod"
  },
  "topicName": "Orchestrator",
  "text": "Sorry, Copilot encountered an error. Please try again or share your feedback.\nActivityId = 7zoAgmG58OPJttpKKYnYqZ-us|0000001, CorrelationID = 7zoAgmG58OPJttpKKYnYqZ-us|0000001, Timestamp = 2024-10-28T17:59:41.4950709Z",
  "inputHint": "error",
  "locale": "en-US",
  "attachments": [
    {
      "contentType": "azurecopilot/conversationstate",
      "content": {
        "turnLimit": 15,
        "turnNumber": 1,
        "turnLimitMet": false,
        "turnLimitExceeded": false,
        "dailyConversationNumber": 4,
        "dailyConversationLimitMet": false,
        "dailyConversationLimitExceeded": false
      },
      "name": "azurecopilot/conversationstate"
    }
  ],
  "replyToId": "7zoAgmG58OPJttpKKYnYqZ-us|0000001"
}

@daxian-dbw daxian-dbw merged commit 16e4c40 into PowerShell:main Oct 28, 2024
4 checks passed
@daxian-dbw daxian-dbw deleted the fix branch October 28, 2024 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant