1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Claude Models

Connected

Exercise

Extracting Claude's response

At the hackathon, your teammate needs the exact reply text to wire into the React front-end. Show them how to slice the response object and print just Claude’s answer, so that it can be displayed on your app.

Instructions

100 XP
  • Extract and print Claude's response from the given response object.