Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Cant make it work when using other Search function. #10

@meet1919

Description

@meet1919

Cant get rid of the GOOGLE_API_ID and GOOGLE_CSE_ID even though I am using GoogleSerperAPIWrapper(). I added random values for these both and still I am not able to make it work.

Error:

Traceback (most recent call last):
  File "c:\python\web_explorer_sample.py", line 25, in <module>
    web_retriever = WebResearchRetriever.from_llm(
  File "C:\python\env\lib\site-packages\langchain\retrievers\web_research.py", line 128, in from_llm
    return cls(
  File "C:\python\env\lib\site-packages\langchain\load\serializable.py", line 90, in __init__
    super().__init__(**kwargs)
  File "pydantic\main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 7 validation errors for WebResearchRetriever
search -> aiosession
  extra fields not permitted (type=value_error.extra)
search -> gl
  extra fields not permitted (type=value_error.extra)
search -> hl
  extra fields not permitted (type=value_error.extra)
search -> result_key_for_type
  extra fields not permitted (type=value_error.extra)
search -> serper_api_key
  extra fields not permitted (type=value_error.extra)
search -> tbs
  extra fields not permitted (type=value_error.extra)
search -> type
  extra fields not permitted (type=value_error.extra)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions