MCPcopy Create free account

hub / github.com/anthropics/claude-cookbooks / functions

Functions640 in github.com/anthropics/claude-cookbooks

↓ 1 callersFunctionmain
()
scripts/test_notebooks.py:112
↓ 1 callersFunctionmain
Main entry point.
scripts/validate_all_notebooks.py:774
↓ 1 callersFunctionmain
()
capabilities/knowledge_graph/evaluation/eval_extraction.py:90
↓ 1 callersFunctionmain
Example usage demonstrating brand validation
skills/custom_skills/applying-brand-guidelines/validate_brand.py:273
↓ 1 callersFunctionmain
* One-time provisioning. Creates, in order: * * environment a cloud sandbox that can reach exactly two hosts * reviewer a second agent:
managed_agents/roadtrip_planner/setup/create.ts:29
↓ 1 callersFunctionmain
()
managed_agents/roadtrip_planner/setup/teardown.ts:24
↓ 1 callersFunctionmain
()
managed_agents/self_hosted_sandboxes/modal/sandbox_runner.py:50
↓ 1 callersFunctionmean
(xs)
managed_agents/example_data/iterate/calc.py:9
↓ 1 callersFunctionmergeLog
Append log events the array does not have yet. The log's order wins.
managed_agents/roadtrip_planner/src/lib/use-managed-agent-session.ts:33
↓ 1 callersFunctionnewTransport
()
managed_agents/cma-mcp/src/server-http.ts:17
↓ 1 callersFunctionnltk_bleu_eval
Calculate BLEU score using NLTK and evaluate against a threshold. Args: output (str): The output to evaluate. ground_truth (str): Th
capabilities/summarization/evaluation/custom_evals/bleu_eval.py:12
↓ 1 callersMethodone_way_sensitivity
Perform one-way sensitivity analysis. Args: variable_name: Name of variable to test base_value: Base case va
skills/custom_skills/creating-financial-models/sensitivity_analysis.py:27
↓ 1 callersFunctionpagerduty_create_incident
Create a PagerDuty incident.
claude_agent_sdk/site_reliability_agent/sre_mcp_server.py:1574
↓ 1 callersFunctionpagerduty_get_incident
Get PagerDuty incident details.
claude_agent_sdk/site_reliability_agent/sre_mcp_server.py:1734
↓ 1 callersFunctionpagerduty_list_incidents
List PagerDuty incidents.
claude_agent_sdk/site_reliability_agent/sre_mcp_server.py:1788
↓ 1 callersFunctionpagerduty_update_incident
Update a PagerDuty incident status.
claude_agent_sdk/site_reliability_agent/sre_mcp_server.py:1661
↓ 1 callersFunctionparse_alpha
claude_agent_sdk/vulnerability_detection_agent/canary/canary.c:7
↓ 1 callersFunctionparse_bravo
claude_agent_sdk/vulnerability_detection_agent/canary/canary.c:14
↓ 1 callersFunctionparse_charlie
claude_agent_sdk/vulnerability_detection_agent/canary/canary.c:21
↓ 1 callersFunctionparse_content_block
Parse a single content block from a message.
tool_use/utils/visualize.py:41
↓ 1 callersFunctionpostTerminationError
(claudeSessionId: string)
managed_agents/linear/src/cma-webhook.ts:80
↓ 1 callersFunctionprf
(predicted: set, gold: set)
capabilities/knowledge_graph/evaluation/eval_extraction.py:82
↓ 1 callersFunctionprocessWorkItem
Ack and create a sandbox for one work item. * Raises on ack failure or Vercel API errors — the caller treats any raise * as "skip this item and keep
managed_agents/self_hosted_sandboxes/vercel/api/webhook.ts:150
↓ 1 callersMethodprocess_batch
Process multiple files concurrently. MULTIPLE BUGS: 1. self.processed_count is incremented without locking 2. self.r
tool_use/memory_demo/sample_code/data_processor_v1.py:41
↓ 1 callersFunctionprocess_investigation
Process the investigation in the background, streaming output to Slack. Args: incident_text: The incident description or follow-up reques
claude_agent_sdk/site_reliability_agent/examples/sre_bot_slack.py:401
↓ 1 callersFunctionprocess_ticket
Process a ticket: assign priority and team
tool_use/utils/customer_service_api.py:273
↓ 1 callersFunctionquery_metrics
Query Prometheus with a PromQL expression.
claude_agent_sdk/site_reliability_agent/sre_mcp_server.py:629
↓ 1 callersFunctionrank_candidates
Rank multiple candidates
claude_agent_sdk/chief_of_staff_agent/scripts/talent_scorer.py:105
↓ 1 callersFunctionread_config_file
Read a configuration file from the project directory.
claude_agent_sdk/site_reliability_agent/sre_mcp_server.py:2214
↓ 1 callersMethodread_from_s3
Write a JSON object to an S3 bucket :param bucket_name: Name of the S3 bucket :param file_name: Name of the file to be creat
capabilities/contextual-embeddings/contextual-rag-lambda-function/s3_adapter.py:43
↓ 1 callersFunctionredact
Scrub credential shapes before mirroring an error message to the function log.
managed_agents/self_hosted_sandboxes/cf/src/index.ts:24
↓ 1 callersFunctionredact
Scrub credential shapes before mirroring sandbox output to the function log.
managed_agents/self_hosted_sandboxes/vercel/api/webhook.ts:74
↓ 1 callersFunctionredact
Scrub credential shapes before mirroring an error message to the function log.
managed_agents/self_hosted_sandboxes/cf-worker/src/index.ts:25
↓ 1 callersFunctionrelay_sse
POST the request body to the agent pod and return a raw-SSE byte stream. The upstream connection is established **before** this coroutine returns
claude_agent_sdk/hosting/kubernetes/gateway/proxy.py:26
↓ 1 callersFunctionrender_code_execution_result
Render a code_execution_tool_result content block.
tool_use/utils/visualize.py:229
↓ 1 callersFunctionrender_content_block
Render a single content block based on its type.
tool_use/utils/visualize.py:265
↓ 1 callersFunctionrender_server_tool_use
Render a server_tool_use content block.
tool_use/utils/visualize.py:164
↓ 1 callersFunctionrender_text_content
Render a text content block.
tool_use/utils/visualize.py:124
↓ 1 callersFunctionrender_tool_result
Render a tool_result content block.
tool_use/utils/visualize.py:196
↓ 1 callersFunctionrender_tool_use
Render a tool_use content block.
tool_use/utils/visualize.py:135
↓ 1 callersFunctionrequireEnv
(name: string, hint?: string)
managed_agents/roadtrip_planner/setup/env.ts:42
↓ 1 callersFunctionrequireEnv
(name: string)
managed_agents/self_hosted_sandboxes/vercel/api/webhook.ts:63
↓ 1 callersFunctionretrieve_level_two
(query)
capabilities/retrieval_augmented_generation/evaluation/prompts.py:53
↓ 1 callersFunctionreveal
(groupId: string, callId: string)
managed_agents/roadtrip_planner/src/app/page.tsx:161
↓ 1 callersFunctionrouge_eval
Evaluate summary using ROUGE scores. Args: summary (str): The summary to evaluate. ground_truth (str): The ground_truth summary.
capabilities/summarization/evaluation/custom_evals/rouge_eval.py:7
↓ 1 callersMethodrunWorkItem
* Heartbeat the lease + run the session tool runner; force-stop on exit. * `SessionToolRunner` only owns the dispatch loop, so the work-item lifecy
managed_agents/self_hosted_sandboxes/cf-worker/src/runner.ts:72
↓ 1 callersFunctionrun_conversation_turn
Run a single conversation turn, handling tool uses. Args: client: Anthropic client instance model: Model to use mess
tool_use/memory_demo/demo_helpers.py:31
↓ 1 callersMethodrun_progressive_validation
Run validation in batches with user control.
scripts/validate_all_notebooks.py:545
↓ 1 callersFunctionrun_pytest
Run pytest with the given arguments.
scripts/test_notebooks.py:98
↓ 1 callersFunctionrun_quick_validation
Run quick validation on a single notebook.
scripts/test_notebooks.py:74
↓ 1 callersFunctionrun_session_1
Session 1: Learn debugging patterns.
tool_use/memory_demo/code_review_demo.py:204
↓ 1 callersFunctionrun_session_2
Session 2: Apply learned patterns.
tool_use/memory_demo/code_review_demo.py:236
↓ 1 callersFunctionrun_session_3
Session 3: Long session with context editing.
tool_use/memory_demo/code_review_demo.py:266
↓ 1 callersFunctionrun_shell_command
Run a shell command in the project directory.
claude_agent_sdk/site_reliability_agent/sre_mcp_server.py:2321
↓ 1 callersFunctionrun_tox
Run tox with the specified environment.
scripts/test_notebooks.py:105
↓ 1 callersFunctionsaveEnvLocal
(patch: Record<string, string>)
managed_agents/roadtrip_planner/setup/env.ts:23
↓ 1 callersMethodscrape_urls
Scrape multiple URLs concurrently. BUG: self.results is accessed from multiple threads without locking! This causes race con
tool_use/memory_demo/sample_code/web_scraper_v1.py:33
↓ 1 callersMethodsearch_users
Search users by term. BUG: SQL INJECTION through LIKE clause!
tool_use/memory_demo/sample_code/sql_query_builder.py:42
↓ 1 callersFunctionsend_query
Send a query to the research agent with web search and multimodal support. Args: prompt: The query to send activity_handler:
claude_agent_sdk/research_agent/agent.py:69
↓ 1 callersMethodset_assumptions
Set projection assumptions. Args: projection_years: Number of years to project revenue_growth: Annual revenu
skills/custom_skills/creating-financial-models/dcf_model.py:56
↓ 1 callersMethodset_historical_financials
Set historical financial data. Args: revenue: Historical revenue ebitda: Historical EBITDA capex
skills/custom_skills/creating-financial-models/dcf_model.py:28
↓ 1 callersFunctionshow_diff
Show the difference between current and expected order.
scripts/validate_authors_sorted.py:53
↓ 1 callersFunctionsort_authors
Sort and write authors.yaml. Returns True if file was/would be changed.
scripts/validate_authors_sorted.py:39
↓ 1 callersFunctionstart
(fresh: boolean, model?: string)
managed_agents/roadtrip_planner/src/app/page.tsx:51
↓ 1 callersFunctionstart_webhook_server
Start the webhook server for PagerDuty events.
claude_agent_sdk/site_reliability_agent/examples/sre_bot_slack.py:642
↓ 1 callersFunctionstream_until_end_turn
Stream a session's events and print until the agent finishes its turn. `session.status_idle` is not always terminal: with `stop_reason.type ==
managed_agents/sentry/cma.py:42
↓ 1 callersFunctionstripMention
(text: string)
managed_agents/slack/src/slack-events.ts:83
↓ 1 callersFunctionsubmit
(text: string)
managed_agents/roadtrip_planner/src/app/page.tsx:124
↓ 1 callersFunctionsummarizeEvent
(e: any)
managed_agents/cma-mcp/src/cma.ts:136
↓ 1 callersFunctiontable
(rows: string[], key: string)
managed_agents/roadtrip_planner/src/components/markdown.tsx:53
↓ 1 callersFunctiontextOfBlocks
Flatten the text blocks of a Managed Agents content array.
managed_agents/roadtrip_planner/src/lib/transcript.ts:276
↓ 1 callersMethodtornado_analysis
Create tornado diagram data showing relative impact of variables. Args: variables: Dictionary of variables with base, lo
skills/custom_skills/creating-financial-models/sensitivity_analysis.py:129
↓ 1 callersFunctionupdate
()
managed_agents/roadtrip_planner/src/app/page.tsx:38
↓ 1 callersFunctionuseLingerOpen
* Which items hold themselves open: every live item, plus items whose * stream just ended and are inside the 500ms linger before the collapse * anim
managed_agents/roadtrip_planner/src/components/tool-rail.tsx:38
↓ 1 callersFunctionuseManagedAgentSession
(boot: { sessionId: string; events: ManagedAgentEvent[]; working: boolean; })
managed_agents/roadtrip_planner/src/lib/use-managed-agent-session.ts:38
↓ 1 callersFunctionuseNarrow
Below 880px the rail becomes a drawer and the header drops its wide-only items.
managed_agents/roadtrip_planner/src/app/page.tsx:34
↓ 1 callersMethodvalidate
Perform complete brand validation Returns: ValidationResult
skills/custom_skills/applying-brand-guidelines/validate_brand.py:172
↓ 1 callersMethodvalidate_brand_name
Validate brand name usage and capitalization Returns: (violations, warnings)
skills/custom_skills/applying-brand-guidelines/validate_brand.py:121
↓ 1 callersMethodvalidate_colors
Validate color usage in content (hex codes, RGB, color names) Returns: (violations, warnings)
skills/custom_skills/applying-brand-guidelines/validate_brand.py:43
↓ 1 callersMethodvalidate_fonts
Validate font usage in content Returns: (violations, warnings)
skills/custom_skills/applying-brand-guidelines/validate_brand.py:67
↓ 1 callersFunctionvalidate_no_empty_cells
Validate that there are no empty cells. Returns a list of warnings (empty cells are often intentional).
tests/notebook_tests/utils.py:150
↓ 1 callersFunctionvalidate_notebook
Validate a single notebook.
scripts/validate_notebooks.py:14
↓ 1 callersMethodvalidate_tone
Validate tone and messaging Returns: (violations, warnings)
skills/custom_skills/applying-brand-guidelines/validate_brand.py:94
↓ 1 callersFunctionvalidate_uses_env_for_api_key
Validate that API keys are loaded from environment variables. Returns a list of warnings if API key usage doesn't follow best practices.
tests/notebook_tests/utils.py:193
↓ 1 callersFunctionverify
(rawBody: string, headers: Headers)
managed_agents/slack/src/slack-events.ts:13
↓ 1 callersFunctionvisualize_conversation_html
Render the full conversation as a styled HTML timeline. Displays system init, tool calls, assistant responses, and subagent delegations
claude_agent_sdk/utils/html_renderer.py:499
↓ 1 callersFunctionwait_for_idle_status
Poll until the session's server-side status field is `idle`. The `session.status_idle` event in the SSE stream can arrive slightly before `se
managed_agents/utilities.py:29
↓ 1 callersFunctionwait_for_idle_status
Poll until the server-side status is `idle`. The `session.status_idle` stream event can arrive slightly before `sessions.retrieve` reports `s
managed_agents/sentry/cma.py:28
↓ 1 callersMethodwrite_output_to_s3
Write a JSON object to an S3 bucket :param bucket_name: Name of the S3 bucket :param file_name: Name of the file to be creat
capabilities/contextual-embeddings/contextual-rag-lambda-function/s3_adapter.py:12
↓ 1 callersFunctionwrite_postmortem
Write a post-mortem report to the postmortems/ directory.
claude_agent_sdk/site_reliability_agent/sre_mcp_server.py:2510
FunctionCaret
()
managed_agents/roadtrip_planner/src/components/tool-rail.tsx:168
FunctionChevron
()
managed_agents/roadtrip_planner/src/components/tool-rail.tsx:160
FunctionGET
(request: Request)
managed_agents/roadtrip_planner/src/app/api/stream/route.ts:22
FunctionMark
({ size = 22 }: { size?: number })
managed_agents/roadtrip_planner/src/components/mark.tsx:2
FunctionMarkdown
({ text, streaming = false }: { text: string; streaming?: boolean })
managed_agents/roadtrip_planner/src/components/markdown.tsx:91
FunctionPOST
(request: Request)
managed_agents/roadtrip_planner/src/app/api/chat/route.ts:11
FunctionPOST
(request: Request)
managed_agents/roadtrip_planner/src/app/api/session/route.ts:30
FunctionPOST
()
managed_agents/roadtrip_planner/src/app/api/interrupt/route.ts:10
FunctionPOST
(req: Request)
managed_agents/self_hosted_sandboxes/vercel/api/webhook.ts:309
FunctionPage
()
managed_agents/roadtrip_planner/src/app/page.tsx:46
← previousnext →301–400 of 640, ranked by callers