GoogleCustomWebSearch​Google​Custom​Web​Search

WebSearch tool for Google Custom Search

yaml
type: "io.kestra.plugin.langchain4j.tool.GoogleCustomWebSearch"

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

API Key

API Key