compute.

ai_chat

ai_chat(workspace_id: str, question: str) -> ChatResult

Chat with AI in GoodData workspace.

Parameters

nametypedescription
workspace_idstrThe ID of the GoodData Workspace.
questionstrThe question to ask the AI.

Returns

typedescription
chat_resultChatResultChat response

Example


host = "https://www.example.com"
token = "<your_personal_access_token>"
sdk = GoodDataSdk.create(host, token)

chat_result = sdk.compute.ai_chat(workspace_id, "Display the revenue by product")

print(chat_result)