Accessing Claude with the API

prompt

prompt gives idea to llm for ans. llm dont have memory so create memory like array and append all chain msg to new prompt, so llm get contex. role may be user, assistant, system. one query one ans context lost so we make chain of thought concept.

Temperature

Low Temperature (0.0 - 0.3) Factual responses

Medium Temperature (0.4 - 0.7) Summarization

High Temperature (0.8 - 1.0) Creative writing

Response streaming

The ContentBlockDelta events contain the actual generated text that you'll want to display to users.

Structured data