Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ag2ai/build-with-ag2
/ functions
Functions
534 in github.com/ag2ai/build-with-ag2
⨍
Functions
534
◇
Types & classes
48
↳
Endpoints
28
↓ 198 callers
Method
get
(self)
beta/data-analyst/backend.py:49
↓ 98 callers
Method
get
(self, ticket_id: str)
itops/orchestration/run_demo.py:212
↓ 53 callers
Function
packet
Construct an EV_PACKET envelope that mimics what build_round_envelope would have produced after an LLM turn.
itops/orchestration/test_parallel_workflow.py:79
↓ 43 callers
Method
fold
( self, envelope: Envelope, state: ParallelWorkflowState, )
itops/orchestration/parallel_workflow.py:285
↓ 22 callers
Function
escapeHtml
(s)
beta/mystery-dinner/app/static/mystery_dinner.js:407
↓ 20 callers
Method
initial_state
(self, metadata: ChannelMetadata)
itops/orchestration/parallel_workflow.py:190
↓ 17 callers
Function
emit
Append an event to the log and wake the broadcaster. Delivery is cursor-based off the log (see _broadcast_loop), so every client — including o
itops/it_ops_app/server.py:91
↓ 16 callers
Function
make_metadata
( adapter: ParallelWorkflowAdapter, agent_ids: list[str], graph: TransitionGraph )
itops/orchestration/test_parallel_workflow.py:64
↓ 16 callers
Function
make_triage_graph
Build the exact graph from §6.2 of the design doc.
itops/orchestration/test_parallel_workflow.py:140
↓ 11 callers
Function
call_arcade_tool
Authorize (if needed) and execute an Arcade tool, returning the output.
arcade/gmail-agent/main.py:45
↓ 10 callers
Method
to_dict
(self)
itops/orchestration/run_demo.py:174
↓ 9 callers
Function
_sse
(data: dict)
ag-ui/gpt-researcher/server.py:498
↓ 9 callers
Function
_timestamp
()
ag-ui/gpt-researcher/server.py:494
↓ 9 callers
Function
tool_response
Canned result for an investigative tool call on ``arg`` (host/pool/disk).
itops/orchestration/mock_world.py:105
↓ 8 callers
Function
_emit_state
Push pipeline state to /logs so the frontend updates in real time.
ag-ui/gpt-researcher/server.py:118
↓ 8 callers
Method
_print
(self, label: str, msg: str)
beta/parallel-research/main.py:155
↓ 8 callers
Method
clear
(self)
itops/orchestration/run_demo.py:266
↓ 8 callers
Method
validate_send
( self, metadata: ChannelMetadata, envelope: Envelope, state: ParallelWorkflow
itops/orchestration/parallel_workflow.py:246
↓ 7 callers
Function
_tool_call
Convenience: build a ToolCallEvent with JSON-encoded args.
itops/orchestration/test_e2e_workflow.py:100
↓ 7 callers
Function
scrollStream
()
beta/mystery-dinner/app/static/mystery_dinner.js:469
↓ 7 callers
Function
state_snapshot
Convert a state to a byte-stable dict for equality comparison.
itops/orchestration/test_parallel_workflow.py:110
↓ 7 callers
Method
update
(self, ticket_id: str, **changes)
itops/orchestration/run_demo.py:218
↓ 6 callers
Method
elapsed
(self)
beta/mystery-dinner/app/clock.py:22
↓ 6 callers
Method
remaining
(self)
beta/mystery-dinner/app/clock.py:13
↓ 5 callers
Function
_fact_dict
(f: VerifiedFact)
beta/mystery-dinner/app/game_master.py:197
↓ 5 callers
Function
_ticket_json
(t: core.Ticket)
itops/it_ops_app/server.py:107
↓ 5 callers
Function
_to_plain
(obj: Any)
beta/mystery-dinner/app/memory.py:73
↓ 5 callers
Method
emit
Emit directly to the queue (bypasses filters).
ag-ui/gpt-researcher/server.py:96
↓ 5 callers
Function
format_todo_str
(data)
manage-todos-with-realtime-agent/todo_utils.py:8
↓ 5 callers
Function
get_data
()
manage-todos-with-realtime-agent/todo_utils.py:15
↓ 5 callers
Function
showTourPage
(i)
beta/mystery-dinner/app/static/mystery_dinner.js:625
↓ 5 callers
Function
showView
(name)
beta/mystery-dinner/app/static/mystery_dinner.js:18
↓ 4 callers
Function
_save_agent_output
Save agent output files and append entries to references.md.
due-diligence-with-tinyfish/main.py:106
↓ 4 callers
Method
_stamp
(self)
itops/orchestration/run_demo.py:769
↓ 4 callers
Function
_wal_tool_args
First EV_PACKET in the WAL whose routing matched ``tool_name`` — return its parsed tool arguments (enriched by the adapter), or {}.
itops/orchestration/run_demo.py:814
↓ 4 callers
Method
_write
(self, t: Ticket)
itops/orchestration/run_demo.py:194
↓ 4 callers
Method
all
(self)
itops/orchestration/run_demo.py:244
↓ 4 callers
Function
call_arcade_tool
Authorize (if needed) and execute an Arcade tool, returning the output.
arcade/linear-agent/main.py:21
↓ 4 callers
Method
reset
(self, duration_seconds: int | None = None)
beta/mystery-dinner/app/clock.py:39
↓ 4 callers
Function
selectInvestigations
(state)
itops/frontend/src/live/backend.js:18
↓ 4 callers
Method
set_status
(self, ticket_id: str, status: str, note: str = "")
itops/orchestration/run_demo.py:226
↓ 4 callers
Function
useBackend
()
itops/frontend/src/live/backend.js:10
↓ 3 callers
Function
_banner
(title: str, subtitle: str = "")
itops/orchestration/run_demo.py:825
↓ 3 callers
Function
_emit_gptr_cost
Push gpt-researcher cost delta to /logs.
ag-ui/gpt-researcher/server.py:128
↓ 3 callers
Method
_notify
(self, kind: str, payload: Any)
beta/mystery-dinner/app/memory.py:64
↓ 3 callers
Function
_run_agent_chat
Run a single agent conversation and return extracted JSON.
due-diligence-with-tinyfish/main.py:186
↓ 3 callers
Function
answer_question_common
Common question answer function that updates context variables and routes based on the answer confidence. agent_level will be one of "basic", "in
tutorial/agent_pattern_cookbook/pattern_advanced_escalation.py:65
↓ 3 callers
Method
create
(self, ticket: Ticket)
itops/orchestration/run_demo.py:207
↓ 3 callers
Method
freeze
(self)
beta/mystery-dinner/app/clock.py:35
↓ 3 callers
Function
gen
()
beta/mystery-dinner/app/server.py:132
↓ 3 callers
Function
incident_keys
()
itops/orchestration/mock_world.py:175
↓ 3 callers
Function
lightMarkdown
(escaped)
beta/mystery-dinner/app/static/mystery_dinner.js:418
↓ 3 callers
Function
renderNotebook
()
beta/mystery-dinner/app/static/mystery_dinner.js:494
↓ 3 callers
Method
resolve
(self, state, envelope)
itops/orchestration/parallel_workflow.py:114
↓ 3 callers
Function
save_data
(data)
manage-todos-with-realtime-agent/todo_utils.py:24
↓ 3 callers
Function
truncate
(s, n)
beta/mystery-dinner/app/static/mystery_dinner.js:470
↓ 2 callers
Function
_clean_slim
Slim clean for list/search: strip body from each email, keep metadata only.
arcade/gmail-agent/main.py:103
↓ 2 callers
Function
_emit_log
(service: str, message: str, level: str = "info")
itops/it_ops_app/server.py:322
↓ 2 callers
Function
_list_artifact_names
(sandbox)
beta/data-analyst/backend.py:334
↓ 2 callers
Method
_maybe_withdraw
( self, outcome: str, accused_key: str, reasoning: str, detail: str,
beta/mystery-dinner/app/game_master.py:160
↓ 2 callers
Method
_path
(self, ticket_id: str)
itops/orchestration/run_demo.py:191
↓ 2 callers
Function
_require_env
(name: str)
beta/parallel-research/main.py:312
↓ 2 callers
Function
_reset
Reset to a clean slate — used by 'Start Simulation' so every run starts from scratch. Cancels in-flight flows, clears tickets/tracking, resets the
itops/it_ops_app/server.py:262
↓ 2 callers
Function
_stringify
(value: Any)
beta/mystery-dinner/app/agents/detective.py:232
↓ 2 callers
Function
_strip_html
Parse HTML and extract plain text.
arcade/gmail-agent/main.py:28
↓ 2 callers
Function
_touches_window
Heuristic: does the fact contain a timestamp inside the murder window?
beta/mystery-dinner/app/game_master.py:206
↓ 2 callers
Function
_truncate
(s: str, limit: int)
beta/data-analyst/backend.py:340
↓ 2 callers
Function
agentsForChannel
(ch, now, order)
itops/frontend/src/live/backend.js:22
↓ 2 callers
Function
appendSystem
(text)
beta/mystery-dinner/app/static/mystery_dinner.js:429
↓ 2 callers
Function
appendTurn
(role, text)
beta/mystery-dinner/app/static/mystery_dinner.js:247
↓ 2 callers
Method
attach
(self, stream: "Stream", label: str)
beta/parallel-research/main.py:117
↓ 2 callers
Function
authenticate_google_drive
Shows basic usage of the Drive v3 API. Prints the names and ids of the first 10 files the user has access to.
dataroom-research/gdrive_signin.py:13
↓ 2 callers
Function
build_config
Return a ModelConfig for the given role ('lead' or 'researcher'). Provider is selected by LLM_PROVIDER env var (default: gemini). Model names
beta/parallel-research/main.py:52
↓ 2 callers
Function
build_suspect
(profile: SuspectProfile)
beta/mystery-dinner/app/agents/suspect.py:67
↓ 2 callers
Function
complete
(name)
itops/frontend/src/live/BackendProvider.jsx:84
↓ 2 callers
Method
describe
(self)
beta/mystery-dinner/app/memory.py:24
↓ 2 callers
Function
ensure
(name, status)
itops/frontend/src/live/BackendProvider.jsx:78
↓ 2 callers
Function
extract_email_body_and_attachments
Extracts and decodes the email body, preferring 'text/plain' but falling back to 'text/html' if needed. Also extracts attachment filenames.
email-management/email_utils.py:26
↓ 2 callers
Function
formatCell
(v)
beta/mystery-dinner/app/static/mystery_dinner.js:400
↓ 2 callers
Function
formatFactResult
(raw)
beta/mystery-dinner/app/static/mystery_dinner.js:377
↓ 2 callers
Function
format_suspect_summary
Public info the Detective can see (no private truths).
beta/mystery-dinner/app/cases/blackwood_estate.py:264
↓ 2 callers
Method
from_dict
(cls, d: dict)
itops/orchestration/run_demo.py:178
↓ 2 callers
Function
generate
()
ag-ui/gpt-researcher/server.py:545
↓ 2 callers
Function
mark_email_as_read
Marks an email as read by removing the 'UNREAD' label.
email-management/email_utils.py:319
↓ 2 callers
Function
now
()
beta/mystery-dinner/app/memory.py:98
↓ 2 callers
Method
on_accepted
( self, metadata: ChannelMetadata, envelope: Envelope, state: ParallelWorkflow
itops/orchestration/parallel_workflow.py:424
↓ 2 callers
Function
profile_by_name
(name: str)
beta/mystery-dinner/app/cases/blackwood_estate.py:256
↓ 2 callers
Function
renderKeyValues
(obj)
beta/mystery-dinner/app/static/mystery_dinner.js:367
↓ 2 callers
Function
run_qa_session
Interactive Q&A over an existing due diligence report folder.
due-diligence-with-tinyfish/main.py:588
↓ 2 callers
Method
send_json
Called by gpt-researcher internals. Filters per-call cost messages.
ag-ui/gpt-researcher/server.py:89
↓ 2 callers
Function
setDirectivesDisabled
(disabled)
beta/mystery-dinner/app/static/mystery_dinner.js:109
↓ 2 callers
Method
set_needs_human
(self, ticket_id: str, needs: bool, prompt: str = "")
itops/it_ops_app/server.py:147
↓ 2 callers
Method
start
()
manage-todos-with-realtime-agent/website_files/static/Audio.js:20
↓ 2 callers
Function
state_snapshot
(state: ParallelWorkflowState)
itops/orchestration/test_e2e_workflow.py:105
↓ 2 callers
Method
subscribe
(self, cb)
beta/mystery-dinner/app/memory.py:55
↓ 2 callers
Function
titleCase
(s)
beta/mystery-dinner/app/static/mystery_dinner.js:425
↓ 2 callers
Function
toInvestigation
(t, openedMs)
itops/frontend/src/live/mappers.js:61
↓ 2 callers
Method
unsubscribe
(self, cb)
beta/mystery-dinner/app/memory.py:58
↓ 1 callers
Function
_ambient_logs_loop
While the sim is live, emit one random healthy log line ~every 1.5s.
itops/it_ops_app/server.py:326
↓ 1 callers
Function
_broadcast_loop
Single delivery point. On each wake, send every client the slice of the event log past its cursor — so a fresh connect (cursor 0 → full backlog) a
itops/it_ops_app/server.py:290
next →
1–100 of 534, ranked by callers