MCPcopy Create free account

hub / github.com/google/adk-samples / functions

Functions4,953 in github.com/google/adk-samples

↓ 2 callersFunctionload_prompt
Loads a prompt text from a file. Args: base_dir: The directory containing the 'prompts' subdirectory. Typically pa
python/agents/youtube-analyst/youtube_analyst/common/utils.py:4
↓ 2 callersFunctionload_requirements
Loads requirements from pyproject.toml.
python/agents/brand-aligned-presentations/presentation_agent/deployment/deploy.py:72
↓ 2 callersFunctionload_test_cases
Load test cases from a JSON file.
python/agents/nexshift-agent/eval/test_agent_eval.py:270
↓ 2 callersMethodlog_rule_written
( self, rule_id: str, backup_path: str, total_rules: int )
python/agents/invoice-processing/invoice_processing/core/session_logger.py:162
↓ 2 callersMethodlog_sme_feedback
(self, feedback: str)
python/agents/invoice-processing/invoice_processing/core/session_logger.py:98
↓ 2 callersMethodlog_sme_revision
(self, revision_text: str)
python/agents/invoice-processing/invoice_processing/core/session_logger.py:139
↓ 2 callersFunctionmerge_schemas
(schema1, schema2)
python/agents/policy-as-code/policy_as_code_agent/utils/llm.py:58
↓ 2 callersFunctionmodel_labor_shifts
Forecasts regional labor market disruption and AI diffusion shifts (automation risk, productivity growth, and occupational transition forecas
python/agents/economic-research-agent/economic_research/tools/labor_shift_skill.py:7
↓ 2 callersMethodneq
(self, value: "Value")
python/agents/camel/camel/camel_library/interpreter/camel_value.py:162
↓ 2 callersFunctionnormalize_color
Extracts the first color found if exists
python/agents/personalized-shopping/personalized_shopping/shared_libraries/web_agent_site/engine/normalize.py:170
↓ 2 callersFunctionnumber_of_moves
Computes the expected number of rate moves between two prices. Args: front_ff_future_px: Front fed funds future price. back_ff_future
python/agents/fomc-research/fomc_research/shared_libraries/price_utils.py:87
↓ 2 callersFunctionparseSide
(side: { image_base64: string; status: 'ready' | 'discarded'; validation: FittingValidation; t
python/agents/genmedia-for-commerce/frontend/src/product_enrichment/product_fitting/productFittingApi.ts:90
↓ 2 callersFunctionparse_action
Parse action string to action name and its arguments.
python/agents/personalized-shopping/personalized_shopping/shared_libraries/web_agent_site/engine/engine.py:134
↓ 2 callersFunctionparse_pdf_pages
Process PDF pages in parallel with Gemini. Args: pages: List of single-page PDF bytes. genai_client: Gemini client instance.
python/agents/multiformat-hybrid-rag/src/document_preprocessing/parser/pdf_parser.py:101
↓ 2 callersFunctionpollState
()
go/agents/navallist/web/js/app.js:294
↓ 2 callersMethodpop_long_running_call_info
Pop the oldest long-running call information. Returns: A tuple containing the call ID and call name, or None if no information
python/agents/tau2-benchmark-agent/tau2_agent/adk_agent.py:352
↓ 2 callersMethodpop_long_running_call_info_with_id
Pop long-running call information by call ID. Args: call_id: The ID of the long-running call to pop. Returns: A
python/agents/tau2-benchmark-agent/tau2_agent/adk_agent.py:366
↓ 2 callersFunctionpost_to_platform
Mock posting to a platform.
python/agents/workflow-concurrent_research_writer/tools.py:27
↓ 2 callersMethodpredict_probs
Return probabilities for a single image.
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/classify_shoes_local.py:99
↓ 2 callersMethodpredict_probs_batch
Return probabilities for a batch.
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/classify_shoes_local.py:110
↓ 2 callersFunctionpreprocess
(text)
python/agents/on-brand-genmedia/on_brand_genmedia/sub_agents/prompt/tools/fetch_existing_assets.py:20
↓ 2 callersFunctionpreprocess_glasses_image
Preprocess glasses image: remove background to isolate the product. Returns: bytes: The preprocessed glasses image with background remove
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/image_vto/glasses/image_generation.py:113
↓ 2 callersFunctionpreprocess_model_image
Preprocess full body model image: remove background and upscale. Args: client: Gemini client instance img_bytes (bytes): The inpu
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/image_vto/clothes/vto_generation.py:106
↓ 2 callersFunctionpreprocess_person_image
Preprocess person image: remove background and upscale. Args: client: Gemini client instance for background removal upscale_clien
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/other/background_changer/background_changer.py:94
↓ 2 callersFunctionprocessSseEventData
(jsonData: string, aiMessageId: string)
python/agents/deep-search/frontend/src/App.tsx:222
↓ 2 callersFunctionprocess_invoice
Main pipeline orchestrator
python/agents/invoice-processing/invoice_processing/shared_libraries/acting/general_invoice_agent.py:1867
↓ 2 callersFunctionprocess_text_for_gcs_urls
Replace GCS URLs in a string with Proxy or Signed URLs.
python/agents/genmedia-for-commerce/genmedia4commerce/agents/style_advisor_agent/agent.py:265
↓ 2 callersFunctionrandom_idx
Generate random index by sampling uniformly from sum of all weights, then selecting the `min` between the position to keep the list sorted (via b
python/agents/personalized-shopping/personalized_shopping/shared_libraries/web_agent_site/utils.py:36
↓ 2 callersMethodregister_feedback
Collect and log feedback.
python/agents/memory-bank/app/agent_engine_app.py:44
↓ 2 callersMethodregister_feedback
Collect and log feedback.
python/agents/adk-ae-oauth/adk_ae_oauth/agent_engine_app.py:44
↓ 2 callersMethodregister_feedback
Collect and log feedback.
python/agents/genmedia-for-commerce/genmedia4commerce/agent_engine_app.py:51
↓ 2 callersFunctionremove_background_hsv
Fast background removal for white/gray backgrounds using HSV color detection. This is a fast alternative to ML-based background removal (like rem
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/image_utils.py:92
↓ 2 callersMethodreset
Create a new session and reset environment variables
python/agents/personalized-shopping/personalized_shopping/shared_libraries/web_agent_site/envs/web_agent_text_env.py:277
↓ 2 callersFunctionresolve_filename_to_gcs_uri
Reconstruct a GCS URI from a filename based on naming convention. Filenames follow the pattern: {timestamp}_{type}_{i}.{ext} - _u_ → user upl
python/agents/genmedia-for-commerce/genmedia4commerce/agent_utils.py:238
↓ 2 callersFunctionretrieve_from_history
Load conversation history from GCS for the given session. Returns an empty list if the session file doesn't exist yet.
python/agents/genmedia-for-commerce/genmedia4commerce/agent_utils.py:60
↓ 2 callersFunctionretryWithBackoff
( fn: () => Promise<any>, maxRetries: number = 10, maxDuration: number = 120000 // 2 minutes )
python/agents/deep-search/frontend/src/App.tsx:57
↓ 2 callersFunctionreturn_instructions_bqml
()
python/agents/data-science/data_science/sub_agents/bqml/prompts.py:24
↓ 2 callersMethodrun
(self, output_folder: Path, extraction: dict, phase4: dict)
python/agents/invoice-processing/invoice_processing/shared_libraries/acting/general_invoice_agent.py:1410
↓ 2 callersMethodrun
( self, output_folder: Path, extraction: dict, transformer: dict,
python/agents/invoice-processing/invoice_processing/shared_libraries/acting/general_invoice_agent.py:1601
↓ 2 callersFunctionrun_glasses_vto
Run the full glasses VTO pipeline. Yields results as each variation completes. Yield order: 1. A single VTOResult with status="reference_f
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/image_vto/glasses/pipeline.py:130
↓ 2 callersFunctionrun_video_vto
Run the full video VTO pipeline. Yields dicts suitable for SSE. Runs image VTO first to generate the best static VTO image, then delegates to
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/video_vto/clothes/pipeline.py:289
↓ 2 callersFunctionsanitizeEventForDisplay
(event)
python/agents/bidi-demo/app/static/js/app.js:292
↓ 2 callersFunctionsave_deck_spec
Saves the deck_spec to persistent session STATE. Returns an invisible confirmation instead of a visible filename.
python/agents/brand-aligned-presentations/presentation_agent/tools/artifact_utils.py:194
↓ 2 callersFunctionsave_files_as_artifacts
Inspects the LLM request for user-uploaded files and saves them as artifacts.
python/agents/brand-aligner/brand_aligner_agent/tools.py:63
↓ 2 callersFunctionsave_progress
Save all progress data for a run. Args: predictions_data: A dictionary of prediction results. trajectories_data: A dictionary of traj
python/agents/swe-benchmark-agent/swe_benchmark_agent/main.py:187
↓ 2 callersFunctionsearch_collection
Search the chunks collection (hybrid semantic + text), then resolve each unique file_id hit to its full document text via the documents KV col
python/agents/multiformat-hybrid-rag/app/vector_search.py:52
↓ 2 callersMethodsearch_messages
Search for messages using LangChain Gmail toolkit. Args: query: Gmail search query max_results: Maximum numb
python/agents/hierarchical-workflow-automation/cookie_scheduler_agent/gmail_langchain/gmail_manager.py:215
↓ 2 callersMethodsearch_results
Initialize session and return the search results page
python/agents/personalized-shopping/personalized_shopping/shared_libraries/web_agent_site/envs/web_agent_text_env.py:403
↓ 2 callersFunctionselect_product_from_bq
Searches for a product in BigQuery by its name within the search_tags array. Args: product_name (str): The name of the product t
python/agents/product-catalog-ad-generation/content_gen_agent/func_tools/select_product.py:23
↓ 2 callersMethodsend_email
Send an email using LangChain Gmail toolkit. Args: to: Recipient email address subject: Email subject
python/agents/hierarchical-workflow-automation/cookie_scheduler_agent/gmail_langchain/gmail_manager.py:153
↓ 2 callersFunctionset_debug_enabled
Enable or disable debug image saving.
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/debug_utils.py:116
↓ 2 callersMethodset_key
Sets a key-value pair in the mutable mapping. Args: key: The key to set. value: The value to set. Returns:
python/agents/camel/camel/camel_library/interpreter/camel_value.py:703
↓ 2 callersFunctionset_session_api_key
Sets an API key in the current session's environment variables. Use this when the user provides a missing API key in the chat. Args:
python/agents/economic-research-agent/economic_research/agent.py:84
↓ 2 callersMethodsetupTools
(ctx context.Context)
go/agents/sail-researcher/main.go:118
↓ 2 callersFunctionsetup_telemetry
Configure OpenTelemetry and GenAI telemetry with GCS upload.
python/agents/memory-bank/app/app_utils/telemetry.py:19
↓ 2 callersFunctionsetup_telemetry
Configure OpenTelemetry and GenAI telemetry with GCS upload.
python/agents/genmedia-for-commerce/genmedia4commerce/app_utils/telemetry.py:21
↓ 2 callersFunctionstartApp
(sessionId, userId, displayName = null, tripType = 'Departing')
go/agents/navallist/web/js/app.js:213
↓ 2 callersFunctionstatus_to_decision
Map Invoice Status to decision class using master data or fallback.
python/agents/invoice-processing/eval/eval.py:140
↓ 2 callersMethodstep
Takes an action, updates WebShop environment, and returns (observation, reward, done, info) Arguments: action (`str`): An action sho
python/agents/personalized-shopping/personalized_shopping/shared_libraries/web_agent_site/envs/web_agent_text_env.py:111
↓ 2 callersMethodstore_in_gcs
(self, content: str, span_id: str)
python/agents/economic-research-agent/economic_research/shared_libraries/tracing.py:77
↓ 2 callersMethodtoJson
* Converts the Customer object to a JSON string. * * @returns A JSON string representing the Customer object.
typescript/agents/customer_service/customer_service/entities/customer.ts:94
↓ 2 callersMethodto_sse_dict
Convert to a dict suitable for SSE JSON serialisation.
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/image_vto/glasses/pipeline.py:97
↓ 2 callersFunctionupload_asset_to_gcs
Upload an asset to GCS. Args: data: The file bytes. blob_path: Full blob path within the bucket. content_type: The conten
python/agents/genmedia-for-commerce/genmedia4commerce/agent_utils.py:117
↓ 2 callersFunctionuser_upload_path
Get the GCS blob path for a user upload.
python/agents/genmedia-for-commerce/genmedia4commerce/agent_utils.py:50
↓ 2 callersMethodvalidate
Validate that all required configuration is present.
python/agents/data-engineering/data_engineering_agent/config.py:52
↓ 2 callersFunctionweb_search_skill
Live web search using Serper.dev API. Ensure SERPER_API_KEY is defined in your environment or .env file.
python/agents/economic-research-agent/economic_research/sub_agents/tools/search_skill.py:6
↓ 2 callersFunctionwrite_deployment_metadata
Write deployment metadata to file.
python/agents/brand-aligned-presentations/presentation_agent/deployment/deploy.py:55
↓ 1 callersMethodAddItemPhoto
(ctx context.Context, tripID, itemName string, photoArtifactID string)
go/agents/navallist/internal/data/store.go:36
↓ 1 callersMethodAddItemPhoto
AddItemPhoto ensures the checklist item exists (via UPSERT) and then links the artifact to it.
go/agents/navallist/internal/data/checklist.go:73
↓ 1 callersFunctionAddTraceToContext
AddTraceToContext adds the trace to the context
go/agents/sail-researcher/logging/context.go:14
↓ 1 callersMethodClose
()
go/agents/sail-researcher/main.go:63
↓ 1 callersMethodClose
()
go/agents/sail-researcher/tools/places.go:51
↓ 1 callersMethodCreateArtifact
Artifact operations
go/agents/navallist/internal/data/store.go:39
↓ 1 callersMethodCreateSession
CreateSession - POST /api/agent/sessions
go/agents/navallist/internal/server/handlers/checklist.go:30
↓ 1 callersMethodDeleteTrip
DeleteTrip removes a trip and all its associated data (checklists, artifacts).
go/agents/navallist/internal/data/trips.go:43
↓ 1 callersMethodDeleteTrip
(ctx context.Context, tripID string)
go/agents/navallist/internal/data/store.go:29
↓ 1 callersMethodFindCrewMember
FindCrewMember attempts to find a crew member by name using fuzzy matching.
go/agents/navallist/internal/data/trips.go:123
↓ 1 callersMethodFindStations
(opts *noaago.StationOptions)
go/agents/sail-researcher/tools/tides.go:42
↓ 1 callersMethodFindUserByName
FindUserByName retrieves a user by their name (case-insensitive).
go/agents/navallist/internal/data/users.go:21
↓ 1 callersMethodGetActiveCrewNames
(ctx context.Context, tripID string)
go/agents/navallist/internal/data/store.go:24
↓ 1 callersMethodGetArtifact
GetArtifact handles the retrieval of an artifact's data.
go/agents/navallist/internal/server/handlers/trips.go:148
↓ 1 callersMethodGetArtifactByID
GetArtifactByID retrieves artifact metadata by ID.
go/agents/navallist/internal/data/artifacts.go:38
↓ 1 callersFunctionGetLLmAuditorAgent
(ctx context.Context)
go/agents/llm-auditor/auditor/auditor.go:29
↓ 1 callersMethodGetOrCreateTrip
Trip operations
go/agents/navallist/internal/data/store.go:20
↓ 1 callersMethodGetPublicURL
GetPublicURL returns a public URL for the file if supported.
go/agents/navallist/internal/data/storage.go:17
↓ 1 callersMethodGetPublicURL
GetPublicURL for local disk returns an empty string as it is not supported.
go/agents/navallist/internal/data/storage.go:53
↓ 1 callersMethodGetSession
GetSession - GET /api/agent/sessions/{sessionID}?userId=...
go/agents/navallist/internal/server/handlers/checklist.go:66
↓ 1 callersMethodGetSunriseSunset
(ctx tool.Context, args SunriseArgs)
go/agents/sail-researcher/tools/sunrise.go:62
↓ 1 callersMethodGetTides
(opts *noaago.TideOptions)
go/agents/sail-researcher/tools/tides.go:43
↓ 1 callersFunctionGetTraceFromContext
GetTraceFromContext returns the trace from the context
go/agents/sail-researcher/logging/context.go:19
↓ 1 callersMethodGetTrip
GetTrip handles the retrieval of a trip's details.
go/agents/navallist/internal/server/handlers/trips.go:312
↓ 1 callersMethodGetUser
GetUser retrieves a user by ID.
go/agents/navallist/internal/data/users.go:10
↓ 1 callersMethodHandleConnect
HandleConnect authenticates the user based on the context populated by middleware.
go/agents/navallist/internal/realtime/hub.go:99
↓ 1 callersFunctionInitLogging
InitLogging sets up the global logger based on the environment.
go/agents/sail-researcher/logging/setup.go:11
↓ 1 callersMethodListUserTrips
(ctx context.Context, userID string)
go/agents/navallist/internal/data/store.go:26
↓ 1 callersMethodListenToDB
ListenToDB starts a loop to listen for database notifications and publish them to Centrifuge.
go/agents/navallist/internal/realtime/listener.go:21
↓ 1 callersFunctionLoad
Load populates the Config struct using the provided environment lookup function.
go/agents/navallist/internal/config/config.go:47
↓ 1 callersMethodLoad
Load retrieves the data from the local disk.
go/agents/navallist/internal/data/storage.go:48
↓ 1 callersFunctionLoggingMiddleware
LoggingMiddleware logs the details of each request.
go/agents/sail-researcher/middleware.go:31
↓ 1 callersMethodMountWebSocket
(rtService *realtime.Service)
go/agents/navallist/internal/server/routes.go:112
← previousnext →701–800 of 4,953, ranked by callers