MCPcopy Create free account

hub / github.com/ag2ai/build-with-ag2 / functions

Functions534 in github.com/ag2ai/build-with-ag2

↓ 1 callersFunction_clean_body
Strip HTML and truncate to _BODY_MAX_CHARS.
arcade/gmail-agent/main.py:71
↓ 1 callersFunction_clean_full
Full clean: drop skip keys, strip HTML from body fields, truncate.
arcade/gmail-agent/main.py:79
↓ 1 callersFunction_extract_json
Try to extract a JSON object from a string.
due-diligence-with-tinyfish/main.py:144
↓ 1 callersFunction_fetch_travel_time
Retrieves route information using Google Maps Directions API. API documentation at https://developers.google.com/maps/documentation/directions/get
travel-planner/google_map_platforms.py:30
↓ 1 callersFunction_guess_mime
(filename: str)
beta/data-analyst/backend.py:346
↓ 1 callersFunction_init_output_dir
Create a timestamped output directory and initialise references.md.
due-diligence-with-tinyfish/main.py:127
↓ 1 callersFunction_json_to_jsonl
Convert a JSON array file to a JSONL temp file (required by graphrag_sdk).
travel-planner/main.py:73
↓ 1 callersFunction_operator_respond
Wait until RemTriage routes the 'human' into the fan-out (so the operator is a valid pending speaker), obtain the operator's decision from the
itops/orchestration/run_demo.py:1136
↓ 1 callersFunction_parse_args
(raw: str)
beta/parallel-research/main.py:303
↓ 1 callersFunction_render_prompt
(profile: SuspectProfile)
beta/mystery-dinner/app/agents/suspect.py:10
↓ 1 callersFunction_render_prompt
()
beta/mystery-dinner/app/agents/detective.py:18
↓ 1 callersFunction_require_tavily
()
beta/ask-the-web/backend.py:95
↓ 1 callersFunction_run_flow
Run a full incident flow on the shared hub. Fire-and-forget task.
itops/it_ops_app/server.py:236
↓ 1 callersFunction_slim_email
Keep only metadata fields from a single email dict.
arcade/gmail-agent/main.py:98
↓ 1 callersFunction_sufficient
Every non-accused suspect must have at least one fact placing them outside the study during the window. The study's GPS starts with "40.81". D
beta/mystery-dinner/app/game_master.py:221
↓ 1 callersMethod_worker
(self)
beta/mystery-dinner/app/commentary.py:79
↓ 1 callersMethodadd_fact
(self, fact: VerifiedFact)
beta/mystery-dinner/app/memory.py:46
↓ 1 callersFunctionadd_todo
( id: Annotated[int, "task id"], task: Annotated[str, "task description"], status: Annotated[str,
manage-todos-with-realtime-agent/todo_utils.py:29
↓ 1 callersMethodadd_turn
(self, turn: InterrogationTurn)
beta/mystery-dinner/app/memory.py:42
↓ 1 callersFunctionappendToolCard
(name)
beta/mystery-dinner/app/static/mystery_dinner.js:264
↓ 1 callersFunctionapplyEvent
(state, ev)
itops/frontend/src/live/BackendProvider.jsx:27
↓ 1 callersFunctionarchive_email
Archives an email by removing it from the INBOX (moves to All Mail).
email-management/email_utils.py:330
↓ 1 callersFunctionargsPreview
(args)
itops/frontend/src/live/mappers.js:52
↓ 1 callersFunctionauthenticate_google_drive_local
Authenticate with Google Drive and return credentials
dataroom-research/main.py:66
↓ 1 callersFunctionbuild_commentator
()
beta/mystery-dinner/app/agents/commentator.py:52
↓ 1 callersFunctionbuild_config
()
beta/data-analyst/backend.py:198
↓ 1 callersFunctionbuild_config
()
beta/ask-the-web/backend.py:76
↓ 1 callersFunctionbuild_detective
(suspects: dict[str, Agent])
beta/mystery-dinner/app/agents/detective.py:103
↓ 1 callersFunctionbuild_lead
( researchers: list[Agent], router: LaneRouter, parent_storage, )
beta/parallel-research/main.py:203
↓ 1 callersFunctionbuild_researchers
(n: int)
beta/parallel-research/main.py:191
↓ 1 callersMethodbuild_round_envelope
Build the round-end EV_PACKET envelope. Same shape as WorkflowAdapter's, with one important addition: we enrich ``routing`` with ``to
itops/orchestration/parallel_workflow.py:473
↓ 1 callersFunctioncheck_return_eligibility
check order return eligibility for user.
e-commerce-customer-service/functions.py:60
↓ 1 callersFunctioncommentator_llm_config
LLM config for the live commentator.
beta/mystery-dinner/app/config.py:54
↓ 1 callersFunctionconfidenceToNum
(c)
itops/frontend/src/live/mappers.js:43
↓ 1 callersFunctionconnect
()
itops/frontend/src/live/BackendProvider.jsx:208
↓ 1 callersFunctionconvert_timestamp_to_local
Convert a Unix timestamp in milliseconds to local time. Args: timestamp_ms (int): Timestamp in milliseconds. Returns: s
email-management/email_utils.py:196
↓ 1 callersFunctioncount_train_trials
(groupchat)
automate-ml-for-kaggle/utils.py:30
↓ 1 callersFunctioncreate_app
()
beta/mystery-dinner/app/server.py:43
↓ 1 callersFunctioncreate_research_writing_group_chat
Create and configure all agents for the research-writing group chat.
tutorial/agent_pattern_cookbook/pattern_advanced_triage_with_tasks.py:293
↓ 1 callersMethoddecodePcm16Data
(pcmData)
manage-todos-with-realtime-agent/website_files/static/Audio.js:180
↓ 1 callersFunctiondetective_llm_config
LLM config for the detective agent. Default: a local OpenAI-compatible MLX server running Qwen. Switch to GeminiConfig / VertexAIConfig / etc
beta/mystery-dinner/app/config.py:34
↓ 1 callersFunctionempty
()
beta/mystery-dinner/app/server.py:160
↓ 1 callersFunctionevidenceTypeForTool
(tool)
itops/frontend/src/live/mappers.js:31
↓ 1 callersMethodextractPcm16Data
(buffer)
manage-todos-with-realtime-agent/website_files/static/Audio.js:205
↓ 1 callersFunctionfetch_email_thread
Fetches all emails in a thread given a thread ID. Args: gmail (Resource): Gmail API service instance. thread_id (str): The t
email-management/email_utils.py:90
↓ 1 callersFunctionfetch_emails
( gmail: Resource, page_token: Optional[str], filter_by: Optional[Union[str, List[str]]] = ["UNREA
email-management/email_utils.py:171
↓ 1 callersFunctionfetch_research_results
(user_query)
deep-research-agent/frontend.py:12
↓ 1 callersMethodfinalize
(self, accused: str, reasoning: str)
beta/mystery-dinner/app/game_master.py:47
↓ 1 callersFunctionfmtClock
(sec)
beta/mystery-dinner/app/static/mystery_dinner.js:550
↓ 1 callersFunctionfmtElapsed
(sec)
beta/mystery-dinner/app/static/mystery_dinner.js:463
↓ 1 callersFunctiongenerate_filename
Generate a filename based on the research query.
dataroom-research/main.py:14
↓ 1 callersFunctiongetUuids
(companyName)
financial-analysis/main.py:13
↓ 1 callersFunctionget_engine
()
beta/mystery-dinner/app/commentary.py:116
↓ 1 callersFunctionget_gmail_service
()
email-management/email_utils.py:218
↓ 1 callersFunctionget_trip_ontology
()
travel-planner/ontology.py:4
↓ 1 callersFunctionget_user_email
(gmail: Resource)
email-management/email_utils.py:16
↓ 1 callersFunctionget_weather_condition
Map WMO weather code to human-readable condition.
ag-ui/weather/backend.py:21
↓ 1 callersFunctiongroup_emails_by_sender
Groups emails by sender email. Args: email_list (List[Dict[str, Union[str, List[str]]]]): List of parsed email data. Returns:
email-management/email_utils.py:295
↓ 1 callersFunctionhandleRecord
(record, asst, toolCalls)
beta/mystery-dinner/app/static/mystery_dinner.js:168
↓ 1 callersFunctionhitlQuestion
(payload)
itops/frontend/src/live/mappers.js:86
↓ 1 callersFunctionhumanizeIssue
(issue)
itops/frontend/src/live/mappers.js:48
↓ 1 callersFunctionis_ready_for_train
(groupchat, client)
automate-ml-for-kaggle/utils.py:1
↓ 1 callersFunctionloadCase
()
beta/mystery-dinner/app/static/mystery_dinner.js:23
↓ 1 callersFunctionloadSuspects
()
beta/mystery-dinner/app/static/mystery_dinner.js:35
↓ 1 callersFunctionload_task
()
ag-ui/gpt-researcher/server.py:57
↓ 1 callersFunctionload_task
()
ag-ui/gpt-researcher/main.py:19
↓ 1 callersFunctionmain
Main function to demonstrate the Escalation Pattern with the Group Chat orchestration engine.
tutorial/agent_pattern_cookbook/pattern_advanced_escalation.py:123
↓ 1 callersFunctionmain
()
deep-research-agent/main.py:5
↓ 1 callersFunctionmain
()
financial-analysis/main.py:155
↓ 1 callersFunctionmain
()
ag-ui/gpt-researcher/main.py:23
↓ 1 callersFunctionmain
()
beta/parallel-research/main.py:243
↓ 1 callersFunctionmain
()
dataroom-research/main.py:84
↓ 1 callersFunctionmain
()
project-template/main.py:8
↓ 1 callersFunctionmain
()
itops/orchestration/run_demo.py:1436
↓ 1 callersFunctionmain
()
itops/it_ops_app/smoke_client.py:23
↓ 1 callersFunctionmake_agent_pair
Returns an (AssistantAgent, UserProxyAgent) pair with tinyfish registered.
due-diligence-with-tinyfish/main.py:161
↓ 1 callersFunctionmake_participants
Build a Participant list. First entry is the INITIATOR.
itops/orchestration/test_parallel_workflow.py:48
↓ 1 callersFunctionmake_stream_factory
(label: str)
beta/parallel-research/main.py:208
↓ 1 callersMethodmatching
REAL duplicate lookup: non-duplicate tickets for the same system + issue created within the lookback window, oldest first.
itops/orchestration/run_demo.py:253
↓ 1 callersFunctionmock_login_process
()
e-commerce-customer-service/functions.py:41
↓ 1 callersMethodnew_id
(self)
itops/orchestration/run_demo.py:198
↓ 1 callersFunctionnickName
(stage, nick)
itops/frontend/src/live/mappers.js:26
↓ 1 callersFunctionone
()
beta/mystery-dinner/app/server.py:118
↓ 1 callersFunctionparse_email_data
Fetches and parses email data, including subject, sender, body, and attachments.
email-management/email_utils.py:238
↓ 1 callersFunctionparse_json_args
(s: str)
beta/mystery-dinner/app/memory.py:102
↓ 1 callersFunctionparse_options
Use a one-shot agent call to extract option_a and option_b from the topic. Falls back to generic labels if parsing fails.
tech-decision-debate/main.py:89
↓ 1 callersMethodplayFromQueue
()
manage-todos-with-realtime-agent/website_files/static/Audio.js:156
↓ 1 callersFunctionprint_debate
(topic: str, option_a: str, option_b: str, messages: list)
tech-decision-debate/main.py:46
↓ 1 callersFunctionprint_itinerary
(itinerary_data: dict[str, Any])
travel-planner/main.py:274
↓ 1 callersFunctionprint_ticket_summary
(store: TicketStore)
itops/orchestration/run_demo.py:1414
↓ 1 callersMethodqueuePcmData
(pcmData)
manage-todos-with-realtime-agent/website_files/static/Audio.js:151
↓ 1 callersFunctionrenderToolArgs
(entry)
beta/mystery-dinner/app/static/mystery_dinner.js:286
↓ 1 callersFunctionrenderToolResult
(entry)
beta/mystery-dinner/app/static/mystery_dinner.js:317
↓ 1 callersFunctionrenderVerdict
(raw)
beta/mystery-dinner/app/static/mystery_dinner.js:438
↓ 1 callersMethodreset
(self)
ag-ui/gpt-researcher/server.py:81
↓ 1 callersFunctionrunTurn
()
beta/mystery-dinner/app/static/mystery_dinner.js:120
↓ 1 callersFunctionrun_agent
Runs the agent synchronously and returns the final JSON result.
deep-research-agent/backend.py:14
↓ 1 callersFunctionrun_context_aware_routing
Run the context-aware routing pattern for dynamic domain-based routing
tutorial/agent_pattern_cookbook/pattern_advanced_context_aware_routing.py:471
↓ 1 callersFunctionrun_debate
(topic: str)
tech-decision-debate/main.py:130
↓ 1 callersFunctionrun_diagnosis
Drive one ticket through the diagnosis workflow end-to-end. ``incident`` is a ``mock_world.INCIDENTS`` entry (system / issue / sev / kickoff)
itops/orchestration/run_demo.py:836
← previousnext →101–200 of 534, ranked by callers