---
title: "Prompt"
url: https://www.daytona.com/definitions/p/prompt
---

# Prompt

A prompt is the input given to a language model, such as instructions, questions, and examples, that the model responds to.

A prompt is the text that a language model receives as input. It can be a question, an instruction, a document to process, or a mix of these. The model reads the prompt and produces text that continues or answers it. The same model can give very different results for different prompts.

Applications usually split a prompt into parts. A system prompt sets the role, the rules, and the tone of the model for the whole conversation. User messages carry the requests, and the model's earlier replies and tool results make up the rest of the history. Prompts can also include examples of the desired output, which helps the model follow a format.

In an agent, the harness builds a new prompt for every step of the agent loop. That prompt includes the instructions, the available tools, and the results of earlier actions. Text from outside sources, such as web pages or files, can carry hidden instructions, which is the basis of prompt injection. For this reason, actions that come from a prompt are often carried out in a sandbox that limits their effect.

## Related terms

- [LLM (Large Language Model)](https://www.daytona.com/definitions/l/llm-large-language-model.md)
- [Context](https://www.daytona.com/definitions/c/context.md)
- [Context engineering](https://www.daytona.com/definitions/c/context-engineering.md)
- [Prompt injection](https://www.daytona.com/definitions/p/prompt-injection.md)
- [Token](https://www.daytona.com/definitions/t/token.md)
- [Agent harness](https://www.daytona.com/definitions/a/agent-harness.md)
