MCPcopy Create free account

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

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

↓ 2 callersFunctionNewStopAgent
(ctx context.Context, cfg *config.Config, monitor *ToolMonitor, researcherTools []tool.Tool)
go/agents/sail-researcher/agent_setup.go:77
↓ 2 callersFunctionNewToolMonitor
NewToolMonitor creates a new ToolMonitor.
go/agents/sail-researcher/tool_monitor.go:18
↓ 2 callersMethodSave
Save stores the data to the local disk.
go/agents/navallist/internal/data/storage.go:34
↓ 2 callersMethodUserID
()
go/agents/sail-researcher/tools/setup_test.go:64
↓ 2 callersMethod__hash__
(self)
python/agents/camel/camel/camel_library/interpreter/camel_value.py:176
↓ 2 callersMethod_apply_heuristics
Applies heuristics to the SQL query.
python/agents/data-science/data_science/sub_agents/bigquery/chase_sql/sql_postprocessor/sql_translator.py:151
↓ 2 callersMethod_apply_thresholds_from_dict
Apply confidence thresholds from a single dict.
python/agents/invoice-processing/invoice_processing/shared_libraries/investigation/investigate_agent_reconst.py:279
↓ 2 callersFunction_assign_name
Assigns a value to a name (variable). Args: name: The AST node representing the name. v: The value to assign. namespace:
python/agents/camel/camel/camel_library/interpreter/interpreter.py:996
↓ 2 callersFunction_build_application_pdf
Generate a single loan application summary PDF.
python/agents/small-business-loan-agent/data/generate_sample_applications.py:33
↓ 2 callersFunction_call_model_armor_api
Helper to call Model Armor REST API.
python/agents/brand-aligned-presentations/presentation_agent/shared_libraries/model_armor.py:32
↓ 2 callersMethod_cleanup
(self, tmp_path)
python/agents/invoice-processing/tests/test_rule_writer.py:275
↓ 2 callersMethod_compare_results
Compare two validation results to determine if violations are consistent. v2.0.2: Requires 75% overlap for confirmation.
python/agents/invoice-processing/invoice_processing/shared_libraries/investigation/investigate_agent_reconst.py:1558
↓ 2 callersFunction_compute_scores_from_result
Computes final scores and verdicts from the evaluation result table.
python/agents/brand-aligner/brand_aligner_agent/services.py:412
↓ 2 callersFunction_convert_raw_shifts_to_objects
Convert raw shift dictionaries to Shift objects. Args: raw_shifts: List of shift dicts with keys: id, date, start, end, ward, requir
python/agents/nexshift-agent/nexshift_agent/sub_agents/tools/solver_tool.py:75
↓ 2 callersFunction_ear
(eye_pts)
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/person_eval.py:181
↓ 2 callersFunction_embed_image_views
Embed an image and its 4 augmented views (left crop, right crop, flipped, text+image) in parallel.
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/classify_shoes_local.py:288
↓ 2 callersMethod_empty_invoice
Return empty invoice structure
python/agents/invoice-processing/invoice_processing/shared_libraries/acting/general_invoice_agent.py:893
↓ 2 callersFunction_ensure_config
()
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/video_vto/clothes/pipeline.py:55
↓ 2 callersFunction_ensure_gcp_initialized
Lazy-initialize GCP/Vertex AI on first use (not at import time). Agent Engine sets env vars after module import, so we must defer.
python/agents/invoice-processing/invoice_processing/shared_libraries/acting/general_invoice_agent.py:105
↓ 2 callersMethod_error_result
Build an error result.
python/agents/invoice-processing/invoice_processing/core/safe_rule_orchestrator.py:216
↓ 2 callersFunction_eval_bin_op_inner
Evaluates a binary operation. Args: op: The AST node representing the binary operation. left: The left operand. right: Th
python/agents/camel/camel/camel_library/interpreter/interpreter.py:2213
↓ 2 callersFunction_evaluate_image
Evaluate a single image (garment accuracy + wearing quality in parallel).
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/product_enrichment/product_fitting/pipeline.py:59
↓ 2 callersFunction_ext
(k)
python/agents/genmedia-for-commerce/genmedia4commerce/agents/style_advisor_agent/agent.py:165
↓ 2 callersMethod_extract_exemptions
Extract exemption rules for a step from rules book.
python/agents/invoice-processing/invoice_processing/shared_libraries/investigation/investigate_agent_reconst.py:2095
↓ 2 callersFunction_extract_slide_texts
Extract raw text from each slide using python-pptx.
python/agents/multiformat-hybrid-rag/src/document_preprocessing/parser/pptx_parser.py:36
↓ 2 callersMethod_find_nearest_timestamp
Finds the key in a dictionary with datetime objects as keys that is closest to a given target datetime. Args: data
python/agents/nurse-handover/nurse_handover/summary.py:104
↓ 2 callersMethod_fix_errors
Fixes errors in the SQL query. Args: sql_query: The SQL query to fix. sql_dialect: The input SQL dialect. apply
python/agents/data-science/data_science/sub_agents/bigquery/chase_sql/sql_postprocessor/sql_translator.py:365
↓ 2 callersFunction_flush_chunks_staging
INSERT staging → target, stamp timestamps, then drop staging.
python/agents/multiformat-hybrid-rag/src/chunking/chunk_and_index.py:127
↓ 2 callersFunction_format_side
(side)
python/agents/genmedia-for-commerce/genmedia4commerce/mcp_server/product_enrichment/product_fitting/product_fitting_mcp.py:187
↓ 2 callersFunction_format_side
(result: dict | None, attempts: list[dict])
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/product_enrichment/product_fitting/pipeline.py:987
↓ 2 callersMethod_forward
(self, views)
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/classify_shoes_local.py:115
↓ 2 callersMethod_forward
(self, views, features)
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/classify_shoes_local.py:184
↓ 2 callersFunction_generate_answer
(context: str, conversation_summary: str, question: str)
python/agents/multiformat-hybrid-rag/app/mcp_server.py:83
↓ 2 callersFunction_generate_shifts
Generate shift data for analysis.
python/agents/nexshift-agent/nexshift_agent/sub_agents/tools/empathy_tools.py:61
↓ 2 callersFunction_get_agent_name
Extract the agent name from the invocation context.
python/agents/small-business-loan-agent/small_business_loan_agent/shared_libraries/firestore_utils/state_callbacks.py:42
↓ 2 callersFunction_get_auth_headers
Get ID token headers for authenticated calls to the backend. On Cloud Run, the frontend's service account must have ``roles/run.invoker`` on
python/agents/ambient-expense-agent/frontend/main.py:59
↓ 2 callersFunction_get_class_attr_names
(instance: Any | type[Any])
python/agents/camel/camel/camel_library/interpreter/camel_value.py:1483
↓ 2 callersFunction_get_classifier_v1
()
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/classify_shoes_local.py:267
↓ 2 callersFunction_get_classifier_v2
()
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/classify_shoes_local.py:259
↓ 2 callersFunction_get_clients
()
python/agents/genmedia-for-commerce/genmedia4commerce/mcp_server/image_vto/glasses/glasses_mcp.py:35
↓ 2 callersFunction_get_embedding
Generates a vector embedding for the given text using Vertex AI.
python/agents/policy-as-code/policy_as_code_agent/memory.py:44
↓ 2 callersFunction_get_encoded_email_from_token
Get user info from access token and base64 encode the email.
python/agents/brand-aligner/brand_aligner_agent/auth.py:83
↓ 2 callersFunction_get_llm_location
()
python/agents/invoice-processing/invoice_processing/shared_libraries/alf_engine.py:188
↓ 2 callersFunction_get_mime_type
Guesses the MIME type of a file based on its extension.
python/agents/brand-aligner/brand_aligner_agent/services.py:939
↓ 2 callersMethod_get_model
Lazy-initialize the Vertex AI GenerativeModel.
python/agents/invoice-processing/invoice_processing/shared_libraries/alf_engine.py:942
↓ 2 callersFunction_get_processed_guideline
Retrieves the latest processed guideline output for a given guideline gcs_uri. Returns the Guideline object if found, otherwise None.
python/agents/brand-aligner/brand_aligner_agent/tools.py:276
↓ 2 callersFunction_get_seniority_order
Convert seniority level to numeric order for comparison.
python/agents/nexshift-agent/nexshift_agent/sub_agents/tools/compliance_tools.py:132
↓ 2 callersFunction_get_session_folder
Lazy initialization of session folder.
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/debug_utils.py:53
↓ 2 callersFunction_get_token_from_state
Helper to get token from tool context state.
python/agents/brand-aligner/brand_aligner_agent/auth.py:96
↓ 2 callersFunction_handle_log_report
Helper function to generate a consistent log report.
python/agents/plumber-data-engineering-assistant/plumber_agent/sub_agents/monitoring_agent/tools/dataproc.py:17
↓ 2 callersFunction_history_blob_path
(global_session_id: str)
python/agents/genmedia-for-commerce/genmedia4commerce/agent_utils.py:46
↓ 2 callersFunction_insert_visual_into_slide
Inserts a visual into a slide using a placeholder or centering it.
python/agents/brand-aligned-presentations/presentation_agent/tools/pptx_editor.py:398
↓ 2 callersFunction_is_b64_blob
(v)
python/agents/genmedia-for-commerce/genmedia4commerce/agents/style_advisor_agent/agent.py:156
↓ 2 callersFunction_is_endpoint_available
Check if a remote shoe classification endpoint is configured.
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/classify_shoes.py:32
↓ 2 callersFunction_is_good_enough
(score, is_discarded)
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/product_enrichment/product_fitting/pipeline.py:310
↓ 2 callersFunction_isinstance_sqlglot_schema_type
Checks if the object is a SQLGlot schema type.
python/agents/data-science/data_science/sub_agents/bigquery/chase_sql/sql_postprocessor/sql_translator.py:70
↓ 2 callersFunction_load
Load embeddings and metadata into memory.
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/vector_search.py:76
↓ 2 callersFunction_load_gcs_image
Loads an image from GCS and returns it as a Part object. Args: gcs_uri: The GCS URI of the image. Does not start with "gs://" sto
python/agents/product-catalog-ad-generation/content_gen_agent/utils/images.py:31
↓ 2 callersFunction_load_hris
Load HRIS data.
python/agents/nexshift-agent/nexshift_agent/sub_agents/tools/empathy_tools.py:51
↓ 2 callersFunction_load_nurse_stats
Load nurse stats.
python/agents/nexshift-agent/nexshift_agent/sub_agents/tools/hris_tools.py:34
↓ 2 callersMethod_make_args_by_keyword
( self, args: "CaMeLTuple", kwargs: "CaMeLDict[CaMeLStr, Value]" )
python/agents/camel/camel/camel_library/interpreter/camel_value.py:461
↓ 2 callersMethod_make_tmp_rule_base
Write SAMPLE_RULE_BASE to a temp file and return path.
python/agents/invoice-processing/tests/test_rule_writer.py:266
↓ 2 callersMethod_maybe_truncate_output
Truncate the output by omitting the middle lines. ```output line 1 line 2 (... omitted xxx lines ...) line 3
python/agents/swe-benchmark-agent/swe_benchmark_agent/orchestrator.py:378
↓ 2 callersFunction_model_photo_key
Map framing value to the model photo key prefix (e.g. 'front_top').
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/product_enrichment/product_fitting/pipeline.py:53
↓ 2 callersFunction_now
Return current time as HH:MM:SS.mmm.
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/image_vto/clothes/pipeline.py:49
↓ 2 callersFunction_parse_json_response
Parse JSON from LLM response, handling markdown blocks and trailing text.
python/agents/invoice-processing/invoice_processing/core/rule_discoverer.py:142
↓ 2 callersFunction_parse_repo_path
Parses a repository string to extract the owner and repository name. Handles both full GitHub URLs (http/https) and the shorthand 'owner/rep
python/agents/plumber-data-engineering-assistant/plumber_agent/sub_agents/github_agent/utils.py:56
↓ 2 callersMethod_parse_response
Parse the LLM response as JSON. Handles markdown code blocks and trailing text.
python/agents/invoice-processing/invoice_processing/shared_libraries/alf_engine.py:1225
↓ 2 callersFunction_print_word_wrapped
Print text with word wrapping at _MAX_LINE_WIDTH.
python/agents/invoice-processing/invoice_processing/shared_libraries/investigation/investigate_agent_reconst.py:5423
↓ 2 callersFunction_process_one
Send one URI to the Cloud Run service, return parsed reply dict. Uses the same BQ-remote-function payload format the service already speaks (
python/agents/multiformat-hybrid-rag/src/document_preprocessing/preprocess.py:110
↓ 2 callersFunction_pull_tar
Download and extract a single asset tar from GCS if not present locally.
python/agents/genmedia-for-commerce/genmedia4commerce/config.py:82
↓ 2 callersFunction_resolve
(val: str)
python/agents/genmedia-for-commerce/genmedia4commerce/agents/style_advisor_agent/agent.py:138
↓ 2 callersFunction_rm_md
(t: str)
python/agents/brand-aligned-presentations/presentation_agent/tools/presentation_orchestrator.py:169
↓ 2 callersFunction_run_agent
Helper to run the agent and return the final response text.
python/agents/small-business-loan-agent/tests/integration/test_agent.py:32
↓ 2 callersMethod_run_evaluation_task
Helper to run evaluation task with caching support.
python/agents/brand-aligner/brand_aligner_agent/services.py:897
↓ 2 callersMethod_run_safety_loop
Run validate → impact → auto-tighten loop on a rule. Args: case_id: The target case ID. initial_rule: The rule dict t
python/agents/invoice-processing/invoice_processing/core/safe_rule_orchestrator.py:49
↓ 2 callersMethod_run_with_triple_check
Run LLM validation with triple-check mechanism. 1. First call 2. If violations found + double-check enabled → second cal
python/agents/invoice-processing/invoice_processing/shared_libraries/investigation/investigate_agent_reconst.py:1208
↓ 2 callersFunction_save_json
Save data to JSON file.
python/agents/nexshift-agent/nexshift_agent/sub_agents/tools/compliance_tools.py:26
↓ 2 callersFunction_save_json
Save data to JSON file.
python/agents/nexshift-agent/nexshift_agent/sub_agents/tools/empathy_tools.py:45
↓ 2 callersFunction_save_json_artifact
Saves a JSON object as a text artifact. Args: tool_context (ToolContext): The context for saving artifacts. name (str): The base
python/agents/product-catalog-ad-generation/content_gen_agent/func_tools/generate_storyline.py:517
↓ 2 callersFunction_save_nurse_stats
Save nurse stats.
python/agents/nexshift-agent/nexshift_agent/sub_agents/tools/hris_tools.py:43
↓ 2 callersFunction_select_best_view
Rank pre-classified garment images by quality and extract details. The images have already been validated and classified by classify_garments
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/product_enrichment/product_fitting/classification.py:180
↓ 2 callersMethod_softmax
(x)
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/classify_shoes_local.py:128
↓ 2 callersMethod_softmax
(x)
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/classify_shoes_local.py:199
↓ 2 callersFunction_try_fix
Try to fix an image and evaluate the fix. Returns (fixed_result_or_None, fix_log).
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/product_enrichment/product_fitting/pipeline.py:106
↓ 2 callersMethod_validate_batch
Validate multiple deterministic rule groups in a single LLM call. v2.0.2: Sends ALL deterministic rules in one prompt. Ultra-cons
python/agents/invoice-processing/invoice_processing/shared_libraries/investigation/investigate_agent_reconst.py:1157
↓ 2 callersMethod_validate_individual
Validate a single subjective rule group with its own LLM call. v2.0.2: Ultra-conservative prompt with triple-check.
python/agents/invoice-processing/invoice_processing/shared_libraries/investigation/investigate_agent_reconst.py:1183
↓ 2 callersFunction_walk_dict
(d: dict, depth: int = 0)
python/agents/genmedia-for-commerce/genmedia4commerce/agent_utils.py:202
↓ 2 callersFunctionanalyze_labor_force_quality
Performs a comparative labor force assessment.
python/agents/economic-research-agent/economic_research/tools/bls_api_skill.py:75
↓ 2 callersFunctionanalyze_market_sentiment
Fetches real-time news headlines to perform sentiment analysis on MSAs and industries. Use this to catch 'Soft Signals' (strikes, recent larg
python/agents/economic-research-agent/economic_research/tools/sentiment_skill.py:19
↓ 2 callersFunctionanalyze_workforce_exposure
Analyzes AI exposure (automation vs. augmentation) and strategic recommendations for a list of occupational domains or standard job titles.
python/agents/economic-research-agent/economic_research/tools/workforce_exposure_skill.py:7
↓ 2 callersFunctionapprove_discount
Approve the flat rate or percentage discount requested by the user. Args: discount_type (str): The type of discount, either "percent
python/agents/customer-service/customer_service/tools/tools.py:47
↓ 2 callersFunctionbase64ToBlob
(base64: string, mimeType: string = 'video/mp4')
python/agents/genmedia-for-commerce/frontend/src/spinning/services/interpolationApi.ts:168
↓ 2 callersFunctionblobToBase64
(blob)
go/agents/navallist/web/js/api.js:259
↓ 2 callersMethodbuild_case_context
Build a unified case context from all agent artifacts. This flattens the multi-agent output into a single dict that the
python/agents/invoice-processing/invoice_processing/shared_libraries/alf_engine.py:2103
↓ 2 callersFunctioncalculate_ssim_with_bg_removal
Calculate SSIM similarity between two images after removing backgrounds. Removes white/gray backgrounds using fast HSV detection, then computes
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/image_utils.py:125
↓ 2 callersMethodcall
( self, args: CaMeLTuple, kwargs: CaMeLDict[CaMeLStr, Value], namespace: Names
python/agents/camel/camel/camel_library/interpreter/camel_value.py:1566
↓ 2 callersFunctioncall_gemini_image_api
Calls the Gemini image generation API and evaluates the result. Args: client: The Gemini API client. model: The name of the model
python/agents/product-catalog-ad-generation/content_gen_agent/utils/gemini_utils.py:65
↓ 2 callersFunctioncall_gemini_with_pdf
Call Gemini with PDF as input
python/agents/invoice-processing/invoice_processing/shared_libraries/acting/general_invoice_agent.py:504
↓ 2 callersMethodcall_parallel
Calls the Gemini model for multiple prompts in parallel using threads with retry logic. Args: prompts (List[str]): A list of prom
python/agents/data-science/data_science/sub_agents/bigquery/chase_sql/llm_utils.py:178
← previousnext →501–600 of 4,953, ranked by callers