appendPromptImpl

suspend fun <T> AIAgentGraphContextBase.appendPromptImpl(input: T, body: PromptBuilder.() -> Unit): T(source)

InternalAgentsApi method. Appends a prompt to the current LLM session.

Return

The same input object, allowing for fluent usage patterns or further chaining.

Parameters

input

The input object to be used for the operation. It serves as both input and output of this method.

body

A lambda to customize the construction of the prompt using the PromptBuilder.