searchPrompt method

OpenRouterBuilder searchPrompt(
  1. String prompt
)

Sets a custom search prompt for web search

This prompt guides the search behavior and helps focus on specific types of information or sources.

Example:

final provider = await ai()
    .openRouter((openrouter) => openrouter
        .searchPrompt('Focus on recent academic papers and research'))
    .apiKey(apiKey)
    .build();

Implementation

OpenRouterBuilder searchPrompt(String prompt) {
  _baseBuilder.extension('searchPrompt', prompt);
  return this;
}