This documentation is for an older version of GoodData.
Go to the latest version of this article.
compute.
ai_chat_stream
ai_chat_stream(workspace_id: str, question: str) -> Iterator[Any]
Chat with AI in GoodData workspace. Stream the response.
Parameters
name | type | description |
---|---|---|
workspace_id | str | The ID of the GoodData Workspace. |
question | str | The question to ask the AI. |
Returns
type | description | |
---|---|---|
chat_result | Iterator[Any] | Yields parsed JSON objects from each SSE event's data field |
Example
host = "https://www.example.com"
token = "<your_personal_access_token>"
sdk = GoodDataSdk.create(host, token)
chat_result = sdk.compute.ai_chat_stream(workspace_id, "Display the revenue by product")