# Messages and roles — Claude API / OpenAI API Basics

Source: https://www.geekswithgeeks.com/en/llm-apis/llm-apis-25

> Apply Messages and roles with clear evidence.

## Understand Messages and roles

For **Messages and roles**, begin with the problem it solves. Identify the inputs, constraints, and observable outcome before choosing an implementation.

## Practise deliberately

Create one small example for **Messages and roles** and verify its result before expanding it.

## A useful comparison

**Messages and roles** is like a route plan: it keeps each step connected to a destination.

Check your reasoning.

**Quiz:** What is the best first step for Messages and roles?

- [x] Define the goal and constraints.
- [ ] Copy an unverified example.
- [ ] Skip measurement.

*Answer:* Define the goal and constraints.. A clear goal and constraints make decisions reviewable.
