Basic usage
To generate code with the SageMaker Data Agent
-
Type a natural language prompt describing what you want to accomplish.
-
Press Alt +A (or Opt +A on Mac) to trigger code generation.
-
Review the generated code in the suggestion panel.
-
Choose Accept to add the code to your cell or Reject to dismiss it.
To use the SageMaker Data Agent chat panel
-
Open the agent chat panel from the notebook interface.
-
Enter a prompt describing your data analysis needs.
-
Review the agent's plan and suggested approach.
-
The SageMaker Data Agent will generate a collection of cells to implement the analysis plan.
-
Review and execute the generated cells as needed.
To diagnose errors with the SageMaker Data Agent
-
When a cell execution results in an exception, look for the Diagnose with agent button.
-
Choose the button to get agent-generated suggestions for fixing the error.
-
Review the suggested fixes and code improvements.
-
Apply the suggestions or use them as guidance for manual fixes.