MCPcopy Create free account

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

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

↓ 2,631 callersMethodget
(self, name: str)
python/agents/camel/camel/camel_library/interpreter/camel_value.py:52
↓ 188 callersMethodget
Set browser variables to corresponding link, page HTML for URL
python/agents/personalized-shopping/personalized_shopping/shared_libraries/web_agent_site/envs/web_agent_text_env.py:704
↓ 154 callersMethoditems
(self)
python/agents/camel/camel/camel_library/interpreter/camel_value.py:646
↓ 132 callersMethodrun
Runs the QLLM agent synchronously in a new thread. NOTE: This sync interface is solely because the CaMeL interpreter is synchronous a
python/agents/camel/camel/camel_agent/camel_agent.py:142
↓ 130 callersMethodcamel
(cls)
python/agents/camel/camel/camel_library/capabilities/capabilities.py:43
↓ 123 callersMethoddefault
(cls)
python/agents/camel/camel/camel_library/capabilities/capabilities.py:39
↓ 98 callersMethodinit
( self, namespace: Namespace, *args: Any, **kwargs: dict[str, Any], )
python/agents/camel/camel/camel_library/interpreter/camel_value.py:1543
↓ 90 callersMethodsearch
Wrapper for `receive` handler for performing search action on current page
python/agents/personalized-shopping/personalized_shopping/shared_libraries/web_agent_site/envs/web_agent_text_env.py:724
↓ 87 callersMethodsave
Save the current session to disk. Returns the file path, or None if nothing to save.
python/agents/invoice-processing/invoice_processing/core/session_logger.py:198
↓ 86 callersMethodadd
(self, other: Value)
python/agents/camel/camel/camel_library/interpreter/camel_value.py:1002
↓ 76 callersMethodformat
Detect content type and apply appropriate formatting.
python/agents/nexshift-agent/nexshift_agent/sub_agents/utils/output_formatter.py:20
↓ 65 callersMethod_apply_operator
Core operator dispatch.
python/agents/invoice-processing/invoice_processing/shared_libraries/alf_engine.py:310
↓ 49 callersMethodclose
Mock cleanup.
python/agents/swe-benchmark-agent/tests/test_agent.py:53
↓ 49 callersMethodsave_artifact
Save artifact to output folder
python/agents/invoice-processing/invoice_processing/shared_libraries/acting/general_invoice_agent.py:613
↓ 41 callersFunctioncamel_eval
Interprets the given AST enforcing security policies.
python/agents/camel/camel/camel_library/interpreter/interpreter.py:3793
↓ 41 callersFunctionget_generate_content_config
Create standard configuration for Gemini content generation. Args: temperature: Temperature for generation (default: 1) top_p: To
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/llm_utils.py:246
↓ 41 callersMethodrun_async
Run the tool asynchronously.
python/agents/tau2-benchmark-agent/tau2_agent/adk_agent.py:60
↓ 40 callersFunctioncn
(...inputs: ClassValue[])
python/agents/deep-search/frontend/src/utils.ts:4
↓ 38 callersFunction_load_json
Load JSON file, return empty dict if not found.
python/agents/nexshift-agent/nexshift_agent/sub_agents/tools/history_tools.py:53
↓ 36 callersFunctionmake_builtin
( name: str, fn: Callable[..., _T], is_class_method: bool = False )
python/agents/camel/camel/camel_library/interpreter/camel_value.py:1981
↓ 34 callersMethodsubmit
Submits the current solution and ends the interaction. Don\'t submit unless you are confident that the solution is correct. For examp
python/agents/swe-benchmark-agent/swe_benchmark_agent/orchestrator.py:521
↓ 32 callersMethodexecute
Mock command execution.
python/agents/swe-benchmark-agent/tests/test_agent.py:33
↓ 32 callersFunctionsave_debug_image
Save an image to the debug folder with a descriptive name. Args: img_bytes: Image as bytes step_name: Name of the processing step
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/debug_utils.py:68
↓ 31 callersFunctionget_logger
Returns a standard Python logger.
python/agents/brand-aligned-presentations/presentation_agent/shared_libraries/config.py:33
↓ 31 callersMethodquery
Standard Reasoning Engine entry point.
python/agents/economic-research-agent/economic_research/agent.py:162
↓ 28 callersFunctiongenerate_nano
Generate content using Gemini image generation model. Args: client: Gemini client instance text_images_pieces: List of text strin
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/nano_banana.py:55
↓ 28 callersMethodstring
(self)
python/agents/camel/camel/camel_library/interpreter/camel_value.py:181
↓ 27 callersMethodevaluate
Evaluate all rules against the provisional output using the Collect -> Plan -> Execute pipeline. This is the main entry
python/agents/invoice-processing/invoice_processing/shared_libraries/alf_engine.py:1886
↓ 26 callersMethodsub
(self, other: Value)
python/agents/camel/camel/camel_library/interpreter/camel_value.py:1011
↓ 25 callersMethodresolve_field
Resolve a dot-notation field path against a nested dict. Examples: resolve_field({"a": {"b": 1}}, "a.b") → 1
python/agents/invoice-processing/invoice_processing/shared_libraries/alf_engine.py:220
↓ 24 callersFunction_update_error_with_node
( error: result.Error[CaMeLException[Exception]], node: ExceptionASTNodes )
python/agents/camel/camel/camel_library/interpreter/interpreter.py:90
↓ 22 callersMethodrun
Runs the agent to solve the benchmark task. Args: max_turns: The maximum number of turns to allow the agent to run. m
python/agents/swe-benchmark-agent/swe_benchmark_agent/orchestrator.py:618
↓ 21 callersFunction_get
Get a config value from environment, raising if missing and no default.
python/agents/multiformat-hybrid-rag/src/utils/config.py:61
↓ 21 callersFunction_make_not_implemented_error
( node: ExceptionASTNodes, message: str )
python/agents/camel/camel/camel_library/interpreter/interpreter.py:84
↓ 20 callersFunctiongenerate_gemini
Generate text content using Gemini. Args: text_images_pieces: List of text strings, image bytes, or GCS paths client: Gemini clie
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/gemini.py:33
↓ 20 callersMethoditerate_python
(self)
python/agents/camel/camel/camel_library/interpreter/camel_value.py:656
↓ 19 callersFunctioncreate_mp4_from_bytes_to_bytes
Create an MP4 video in memory and return its raw bytes. Args: frames_bytes: List of frame bytes fps: Frames per second (default:
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/video_utils.py:65
↓ 19 callersMethodexecute
Execute a single action on the output. For llm_continue_processing, this delegates to LLMActionExecutor which calls Gemi
python/agents/invoice-processing/invoice_processing/shared_libraries/alf_engine.py:565
↓ 18 callersFunctionget_mime_type_from_path
Detect MIME type from file extension in path. Args: path: File path or URL Returns: str: Detected MIME type
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/llm_utils.py:173
↓ 18 callersMethodnew_with_dependencies
(self, dependencies: tuple["Value", ...])
python/agents/camel/camel/camel_library/interpreter/camel_value.py:107
↓ 17 callersFunctionApp
()
python/agents/deep-search/frontend/src/App.tsx:42
↓ 17 callersFunction_insert_image
Loads an image from various sources and inserts it into a slide. If a box_hint is provided, it scales the image to fit within the box whi
python/agents/brand-aligned-presentations/presentation_agent/shared_libraries/utils.py:72
↓ 17 callersFunctionpredict_parallel
Execute a function in parallel across multiple inputs using ThreadPoolExecutor. Args: to_predict: Iterable of inputs to process p
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/utils.py:24
↓ 16 callersFunctionclassify_shoe
Classify shoe position using remote endpoint or local embeddings fallback.
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/classify_shoes.py:113
↓ 16 callersFunctionget_part
Convert input to appropriate Part type (text, image/video bytes, or GCS path). Auto-detects MIME type from bytes or file extension. Args:
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/llm_utils.py:211
↓ 16 callersMethodrun
Load case data and build context. Args: case_id: The case folder name (numeric ID). Returns:
python/agents/invoice-processing/invoice_processing/core/case_loader.py:61
↓ 16 callersMethodstart
Begin a new session.
python/agents/invoice-processing/invoice_processing/core/session_logger.py:65
↓ 15 callersFunction_render
Recursive markdown rendering. depth controls heading level for nested structures (so a top-level object's nested keys get h2, the next level h
python/agents/multiformat-hybrid-rag/src/document_preprocessing/parser/json_parser.py:75
↓ 15 callersFunction_save_json
Save data to JSON file.
python/agents/nexshift-agent/nexshift_agent/sub_agents/tools/history_tools.py:58
↓ 15 callersFunctionupscale_image_bytes
Upscales an image using GCP's Imagen 4.0 Upscale API. Automatically adjusts upscale factor if the requested factor would exceed the maximum a
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/image_utils.py:249
↓ 15 callersMethodvalidate_rule
Validate a rule dict against the schema. Returns list of error messages (empty if valid).
python/agents/invoice-processing/invoice_processing/core/rule_writer.py:82
↓ 14 callersMethod_add_event
(self, event_type: str, data: dict)
python/agents/invoice-processing/invoice_processing/core/session_logger.py:73
↓ 14 callersMethodclick
Wrapper for `receive` handler for performing click action on current page
python/agents/personalized-shopping/personalized_shopping/shared_libraries/web_agent_site/envs/web_agent_text_env.py:714
↓ 14 callersMethodcontains
(self, other: Value)
python/agents/camel/camel/camel_library/interpreter/camel_value.py:1160
↓ 14 callersFunctionget_mime_type_from_bytes
Detect MIME type from file signature (magic bytes). Args: data: Bytes to analyze Returns: str: Detected MIME type (e.g., "im
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/llm_utils.py:124
↓ 13 callersFunction_clean_html
Strip non-content elements from raw HTML.
python/agents/multiformat-hybrid-rag/src/document_preprocessing/parser/html_parser.py:63
↓ 13 callersFunction_get_master_data
Return the module-level master data instance (may be None).
python/agents/invoice-processing/invoice_processing/shared_libraries/investigation/investigate_agent_reconst.py:86
↓ 13 callersMethod_set_field
Set a field value using dot-notation path.
python/agents/invoice-processing/invoice_processing/shared_libraries/alf_engine.py:656
↓ 13 callersFunction_write_rule_base
Write rule base to temp file and return path.
python/agents/invoice-processing/tests/test_alf_engine.py:86
↓ 13 callersFunctioncreate_canvas
Create a canvas with a product image centered with configurable margins. Supports three scaling modes: - target_diagonal: Scales image to mat
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/image_utils.py:679
↓ 13 callersMethodfrom_raw
( cls, string: str, capabilities: camel_capabilities.Capabilities, dependencie
python/agents/camel/camel/camel_library/interpreter/camel_value.py:1178
↓ 13 callersFunctionget_env_var
Retrieves the value of an environment variable. Args: var_name: The name of the environment variable. Returns: The value of the
python/agents/data-science/data_science/utils/utils.py:31
↓ 13 callersMethodindex
(self, index: "CaMeLInt")
python/agents/camel/camel/camel_library/interpreter/camel_value.py:538
↓ 13 callersFunctionnormalize_string
Normalize a string for comparison (lowercase, strip, collapse whitespace).
python/agents/invoice-processing/eval/eval.py:133
↓ 13 callersFunctionreplace_background
Extract the product object from the image and place it on a new background. Handles EXIF orientation and ensures mask alignment with the original
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/image_utils.py:323
↓ 12 callersFunction_get_config
Return the current CONFIG dict.
python/agents/invoice-processing/invoice_processing/shared_libraries/acting/general_invoice_agent.py:183
↓ 12 callersFunction_is_empty
True if a value carries no information worth rendering.
python/agents/multiformat-hybrid-rag/src/document_preprocessing/parser/json_parser.py:61
↓ 12 callersFunctionaddConsoleEntry
(type, content, data = null, emoji = null, author = null, isAudio = false)
python/agents/bidi-demo/app/static/js/app.js:102
↓ 12 callersFunctionbatch_generate_slides
Generates detailed content for MULTIPLE slides in parallel with performance tuning.
python/agents/brand-aligned-presentations/presentation_agent/sub_agents/synthesizer/agent.py:125
↓ 12 callersFunctioncompare_faces_insightface
Compare two face images using InsightFace embeddings. Args: reference_face_bytes: Reference face image as bytes. generated_face_b
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/person_eval.py:250
↓ 12 callersFunctionextract_frames_as_bytes_list
Extract frames from video bytes and return them as a list of image bytes. Args: video_bytes: The raw byte data of a video file im
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/video_utils.py:34
↓ 12 callersFunctiongenerate_veo_r2v
Generate video using Veo with reference images (R2V mode). Args: client: Veo client instance reference_images: List of reference
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/veo_utils.py:118
↓ 12 callersFunctionget_generate_content_config
Create standard configuration for Gemini content generation.
python/agents/multiformat-hybrid-rag/src/utils/llm_utils.py:136
↓ 12 callersFunctionload_nurses
Loads nurse profiles from the mock HRIS database (internal use).
python/agents/nexshift-agent/nexshift_agent/sub_agents/tools/data_loader.py:14
↓ 12 callersMethodname
(self)
python/agents/camel/camel/camel_library/interpreter/camel_value.py:374
↓ 11 callersMethodWriteHeader
(code int)
go/agents/boat-agent/main.go:157
↓ 11 callersFunctionclassify
(mock_pipeline_config, mock_generate_gemini)
python/agents/multiformat-hybrid-rag/tests/unit/document_preprocessing/test_document_relevance_classifier.py:31
↓ 11 callersFunctioncrop_face
Detect a face in the image using Google Cloud Vision API and return the cropped face. Padding is calculated as a percentage of the detected face
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/image_utils.py:592
↓ 11 callersFunctionget_logger
Get a logger instance with proper configuration.
python/agents/small-business-loan-agent/small_business_loan_agent/shared_libraries/logging_config.py:46
↓ 11 callersMethodto_json
Converts the Customer object to a JSON string. Returns: A JSON string representing the Customer object.
python/agents/customer-service/customer_service/entities/customer.py:101
↓ 10 callersMethodGet
(opts *openmeteogo.Options)
go/agents/sail-researcher/tools/weather.go:42
↓ 10 callersFunctionclean_json_response
Clean LLM JSON response by removing markdown code blocks.
python/agents/invoice-processing/invoice_processing/shared_libraries/investigation/investigate_agent_reconst.py:3539
↓ 10 callersMethodexecute
Execute a command in the container with timeout and error handling. Args: command: The command to execute. demux: If True, re
python/agents/swe-benchmark-agent/swe_benchmark_agent/swebench_environment.py:131
↓ 10 callersFunctiongetEnv
* Helper function to read environment variables. * @param key The environment variable key. * @param defaultValue The default value if the key is no
typescript/agents/customer_service/customer_service/config.ts:28
↓ 10 callersFunctionget_mime_type_from_bytes
Detect MIME type from file signature (magic bytes). Needs at least 32 bytes to check every signature reliably; shorter inputs are treated as
python/agents/multiformat-hybrid-rag/src/utils/llm_utils.py:28
↓ 10 callersFunctioninit_or_get_youtube_client
Initializes or retrieves the YouTube Data API client. Priority: 1. Session state (onboarded by user) 2. Environment variable (pr
python/agents/youtube-analyst/youtube_analyst/tools.py:22
↓ 10 callersMethodis_final_response
(self)
python/agents/global-kyc-agent/global_kyc_agent/agent.py:30
↓ 10 callersFunctionparse
Parse a document file to markdown. Args: file_path: Local path to the file. genai_client: Gemini client (needed for PDF/legacy Of
python/agents/multiformat-hybrid-rag/src/document_preprocessing/parser/__init__.py:71
↓ 10 callersFunctionupload_folder_to_gcs
Upload an entire folder to GCS using the High-Performance Transfer Manager. Args: bucket_name: Name of the GCS bucket source_fold
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/gcs_utils.py:44
↓ 9 callersMethodClose
()
go/agents/sail-researcher/main.go:25
↓ 9 callersMethod__init__
(self, name: str, version: str = "1.0")
python/agents/invoice-processing/invoice_processing/shared_libraries/acting/general_invoice_agent.py:597
↓ 9 callersFunctioncan_generate_views
Check if the labels contain enough views to generate a video. Args: labels: List of class labels. Returns: bool: True if eno
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/shoe_images_selection.py:79
↓ 9 callersMethodcreate_output
Wrap agent output with metadata
python/agents/invoice-processing/invoice_processing/shared_libraries/acting/general_invoice_agent.py:601
↓ 9 callersFunctiongenerate_shifts
Generates mock shifts for the scheduling period. Args: start_date: Starting date for shifts (defaults to today) num_days: Nu
python/agents/nexshift-agent/nexshift_agent/sub_agents/tools/data_loader.py:74
↓ 9 callersFunctiongenerate_veo
Generate video using Veo from a starting image. Supports two modes: - Image-to-video: Only provide `image`, Veo animates from that frame
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/veo_utils.py:41
↓ 9 callersFunctionget_client
(project_id: str)
python/agents/multiformat-hybrid-rag/src/utils/gcs_utils.py:26
↓ 9 callersFunctionget_mime_type_from_path
Detect MIME type from file extension.
python/agents/multiformat-hybrid-rag/src/utils/llm_utils.py:59
↓ 9 callersFunctionlog_policy_execution
Logs the execution of a policy to Firestore and updates aggregate stats. Args: violations: A list of violation objects. If provided,
python/agents/policy-as-code/policy_as_code_agent/memory.py:555
↓ 9 callersFunctionmake_mock_response
(text)
python/agents/economic-research-agent/tests/unit/test_routing_and_primitives.py:32
↓ 9 callersMethodslice
( self, start: "CaMeLInt | CaMeLNone", end: "CaMeLInt | CaMeLNone", step: "CaM
python/agents/camel/camel/camel_library/interpreter/camel_value.py:541
next →1–100 of 4,953, ranked by callers