prompt
The current prompt used within the AIAgentLLMContext.
This property defines the main Prompt instance used by the context and is updated as needed to reflect modifications or new inputs for the language model operations. It is modified internally only from within withPrompt and writeSession, both of which run under the write portion of an internal read-write lock.
Concurrency caveats:
A direct read of this property (as well as tools, model and responseProcessor) does not acquire the read lock; it returns whatever snapshot happens to be installed. For a consistent view that is safe against a concurrent withPrompt / writeSession, read it inside a readSession.
Reads performed from inside a readSession or writeSession are consistent with the current critical section.