execute Prompt
suspend fun StageScope<*, *, *>.executePrompt(prompt: Prompt, model: LLModel, retryPolicy: RetryPolicy? = null): Result<List<Message.Response>>
Executes an LLM prompt with consumption tracking. Creates a PromptExecutionRecord as a leaf record, recording elapsed time and consumption. On success, returns the raw LLM response messages.
Transient-failure retries are applied automatically per the session's retry policy — see StageScope.executeWithTrackedPromptExecutor.
Parameters
retry Policy
override for the session-default retry policy. null (default) = use the session-resolved policy. RetryPolicy.None = disable transient retries for this call.