Forum Discussion
Using a data agent in a notebook
- 7 months ago
Hello KimTutein,
Please consider raising a Microsoft support ticket for further investigation. You can explain all the troubleshooting steps you have taken to help them better understand the issue.
You can create a Microsoft support ticket with the help of the link below:
https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket
Hi KimTutein ,
FabricClient does not exist in any public version of the fabric-data-agent-sdk.
The import will fail, and no documented client class exists under that module.The fabric.responses.create() approach mentioned in the response is from early preview version.
Can you try using
Use the “Ask a data agent” cell in a Fabric notebook
No SDK installation or Python imports required
Fully integrated with Fabric’s identity and workspace context
Natural language query powered by the configured Data Agent
Best option for:
Interacting with Lakehouses, Warehouses, or Semantic Models
Exploring data using natural language
If this post helps, then please appreciate giving a Kudos or accepting as a Solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
- KimTutein7 months agoAdvocate III
Hi ssrithar
Thank you for your answer but want I am trying to is to ask a data agent in a notebook which my be schuled. That agent will return an answer in a html format I will send that answer to a user if certain conditions aply. One use case could be something like - "look at this data" - if you find this condition a is true - get some details and put togehter a response I will email the user (then schedule the notebook to run every night)
As far as I know the cell type in Fabric can only be pyspark, spark(scala), sparksql, spark r or HTML - not an option to chat with a data agent. I know there is an option to chat with copilot in a given cell - that is however not the data agent and moreover I need the respons in my pyspark cell during a run to use it.