MCPcopy Create free account

hub / github.com/anthropics/cwc-workshops / functions

Functions761 in github.com/anthropics/cwc-workshops

↓ 2 callersFunctionstopClip
Stop the current clip and emit it via onClip. Resolves when finalized.
how-we-claude-code/phase-3-verify/src/verify/harness/recorder.ts:121
↓ 2 callersFunctionsummarize
(results: TaskResult[])
eval-driven-agent-development/src/eval-runner.ts:179
↓ 2 callersFunctionsummarize
(results: VerifyResult[])
how-we-claude-code/phase-3-verify/src/verify/harness/ReplayPage.tsx:695
↓ 2 callersFunctiontask
Escape the current React commit phase entirely.
how-we-claude-code/phase-3-verify/src/verify/harness/ReplayPage.tsx:721
↓ 2 callersFunctiontick
()
how-we-claude-code/phase-3-verify/src/verify/core/runner.ts:183
↓ 2 callersMethodtick
(self)
agent-battle/harness/leaderboard.py:145
↓ 2 callersFunctiontoChatMessages
(events: StreamEvent[], defaultAgent = "coordinator")
production-ready-agent/solution/lib/chat.ts:28
↓ 2 callersFunctiontoChatMessages
(events: StreamEvent[], defaultAgent = "coordinator")
production-ready-agent/starter/lib/chat.ts:28
↓ 2 callersFunctiontoEntry
(event: SessionEvent, index: number)
research-desk/src/components/DeskChat.tsx:20
↓ 2 callersMethodtoJSON
()
agent-battle/event/lib/board.mjs:99
↓ 2 callersFunctiontopics
()
agent-battle/event/lib/wiki.mjs:96
↓ 2 callersMethodturn
( self, *, task: str, turn: int, state: dict, run_ctx: RunCont
agent-battle/harness/logging_.py:136
↓ 2 callersFunctionuid
()
ship-your-first-managed-agent/data/generate_log.py:40
↓ 2 callersFunctionupload_files
Upload files via the Files API; return {mount_name: file_id}.
agent-decomposition/agents/cma.py:87
↓ 2 callersFunctionverifiersFor
(unit: VerifiableUnit<any>)
how-we-claude-code/phase-3-verify/src/verify/core/registry.ts:51
↓ 2 callersMethodwait_until_idle
Poll /state until busy is False. Raises BotError on timeout. Default matches the bot's action_timeout (600s / 10 min): pathfinding pl
agent-battle/harness/client.py:183
↓ 2 callersFunctionwalkRuns
* Recursively collect every DrawingML text run (<a:r>) under `node`. * Each run contributes its literal text (<a:t>) and optional font size * (<a:rP
eval-driven-agent-development/src/parse-pptx.ts:186
↓ 2 callersFunctionwithBusy
(fn)
agent-battle/bot/bot.js:274
↓ 2 callersFunctionwrite_html
(before: list[dict], after: list[dict] | None, path: Path)
agent-decomposition/evals/report.py:49
↓ 1 callersFunction_action_signature
(name: str, args: dict)
agent-battle/harness/agent.py:121
↓ 1 callersFunction_apply_reset
Call reset_run and verify the start_kit landed (inventory has iron_pickaxe, position is at depth). Retries the whole thing — covers the bot re
agent-battle/my_agent.py:764
↓ 1 callersFunction_attach_callable_agents
Update `agent_id` to declare `callable_agents` (Multiagent sessions). Shape per platform.claude.com/docs/en/managed-agents/multi-agent: c
agent-decomposition/agents/cma.py:340
↓ 1 callersFunction_bot_mcp_url
Resolve the URL CMA uses to reach this participant's bot. Preferred (event mode): a header-authenticated endpoint. We store the relay key as
agent-battle/my_agent.py:205
↓ 1 callersFunction_build_spec
Assemble the full CMA agent spec from the AGENT dict.
agent-battle/my_agent.py:330
↓ 1 callersFunction_catalog
Expand templates × variants, then cycle if needed to reach n items.
agent-decomposition/data/seed.py:114
↓ 1 callersMethod_clientIp
(req)
agent-battle/event/lib/relay.mjs:115
↓ 1 callersFunction_ensure_forecaster
(c: anthropic.Anthropic, ids: dict)
agent-decomposition/agents/cma.py:215
↓ 1 callersFunction_ensure_reachable
Preflight for the bot's MCP URL. Two things must be true for the cloud agent to play: (a) the bot is alive on localhost, and (b) the bot's out
agent-battle/my_agent.py:689
↓ 1 callersFunction_ensure_vault_credential
Create/refresh the static_bearer vault credential binding `token` to `mcp_server_url`. Credentials live inside a vault: find-or-create a vault
agent-battle/my_agent.py:284
↓ 1 callersFunction_ensure_worker
(c: anthropic.Anthropic, ids: dict)
agent-decomposition/agents/cma.py:275
↓ 1 callersFunction_fetch_diamond_count
GET the bot's /state and sum diamond counts in inventory. Returns None on any failure — this is pure feedback, not correctness.
agent-battle/my_agent.py:831
↓ 1 callersFunction_fetch_diamonds
Read the bot's running diamond counter for this run. Best-effort; returns 0 on any failure so cost reporting never blocks on the bot.
agent-battle/harness/leaderboard.py:71
↓ 1 callersFunction_format_action
(action: dict)
agent-battle/harness/replay.py:52
↓ 1 callersFunction_format_inv_delta
(delta: dict[str, int])
agent-battle/harness/replay.py:42
↓ 1 callersFunction_format_result
(result: dict)
agent-battle/harness/replay.py:59
↓ 1 callersFunction_handle_spawn_subagent
Create a fresh worker session for one task and return its final text.
agent-decomposition/agents/cma.py:302
↓ 1 callersFunction_inventory_delta
{item: delta_count}, only items that changed.
agent-battle/harness/agent.py:125
↓ 1 callersFunction_is_overload
(msg: str | None)
agent-decomposition/agents/cma.py:376
↓ 1 callersFunction_iter_all_skills
Yield every skill in the org, paginating explicitly. The API's default page size can claim has_more=false prematurely, so we request big pages
agent-battle/my_agent.py:135
↓ 1 callersFunction_iter_events
(path: str)
agent-battle/harness/replay.py:30
↓ 1 callersFunction_label
(prompt: str)
agent-decomposition/agents/cma.py:372
↓ 1 callersFunction_legacy_tools_note
()
agent-decomposition/agents/starter/agent.py:87
↓ 1 callersMethod_load
()
agent-battle/event/lib/board.mjs:53
↓ 1 callersFunction_log_turn
Emit a minimal `turn` event matching harness/logging_.py so harness/verify.py can consume this trace unchanged. We don't have a full GameState
agent-battle/my_agent.py:474
↓ 1 callersFunction_matches_grep
(turn: dict, grep: str)
agent-battle/harness/replay.py:65
↓ 1 callersFunction_mime
(name: str)
agent-decomposition/agents/cma.py:586
↓ 1 callersFunction_mock_stream
(ctx)
agent-battle/my_agent.py:870
↓ 1 callersMethod_onClose
(ws)
agent-battle/event/lib/relay.mjs:189
↓ 1 callersMethod_onMessage
(ws, msg)
agent-battle/event/lib/relay.mjs:136
↓ 1 callersFunction_print_spec
Show what the participant's AGENT dict became as a Managed Agent — the 'this is a real object in your account' moment.
agent-battle/my_agent.py:449
↓ 1 callersFunction_products
()
agent-decomposition/evals/graders.py:47
↓ 1 callersFunction_resolve_skills
Turn AGENT['skills'] entries into CMA skill params. A string entry is a local skill directory — upload it once, cache the skill_id, reuse ther
agent-battle/my_agent.py:152
↓ 1 callersFunction_run_session_once
(c: anthropic.Anthropic, agent_id: str, ids: dict, prompt: str, label: str, max_turns: i
agent-decomposition/agents/cma.py:418
↓ 1 callersFunction_serialize_messages_tail
The assistant content from the Anthropic SDK is a list of typed blocks (TextBlock, ToolUseBlock). Convert them to plain dicts so JSON can enco
agent-battle/harness/logging_.py:35
↓ 1 callersFunction_short
(args)
agent-battle/harness/probes.py:468
↓ 1 callersFunction_sink_dir
()
agent-decomposition/agents/sandbox_tools.py:52
↓ 1 callersFunction_strip_reasoning
The `reasoning` field is for logs only; bot.js doesn't accept it.
agent-battle/harness/agent.py:107
↓ 1 callersFunction_sync_sinks
Pull sink JSONLs from the session sandbox into local data/.runs/<run_id>/. The CMA beta has no file-download endpoint for agent-written outputs,
agent-decomposition/agents/cma.py:529
↓ 1 callersMethod_thinking_line
( self, task: str, turn: int, action: dict, result: dict, inve
agent-battle/harness/logging_.py:170
↓ 1 callersMethod_upgradeAllowed
(req)
agent-battle/event/lib/relay.mjs:124
↓ 1 callersFunction_write_credential
Create/update a static_bearer credential, tolerating both live API schemas: some deployments take mcp_server_url INSIDE auth (the SDK's typed
agent-battle/my_agent.py:257
↓ 1 callersFunction_zip_dir
(d: Path)
agent-decomposition/agents/cma.py:576
↓ 1 callersFunctionaccessibleName
(el: HTMLElement)
how-we-claude-code/phase-3-verify/src/verify/verifiers/a11y.ts:90
↓ 1 callersFunctionadvance
()
how-we-claude-code/phase-3-verify/src/verify/harness/ReplayPage.tsx:225
↓ 1 callersFunctionago
(iso?: string)
production-ready-agent/solution/components/SessionRail.tsx:10
↓ 1 callersFunctionago
(iso?: string)
production-ready-agent/starter/components/SessionRail.tsx:10
↓ 1 callersFunctionanalyze
()
research-desk/src/components/ScorecardsPanel.tsx:53
↓ 1 callersFunctionanalyzeMany
( client: Anthropic, cfg: DeskConfig, tickers: string[], options: { focus?: string; concurrenc
research-desk/solutions/src/lib/analysis.ts:140
↓ 1 callersFunctionanalyzeMany
( client: Anthropic, cfg: DeskConfig, tickers: string[], options: { focus?: string; concurrenc
research-desk/src/lib/analysis.ts:149
↓ 1 callersFunctionanalyzeSlide
(index: number, doc: unknown)
eval-driven-agent-development/src/parse-pptx.ts:124
↓ 1 callersFunctionanalyzeTicker
( client: Anthropic, cfg: DeskConfig, ticker: string, focus = "", record: AnalysisRecord = newRecord
research-desk/solutions/src/lib/analysis.ts:61
↓ 1 callersFunctionanalyzeTicker
( client: Anthropic, cfg: DeskConfig, ticker: string, focus = "", record: AnalysisRecord = newRecord
research-desk/src/lib/analysis.ts:66
↓ 1 callersMethodattach
(httpServer, path = '/relay/ws')
agent-battle/event/lib/relay.mjs:61
↓ 1 callersFunctionauth_red_herring
Unrelated auth ERRORs around 14:15 that self-resolve — a red herring.
ship-your-first-managed-agent/data/generate_log.py:108
↓ 1 callersFunctionbackground_noise
Healthchecks, GC pauses, cache misses — realistic chatter.
ship-your-first-managed-agent/data/generate_log.py:122
↓ 1 callersFunctionbearerKey
(req)
agent-battle/event/server.mjs:386
↓ 1 callersFunctionbot_up
()
agent-battle/my_agent.py:708
↓ 1 callersFunctionbuildContext
* Prepare everything the graders need for one task — pure data, no scoring. * The harness has no idea what the individual graders measure; it just ha
eval-driven-agent-development/src/eval-runner.ts:39
↓ 1 callersFunctionbuildDisabledMcp
()
agent-battle/event/server.mjs:417
↓ 1 callersFunctionbuild_system_prompt
Return the active system prompt. With narrate=True, append a demo-mode instruction telling Claude to chat() a one-line plan before each action.
agent-battle/harness/prompts.py:67
↓ 1 callersFunctioncheck
()
production-ready-agent/solution/components/ai/message.tsx:76
↓ 1 callersFunctioncheck
()
production-ready-agent/starter/components/ai/message.tsx:76
↓ 1 callersFunctionclipFor
(r: VerifyResult)
how-we-claude-code/phase-3-verify/src/verify/harness/ReplayPage.tsx:625
↓ 1 callersMethodcloseSession
()
agent-battle/event/lib/board.mjs:161
↓ 1 callersFunctioncollectShapes
* Flatten each text shape (<p:sp>) on the slide to {placeholder type, full * text, largest font size} — the three signals the title heuristic needs.
eval-driven-agent-development/src/parse-pptx.ts:234
↓ 1 callersFunctioncollect_actions
(run_id: str)
agent-decomposition/agents/common.py:90
↓ 1 callersFunctioncompileDispatchResult
(records: AnalysisRecord[])
research-desk/solutions/src/lib/analysis.ts:170
↓ 1 callersFunctionconnect
()
agent-battle/bot/relay-client.cjs:44
↓ 1 callersFunctionconsumeStream
( path: string, onEvent: (event: SessionEvent) => void, signal: AbortSignal, )
research-desk/src/lib/client-types.ts:70
↓ 1 callersFunctioncreateBot
()
agent-battle/bot/bot.js:73
↓ 1 callersFunctioncreateClipRecorder
(opts: { onState: (s: RecorderState, err?: string) => void; onClip: (clip: Clip) => void; })
how-we-claude-code/phase-3-verify/src/verify/harness/recorder.ts:41
↓ 1 callersFunctioncreateMemo
()
research-desk/src/components/DeploymentsPanel.tsx:50
↓ 1 callersFunctioncreateMemoDeployment
(cron = "0 13 * * 1")
research-desk/src/lib/preview.ts:62
↓ 1 callersFunctiondefineOutcome
( client: Anthropic, sessionId: string, description: string, rubric: string, maxIterations = 2, )
research-desk/solutions/src/lib/sessions.ts:59
↓ 1 callersFunctiondefineOutcome
( client: Anthropic, sessionId: string, description: string, rubric: string, maxIterations = 2, )
research-desk/src/lib/sessions.ts:59
↓ 1 callersFunctiondeploy
Upload everything and create/update the `slot` agent. Prints summary.
agent-decomposition/agents/cma.py:176
↓ 1 callersFunctiondisarm
Stop everything and release the capture.
how-we-claude-code/phase-3-verify/src/verify/harness/recorder.ts:150
↓ 1 callersFunctiondispatchMcpTool
(name, args)
agent-battle/bot/bot.js:1048
↓ 1 callersFunctiondisplay
* Format one cell using the grader's own formatter (e.g. "100%", "4.2/5"), * appending a signed delta vs the previous run when both values are numeri
eval-driven-agent-development/src/eval-runner.ts:166
↓ 1 callersFunctiondownloadAll
(clips: Clip[])
how-we-claude-code/phase-3-verify/src/verify/harness/recorder.ts:203
← previousnext →201–300 of 761, ranked by callers