 GoogleCustomWebSearch
GoogleCustomWebSearch
This plugin is currently in beta. While it is considered safe for use, please be aware that its API could change in ways that are not compatible with earlier versions in future releases, or it might become unsupported.
WebSearch tool for Google Custom Search
yaml
type: "io.kestra.plugin.langchain4j.tool.GoogleCustomWebSearch"Examples
Chat Completion with Google Gemini and a WebSearch tool
yaml
id: chat_completion_with_tools
namespace: company.team
inputs:
  - id: prompt
    type: STRING
tasks:
  - id: chat_completion_with_tools
    type: io.kestra.core.plugin.langchain4j.ChatCompletion
    provider:
        type: io.kestra.plugin.langchain4j.provider.GoogleGemini
        apiKey: "{{secret('GOOGLE_API_KEY')}}"
        modelName: gemini-2.0-flash
    messages:
      - type: SYSTEM
        content: You are a helpful assistant, answer concisely, avoid overly casual language or unnecessary verbosity.
      - type: USER
        content: "{{inputs.prompt}}
    tools:
    - type: io.kestra.plugin.langchain4j.tool.GoogleCustomWebSearch
      apiKey: "{{ secret('GOOGLE_SEARCH_API_KEY') }}"
      csi: "{{ secret('GOOGLE_SEARCH_CSI') }}"
Properties
apiKey *Requiredstring
API Key
csi *Requiredstring
API Key
