MCPcopy Create free account

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

Functions640 in github.com/anthropics/claude-cookbooks

Functionhealth
Liveness/readiness probe. Unauthenticated so kubelet can call it.
claude_agent_sdk/hosting/kubernetes/gateway/main.py:162
Functioninitialize_ticket_queue
Initialize the ticket queue with generated tickets
tool_use/utils/customer_service_tools.py:27
Functionlambda_handler
(event, context)
capabilities/contextual-embeddings/contextual-rag-lambda-function/lambda_function.py:27
Functionlifespan
Startup: warm the standby pool and start the idle reaper. Shutdown: stop the reaper and close Redis.
claude_agent_sdk/hosting/kubernetes/gateway/main.py:100
FunctionlistAgents
(opts: { limit?: number; name_contains?: string } = {})
managed_agents/cma-mcp/src/cma.ts:12
FunctionlistEvents
(session_id: string, after_id?: string)
managed_agents/cma-mcp/src/cma.ts:69
Functionlist_custom_skills
List all custom skills in the workspace. Args: client: Anthropic client instance with Skills beta Returns: List of skil
skills/skill_utils.py:78
Functionlist_skill_versions
List all versions of a skill. Args: client: Anthropic client instance skill_id: ID of the skill Returns: List o
skills/skill_utils.py:260
Functionllm_call
Calls the model with the given prompt and returns the response. Args: prompt (str): The user prompt to send to the model. sy
patterns/agents/util.py:9
Methodload_data
(self, data)
capabilities/retrieval_augmented_generation/evaluation/vectordb.py:103
Methodload_data
(self, data)
capabilities/classification/evaluation/vectordb.py:19
Functionload_guidelines_from_json
Load brand guidelines from JSON file Args: filepath: Path to JSON file containing brand guidelines Returns: BrandGuidel
skills/custom_skills/applying-brand-guidelines/validate_brand.py:210
Functionmain
claude_agent_sdk/vulnerability_detection_agent/canary/canary.c:30
Functionmake_unfamiliar_repo_zip
Build an in-memory ZIP of a small repository with a stale doc. The repo is about 37 files laid out as microservices under `services/`, but `A
managed_agents/utilities.py:82
Functionmark_complete
Mark ticket as processed and ready for team review. Args: ticket_id: The ticket ID Returns: Confirmation and summary of
tool_use/utils/customer_service_tools.py:294
Methodmerge_configs
Merge configuration with overrides. BUG: The default dict is shared across all calls!
tool_use/memory_demo/sample_code/cache_manager.py:41
Methodmerge_configs_fixed
Merge configs properly.
tool_use/memory_demo/sample_code/cache_manager.py:59
Functionnotebook_cells
Fixture providing parsed notebook cells.
tests/conftest.py:140
Functionnotebook_data
Fixture providing loaded notebook data.
tests/conftest.py:134
Functionnotebook_timeout
Fixture providing the notebook execution timeout.
tests/conftest.py:158
FunctiononBodyScroll
()
managed_agents/roadtrip_planner/src/components/tool-rail.tsx:210
MethodonStop
()
managed_agents/self_hosted_sandboxes/cf/src/container.ts:73
FunctiononThreadScroll
()
managed_agents/roadtrip_planner/src/app/page.tsx:144
Methodparse_s3_path
(self, s3_path)
capabilities/contextual-embeddings/contextual-rag-lambda-function/s3_adapter.py:61
Functionperform_comprehensive_analysis
Perform comprehensive ratio analysis with interpretations. Args: ratios: Calculated financial ratios industry: Industry sect
skills/custom_skills/analyzing-financial-statements/interpret_ratios.py:261
Functionpool_status
Standby pool size — useful for monitoring.
claude_agent_sdk/hosting/kubernetes/gateway/main.py:303
Functionpost_message
(session_id: str, body: MessageIn)
claude_agent_sdk/hosting/server.py:124
Functionpost_message
Forward a turn to the session's agent pod and stream SSE back. Same path and shape as ``hosting/server.py`` (Tier 1/2), so client code writte
claude_agent_sdk/hosting/kubernetes/gateway/main.py:243
Functionprint_activity
Print activity with enhanced subagent visibility. Shows: - Main agent tool usage with 🤖 - Subagent invocations with 🚀 and subagent n
claude_agent_sdk/utils/agent_visualizer.py:119
Functionprint_activity
Print activity to console
claude_agent_sdk/chief_of_staff_agent/agent.py:34
Functionprint_context_management_info
Print context management information from response. Args: response: API response to analyze Returns: Tuple of (context_
tool_use/memory_demo/demo_helpers.py:183
Functionprint_download_summary
Print a formatted summary of file download results. Args: results: List of download results from download_all_files() Example:
skills/file_utils.py:250
Functionprint_final_result
Print the final agent result and cost information. Args: messages: List of conversation messages model: Optional model ident
claude_agent_sdk/utils/agent_visualizer.py:229
Functionprint_skill_summary
Print a formatted summary of a skill. Args: skill_info: Dictionary with skill information
skills/skill_utils.py:384
Methodprocess_batch
Process data with optional filters. BUG: filters list is shared across calls!
tool_use/memory_demo/sample_code/cache_manager.py:76
Methodprocess_file
Process a single file.
tool_use/memory_demo/sample_code/data_processor_v1.py:23
Functionproject_root
Fixture providing the project root directory.
tests/conftest.py:128
Functionpytest_addoption
Add custom command-line options for notebook testing.
tests/conftest.py:20
Functionpytest_configure
Reset failure tracking at start of test run.
tests/notebook_tests/conftest.py:116
Functionpytest_generate_tests
Generate parameterized tests for notebooks.
tests/conftest.py:116
Functionpytest_runtest_makereport
Collect failures grouped by notebook.
tests/notebook_tests/conftest.py:49
Functionpytest_terminal_summary
Print a summary of failures grouped by notebook.
tests/notebook_tests/conftest.py:62
Functionrag_chain_of_thought_classify
(context: dict)
capabilities/classification/evaluation/prompts.py:124
Functionrag_classify
(context: dict)
capabilities/classification/evaluation/prompts.py:83
Functionregistry
Fixture providing the notebook registry.
tests/conftest.py:170
Functionrender_content
Detect content type and render to HTML. This is the main content routing function that dispatches to the appropriate renderer based on c
claude_agent_sdk/utils/html_renderer.py:315
Methodreset
Reset processor state. BUG: No locking - if called during processing, causes corruption.
tool_use/memory_demo/sample_code/data_processor_v1.py:88
Functionresync
()
managed_agents/roadtrip_planner/src/lib/use-managed-agent-session.ts:143
Functionretrieve_base
(query, options, context)
capabilities/retrieval_augmented_generation/evaluation/provider_retrieval.py:15
Functionretrieve_level_three
(query, options, context)
capabilities/retrieval_augmented_generation/evaluation/provider_retrieval.py:124
Functionretrieve_level_two
(query, options, context)
capabilities/retrieval_augmented_generation/evaluation/provider_retrieval.py:34
Functionroute_to_team
Route a ticket to the appropriate support team. Args: ticket_id: The ticket ID team: Team name (billing-team, tech-support,
tool_use/utils/customer_service_tools.py:196
Functionrun_conversation_loop
Run a complete conversation loop until Claude stops using tools. Args: client: Anthropic client instance model: Model to use
tool_use/memory_demo/demo_helpers.py:122
Methodscenario_analysis
Analyze multiple scenarios with different variable combinations. Args: scenarios: Dictionary of scenarios with variable
skills/custom_skills/creating-financial-models/sensitivity_analysis.py:185
Methodsearch
(self, query, k=5, similarity_threshold=0.75)
capabilities/retrieval_augmented_generation/evaluation/vectordb.py:128
Functionsearch_knowledge_base
Search the knowledge base for relevant information. Args: category: The category to search (billing, technical, account) que
tool_use/utils/customer_service_tools.py:114
FunctionsendMessage
(session_id: string, text: string)
managed_agents/cma-mcp/src/cma.ts:42
Functionsend_query
Send a query to the Chief of Staff agent with all features integrated. Args: prompt: The query to send (can include slash commands l
claude_agent_sdk/chief_of_staff_agent/agent.py:41
Functionsend_query
Send a query to the observability agent with MCP server support. Args: prompt: The query to send activity_handler: Callback
claude_agent_sdk/observability_agent/agent.py:67
Methodsensitivity_analysis
Perform two-way sensitivity analysis on valuation. Args: variable1: First variable to test ('wacc', 'growth', 'margin')
skills/custom_skills/creating-financial-models/dcf_model.py:356
MethodsetUp
Create temporary directory for each test.
tool_use/tests/test_memory_tool.py:18
Functionset_priority
Set the priority level for a ticket. Args: ticket_id: The ticket ID priority: Priority level Returns: Confirmat
tool_use/utils/customer_service_tools.py:166
Methodshow_all
Show all captured responses.
tool_use/utils/visualize.py:358
Functionshow_response
Simple helper to visualize a single response. Args: response: Claude API response (Message object or dict)
tool_use/utils/visualize.py:365
Functionsimple_classify
(context: dict)
capabilities/classification/evaluation/prompts.py:61
Functionstart
(controller)
managed_agents/roadtrip_planner/src/app/api/stream/route.ts:43
Methodstart_new_session
Start a new conversation session (memory persists).
tool_use/memory_demo/code_review_demo.py:199
Functionstream_until_end_turn
Stream a session's events and print until the agent finishes its turn. This is the streaming pattern from notebook 00, lifted into a helper s
managed_agents/utilities.py:47
Functionsummarize_long_document
(text)
capabilities/summarization/evaluation/prompts.py:38
Functionsummarize_response
One-line-per-block summary of a Messages API response, for transcript display.
evals/agentic_search/utils/agentic_search.py:224
MethodtearDown
Clean up temporary directory after each test.
tool_use/tests/test_memory_tool.py:23
Functiontest_add
()
managed_agents/example_data/iterate/test_calc.py:5
Methodtest_all_cells_executed
Test that all code cells have been executed.
tests/notebook_tests/test_notebooks.py:84
Methodtest_api_key_from_environment
Test that API keys are loaded from environment variables.
tests/notebook_tests/test_notebooks.py:147
Functiontest_author_url_unicode
()
managed_agents/example_data/orchestrate/tests/test_urls.py:25
Methodtest_cells_executed_in_order
Test that cells were executed in sequential order.
tests/notebook_tests/test_notebooks.py:93
Methodtest_clear_all_memory
Test clearing all memory.
tool_use/tests/test_memory_tool.py:372
Methodtest_create_file
Test creating a file.
tool_use/tests/test_memory_tool.py:102
Methodtest_create_file_in_subdirectory
Test creating a file in a subdirectory (auto-creates dirs).
tool_use/tests/test_memory_tool.py:114
Methodtest_create_overwrites_existing_file
Test that create overwrites existing files.
tool_use/tests/test_memory_tool.py:132
Methodtest_create_requires_file_extension
Test that create only allows text file extensions.
tool_use/tests/test_memory_tool.py:126
Methodtest_delete_cannot_delete_root
Test that root /memories directory cannot be deleted.
tool_use/tests/test_memory_tool.py:292
Methodtest_delete_directory
Test deleting a directory.
tool_use/tests/test_memory_tool.py:280
Methodtest_delete_file
Test deleting a file.
tool_use/tests/test_memory_tool.py:270
Methodtest_delete_nonexistent_path
Test deleting a nonexistent path.
tool_use/tests/test_memory_tool.py:298
Methodtest_dependencies_documented
Test that dependencies are documented (pip install or markdown mention).
tests/notebook_tests/test_notebooks.py:195
Functiontest_divide
()
managed_agents/example_data/iterate/test_calc.py:9
Methodtest_execution_counts_start_from_one
Test that execution counts start from 1 (fresh kernel).
tests/notebook_tests/test_notebooks.py:100
Methodtest_has_cells
Test that the notebook has at least one cell.
tests/notebook_tests/test_notebooks.py:45
Methodtest_has_code_cells
Test that the notebook has at least one code cell.
tests/notebook_tests/test_notebooks.py:50
Methodtest_has_kernel_spec
Test that the notebook has kernel specification.
tests/notebook_tests/test_notebooks.py:65
Methodtest_has_title
Test that the notebook starts with a title (markdown heading).
tests/notebook_tests/test_notebooks.py:247
Methodtest_insert_at_beginning
Test inserting at line 0 (beginning).
tool_use/tests/test_memory_tool.py:207
Methodtest_insert_at_end
Test inserting at the end.
tool_use/tests/test_memory_tool.py:241
Methodtest_insert_in_middle
Test inserting in the middle.
tool_use/tests/test_memory_tool.py:224
Methodtest_insert_invalid_line
Test insert with invalid line number.
tool_use/tests/test_memory_tool.py:255
Functiontest_mean
()
managed_agents/example_data/iterate/test_calc.py:15
Methodtest_missing_required_parameters
Test error handling for missing parameters.
tool_use/tests/test_memory_tool.py:365
Methodtest_nbformat_version
Test that notebook uses a supported nbformat version.
tests/notebook_tests/test_notebooks.py:261
Methodtest_no_deprecated_models
Test that no deprecated Claude models are used.
tests/notebook_tests/test_notebooks.py:280
← previousnext →501–600 of 640, ranked by callers