feat: add Google icons to search-related components (#4760)
✨ (google_search_api.py): Add icon property to GoogleSearchAPIComponent for better visualization in the UI ✨ (google_serper_api.py): Add icon property to GoogleSerperAPIComponent for better visualization in the UI 📝 (styleUtils.ts): Add GoogleSearchAPI and GoogleSerperAPI icons to nodeIconsLucide for consistent styling in the frontend.
This commit is contained in:
parent
13321a3635
commit
d31fa35586
3 changed files with 4 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ class GoogleSearchAPIComponent(LCToolComponent):
|
||||||
display_name = "Google Search API"
|
display_name = "Google Search API"
|
||||||
description = "Call Google Search API."
|
description = "Call Google Search API."
|
||||||
name = "GoogleSearchAPI"
|
name = "GoogleSearchAPI"
|
||||||
|
icon = "Google"
|
||||||
inputs = [
|
inputs = [
|
||||||
SecretStrInput(name="google_api_key", display_name="Google API Key", required=True),
|
SecretStrInput(name="google_api_key", display_name="Google API Key", required=True),
|
||||||
SecretStrInput(name="google_cse_id", display_name="Google CSE ID", required=True),
|
SecretStrInput(name="google_cse_id", display_name="Google CSE ID", required=True),
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ class GoogleSerperAPIComponent(LCToolComponent):
|
||||||
display_name = "Google Serper API"
|
display_name = "Google Serper API"
|
||||||
description = "Call the Serper.dev Google Search API."
|
description = "Call the Serper.dev Google Search API."
|
||||||
name = "GoogleSerperAPI"
|
name = "GoogleSerperAPI"
|
||||||
|
icon = "Google"
|
||||||
inputs = [
|
inputs = [
|
||||||
SecretStrInput(name="serper_api_key", display_name="Serper API Key", required=True),
|
SecretStrInput(name="serper_api_key", display_name="Serper API Key", required=True),
|
||||||
MultilineInput(
|
MultilineInput(
|
||||||
|
|
|
||||||
|
|
@ -613,6 +613,8 @@ export const nodeIconsLucide: iconsType = {
|
||||||
GoogleSearchAPIWrapper: GoogleIcon,
|
GoogleSearchAPIWrapper: GoogleIcon,
|
||||||
GoogleSearchResults: GoogleIcon,
|
GoogleSearchResults: GoogleIcon,
|
||||||
GoogleSearchRun: GoogleIcon,
|
GoogleSearchRun: GoogleIcon,
|
||||||
|
GoogleSearchAPI: GoogleIcon,
|
||||||
|
GoogleSerperAPI: GoogleIcon,
|
||||||
Google: GoogleIcon,
|
Google: GoogleIcon,
|
||||||
GoogleGenerativeAI: GoogleGenerativeAIIcon,
|
GoogleGenerativeAI: GoogleGenerativeAIIcon,
|
||||||
Groq: GroqIcon,
|
Groq: GroqIcon,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue