Skip to content

Method conversational_analytics_chat throws exception due to missing value #1707

@BenM-SolidData

Description

@BenM-SolidData

Description

Currently when calling the conversational_analytics_chat the api returns a list of messages.
In system messages that include data-> query-> looker, the request doesn't return in the api the "view` field, which is mandatory in the Query object, resulting in the SDK throwing an exception:
TypeError: Query.init() missing 1 required keyword-only argument: 'view'

Example of a problematic systemMessage:
{'timestamp': '2026-05-06T12:48:13.090460Z', 'systemMessage': {'data': {'query': {'name': 'customer_summary_lls_segment_sample_values', 'looker': {'model': 'customer_loyalty_and_segmentation', 'explore': 'customer_summary', 'fields': ['customer_summary.lls_segment']}}}}, 'traceId': 'ff1d722b55bcda0e'}

It seems as though the view is returned as the explore field which is undocumented

Expected Behavior

Option A - Query object should allow view field to be None/Empty
Option B - API should always return the view value

SDK Language: Python

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions