Refactor GoogleSerperAPIWrapperComponent class in GoogleSerperAPIWrapper.py
This commit is contained in:
parent
a4c432a64b
commit
afca7dc954
1 changed files with 7 additions and 3 deletions
|
|
@ -3,6 +3,7 @@ from typing import Dict
|
||||||
# Assuming the existence of GoogleSerperAPIWrapper class in the serper module
|
# Assuming the existence of GoogleSerperAPIWrapper class in the serper module
|
||||||
# If this class does not exist, you would need to create it or import the appropriate class from another module
|
# If this class does not exist, you would need to create it or import the appropriate class from another module
|
||||||
from langchain_community.utilities.google_serper import GoogleSerperAPIWrapper
|
from langchain_community.utilities.google_serper import GoogleSerperAPIWrapper
|
||||||
|
|
||||||
from langflow import CustomComponent
|
from langflow import CustomComponent
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -17,20 +18,23 @@ class GoogleSerperAPIWrapperComponent(CustomComponent):
|
||||||
"show": True,
|
"show": True,
|
||||||
"multiline": False,
|
"multiline": False,
|
||||||
"password": False,
|
"password": False,
|
||||||
"name": "result_key_for_type",
|
|
||||||
"advanced": False,
|
"advanced": False,
|
||||||
"dynamic": False,
|
"dynamic": False,
|
||||||
"info": "",
|
"info": "",
|
||||||
"field_type": "dict",
|
"field_type": "dict",
|
||||||
"list": False,
|
"list": False,
|
||||||
"value": {"news": "news", "places": "places", "images": "images", "search": "organic"},
|
"value": {
|
||||||
|
"news": "news",
|
||||||
|
"places": "places",
|
||||||
|
"images": "images",
|
||||||
|
"search": "organic",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
"serper_api_key": {
|
"serper_api_key": {
|
||||||
"display_name": "Serper API Key",
|
"display_name": "Serper API Key",
|
||||||
"show": True,
|
"show": True,
|
||||||
"multiline": False,
|
"multiline": False,
|
||||||
"password": True,
|
"password": True,
|
||||||
"name": "serper_api_key",
|
|
||||||
"advanced": False,
|
"advanced": False,
|
||||||
"dynamic": False,
|
"dynamic": False,
|
||||||
"info": "",
|
"info": "",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue