What a language model session is

Asked on 2026-06-18

1 search

A language model session in the Foundation Models framework is the object you use to interact with the model in a stateful way.

In practice, that means:

  • You create a session to send prompts to the model.
  • The session remembers the conversation history in a transcript.
  • Each response is recorded, so the model can refer back to earlier turns.
  • You can also provide instructions to shape how the session behaves.
  • Sessions have context size limits, so they can’t grow indefinitely.

In newer WWDC sessions, this is described as the main interaction surface for developers, with the model behind the scenes handling generation while the session keeps track of the conversation.

If you want, I can also explain:

  • how a session differs from a prompt,
  • what a transcript is,
  • or how sessions work with Dynamic Profile and multiple models.