Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Contexts are empty #43

Open
codinghusi opened this issue Nov 13, 2019 · 0 comments
Open

Contexts are empty #43

codinghusi opened this issue Nov 13, 2019 · 0 comments

Comments

@codinghusi
Copy link

codinghusi commented Nov 13, 2019

If I want to get all contexts with

$agent->getContexts()

I get an array of empty objects.

Google made this request:

{
    "responseId": "xxx",
    "queryResult": {
        "queryText": "whats going on today?",
        "parameters": {
            "date": "2019-11-13T12:00:00+01:00",
            "timespan": ""
        },
        "allRequiredParamsPresent": true,
        "fulfillmentMessages": [
            {
                "text": {
                    "text": [
                        ""
                    ]
                }
            },
            {
                "payload": {}
            }
        ],
        "outputContexts": [
            {
                "name": "xxx",
                "parameters": {
                    "date": "2019-11-13T12:00:00+01:00",
                    "date.original": "today",
                    "timespan": "",
                    "timespan.original": ""
                }
            },
            {
                "name": "xxx",
                "parameters": {
                    "date": "2019-11-13T12:00:00+01:00",
                    "date.original": "today",
                    "timespan": "",
                    "timespan.original": ""
                }
            },
            {
                "name": "xxx",
                "parameters": {
                    "date": "2019-11-13T12:00:00+01:00",
                    "date.original": "today",
                    "timespan": "",
                    "timespan.original": ""
                }
            },
            {
                "name": "xxx",
                "parameters": {
                    "date": "2019-11-13T12:00:00+01:00",
                    "date.original": "today",
                    "timespan": "",
                    "timespan.original": ""
                }
            },
            {
                "name": "xxx",
                "parameters": {
                    "date": "2019-11-13T12:00:00+01:00",
                    "date.original": "today",
                    "timespan": "",
                    "timespan.original": ""
                }
            }
        ],
        "intent": {
            "name": "xxx",
            "displayName": "Statistics"
        },
        "intentDetectionConfidence": 0.57797676,
        "languageCode": "en"
    },
    "originalDetectIntentRequest": {
        "source": "google",
        "version": "2",
        "payload": {
            "user": {
                "accessToken": "xxx",
                "locale": "en-US",
                "lastSeen": "2019-11-13T14:10:44Z",
                "userVerificationStatus": "VERIFIED"
            },
            "conversation": {
                "conversationId": "xxx",
                "type": "ACTIVE",
                "conversationToken": "[]"
            },
            "inputs": [
                {
                    "intent": "actions.intent.TEXT",
                    "rawInputs": [
                        {
                            "inputType": "VOICE",
                            "query": "whats going on today?"
                        }
                    ],
                    "arguments": [
                        {
                            "name": "text",
                            "rawText": "whats going on today?",
                            "textValue": "whats going on today?"
                        }
                    ]
                }
            ],
            "surface": {
                "capabilities": [
                    {
                        "name": "actions.capability.SCREEN_OUTPUT"
                    },
                    {
                        "name": "actions.capability.ACCOUNT_LINKING"
                    },
                    {
                        "name": "actions.capability.MEDIA_RESPONSE_AUDIO"
                    },
                    {
                        "name": "actions.capability.AUDIO_OUTPUT"
                    }
                ]
            },
            "availableSurfaces": [
                {
                    "capabilities": [
                        {
                            "name": "actions.capability.AUDIO_OUTPUT"
                        },
                        {
                            "name": "actions.capability.SCREEN_OUTPUT"
                        },
                        {
                            "name": "actions.capability.WEB_BROWSER"
                        }
                    ]
                }
            ]
        }
    },
    "session": "xxx"
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant