systemPrompt

expect open override fun systemPrompt(systemPrompt: String): AIAgentBuilder(source)

Sets the system prompt to be used by the builder.

This method configures the prompt with a system-level message that provides instructions or context for a language model.

Return

The current instance of the builder with the updated system prompt.

Parameters

systemPrompt

The content of the system message to set as the prompt.

actual open override fun systemPrompt(systemPrompt: String): AIAgentBuilder(source)

Sets the system prompt to be used by the builder.

This method configures the prompt with a system-level message that provides instructions or context for a language model.

Return

The current instance of the builder with the updated system prompt.

Parameters

systemPrompt

The content of the system message to set as the prompt.

actual open override fun systemPrompt(systemPrompt: String): AIAgentBuilder(source)

Sets the system prompt to be used by the builder.

This method configures the prompt with a system-level message that provides instructions or context for a language model.

Return

The current instance of the builder with the updated system prompt.

Parameters

systemPrompt

The content of the system message to set as the prompt.