Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/claude-cookbooks
/ functions
Functions
640 in github.com/anthropics/claude-cookbooks
⨍
Functions
640
◇
Types & classes
67
↳
Endpoints
7
Function
health
Liveness/readiness probe. Unauthenticated so kubelet can call it.
claude_agent_sdk/hosting/kubernetes/gateway/main.py:162
Function
initialize_ticket_queue
Initialize the ticket queue with generated tickets
tool_use/utils/customer_service_tools.py:27
Function
lambda_handler
(event, context)
capabilities/contextual-embeddings/contextual-rag-lambda-function/lambda_function.py:27
Function
lifespan
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
Function
listAgents
(opts: { limit?: number; name_contains?: string } = {})
managed_agents/cma-mcp/src/cma.ts:12
Function
listEvents
(session_id: string, after_id?: string)
managed_agents/cma-mcp/src/cma.ts:69
Function
list_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
Function
list_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
Function
llm_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
Method
load_data
(self, data)
capabilities/retrieval_augmented_generation/evaluation/vectordb.py:103
Method
load_data
(self, data)
capabilities/classification/evaluation/vectordb.py:19
Function
load_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
Function
main
claude_agent_sdk/vulnerability_detection_agent/canary/canary.c:30
Function
make_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
Function
mark_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
Method
merge_configs
Merge configuration with overrides. BUG: The default dict is shared across all calls!
tool_use/memory_demo/sample_code/cache_manager.py:41
Method
merge_configs_fixed
Merge configs properly.
tool_use/memory_demo/sample_code/cache_manager.py:59
Function
notebook_cells
Fixture providing parsed notebook cells.
tests/conftest.py:140
Function
notebook_data
Fixture providing loaded notebook data.
tests/conftest.py:134
Function
notebook_timeout
Fixture providing the notebook execution timeout.
tests/conftest.py:158
Function
onBodyScroll
()
managed_agents/roadtrip_planner/src/components/tool-rail.tsx:210
Method
onStop
()
managed_agents/self_hosted_sandboxes/cf/src/container.ts:73
Function
onThreadScroll
()
managed_agents/roadtrip_planner/src/app/page.tsx:144
Method
parse_s3_path
(self, s3_path)
capabilities/contextual-embeddings/contextual-rag-lambda-function/s3_adapter.py:61
Function
perform_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
Function
pool_status
Standby pool size — useful for monitoring.
claude_agent_sdk/hosting/kubernetes/gateway/main.py:303
Function
post_message
(session_id: str, body: MessageIn)
claude_agent_sdk/hosting/server.py:124
Function
post_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
Function
print_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
Function
print_activity
Print activity to console
claude_agent_sdk/chief_of_staff_agent/agent.py:34
Function
print_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
Function
print_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
Function
print_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
Function
print_skill_summary
Print a formatted summary of a skill. Args: skill_info: Dictionary with skill information
skills/skill_utils.py:384
Method
process_batch
Process data with optional filters. BUG: filters list is shared across calls!
tool_use/memory_demo/sample_code/cache_manager.py:76
Method
process_file
Process a single file.
tool_use/memory_demo/sample_code/data_processor_v1.py:23
Function
project_root
Fixture providing the project root directory.
tests/conftest.py:128
Function
pytest_addoption
Add custom command-line options for notebook testing.
tests/conftest.py:20
Function
pytest_configure
Reset failure tracking at start of test run.
tests/notebook_tests/conftest.py:116
Function
pytest_generate_tests
Generate parameterized tests for notebooks.
tests/conftest.py:116
Function
pytest_runtest_makereport
Collect failures grouped by notebook.
tests/notebook_tests/conftest.py:49
Function
pytest_terminal_summary
Print a summary of failures grouped by notebook.
tests/notebook_tests/conftest.py:62
Function
rag_chain_of_thought_classify
(context: dict)
capabilities/classification/evaluation/prompts.py:124
Function
rag_classify
(context: dict)
capabilities/classification/evaluation/prompts.py:83
Function
registry
Fixture providing the notebook registry.
tests/conftest.py:170
Function
render_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
Method
reset
Reset processor state. BUG: No locking - if called during processing, causes corruption.
tool_use/memory_demo/sample_code/data_processor_v1.py:88
Function
resync
()
managed_agents/roadtrip_planner/src/lib/use-managed-agent-session.ts:143
Function
retrieve_base
(query, options, context)
capabilities/retrieval_augmented_generation/evaluation/provider_retrieval.py:15
Function
retrieve_level_three
(query, options, context)
capabilities/retrieval_augmented_generation/evaluation/provider_retrieval.py:124
Function
retrieve_level_two
(query, options, context)
capabilities/retrieval_augmented_generation/evaluation/provider_retrieval.py:34
Function
route_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
Function
run_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
Method
scenario_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
Method
search
(self, query, k=5, similarity_threshold=0.75)
capabilities/retrieval_augmented_generation/evaluation/vectordb.py:128
Function
search_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
Function
sendMessage
(session_id: string, text: string)
managed_agents/cma-mcp/src/cma.ts:42
Function
send_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
Function
send_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
Method
sensitivity_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
Method
setUp
Create temporary directory for each test.
tool_use/tests/test_memory_tool.py:18
Function
set_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
Method
show_all
Show all captured responses.
tool_use/utils/visualize.py:358
Function
show_response
Simple helper to visualize a single response. Args: response: Claude API response (Message object or dict)
tool_use/utils/visualize.py:365
Function
simple_classify
(context: dict)
capabilities/classification/evaluation/prompts.py:61
Function
start
(controller)
managed_agents/roadtrip_planner/src/app/api/stream/route.ts:43
Method
start_new_session
Start a new conversation session (memory persists).
tool_use/memory_demo/code_review_demo.py:199
Function
stream_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
Function
summarize_long_document
(text)
capabilities/summarization/evaluation/prompts.py:38
Function
summarize_response
One-line-per-block summary of a Messages API response, for transcript display.
evals/agentic_search/utils/agentic_search.py:224
Method
tearDown
Clean up temporary directory after each test.
tool_use/tests/test_memory_tool.py:23
Function
test_add
()
managed_agents/example_data/iterate/test_calc.py:5
Method
test_all_cells_executed
Test that all code cells have been executed.
tests/notebook_tests/test_notebooks.py:84
Method
test_api_key_from_environment
Test that API keys are loaded from environment variables.
tests/notebook_tests/test_notebooks.py:147
Function
test_author_url_unicode
()
managed_agents/example_data/orchestrate/tests/test_urls.py:25
Method
test_cells_executed_in_order
Test that cells were executed in sequential order.
tests/notebook_tests/test_notebooks.py:93
Method
test_clear_all_memory
Test clearing all memory.
tool_use/tests/test_memory_tool.py:372
Method
test_create_file
Test creating a file.
tool_use/tests/test_memory_tool.py:102
Method
test_create_file_in_subdirectory
Test creating a file in a subdirectory (auto-creates dirs).
tool_use/tests/test_memory_tool.py:114
Method
test_create_overwrites_existing_file
Test that create overwrites existing files.
tool_use/tests/test_memory_tool.py:132
Method
test_create_requires_file_extension
Test that create only allows text file extensions.
tool_use/tests/test_memory_tool.py:126
Method
test_delete_cannot_delete_root
Test that root /memories directory cannot be deleted.
tool_use/tests/test_memory_tool.py:292
Method
test_delete_directory
Test deleting a directory.
tool_use/tests/test_memory_tool.py:280
Method
test_delete_file
Test deleting a file.
tool_use/tests/test_memory_tool.py:270
Method
test_delete_nonexistent_path
Test deleting a nonexistent path.
tool_use/tests/test_memory_tool.py:298
Method
test_dependencies_documented
Test that dependencies are documented (pip install or markdown mention).
tests/notebook_tests/test_notebooks.py:195
Function
test_divide
()
managed_agents/example_data/iterate/test_calc.py:9
Method
test_execution_counts_start_from_one
Test that execution counts start from 1 (fresh kernel).
tests/notebook_tests/test_notebooks.py:100
Method
test_has_cells
Test that the notebook has at least one cell.
tests/notebook_tests/test_notebooks.py:45
Method
test_has_code_cells
Test that the notebook has at least one code cell.
tests/notebook_tests/test_notebooks.py:50
Method
test_has_kernel_spec
Test that the notebook has kernel specification.
tests/notebook_tests/test_notebooks.py:65
Method
test_has_title
Test that the notebook starts with a title (markdown heading).
tests/notebook_tests/test_notebooks.py:247
Method
test_insert_at_beginning
Test inserting at line 0 (beginning).
tool_use/tests/test_memory_tool.py:207
Method
test_insert_at_end
Test inserting at the end.
tool_use/tests/test_memory_tool.py:241
Method
test_insert_in_middle
Test inserting in the middle.
tool_use/tests/test_memory_tool.py:224
Method
test_insert_invalid_line
Test insert with invalid line number.
tool_use/tests/test_memory_tool.py:255
Function
test_mean
()
managed_agents/example_data/iterate/test_calc.py:15
Method
test_missing_required_parameters
Test error handling for missing parameters.
tool_use/tests/test_memory_tool.py:365
Method
test_nbformat_version
Test that notebook uses a supported nbformat version.
tests/notebook_tests/test_notebooks.py:261
Method
test_no_deprecated_models
Test that no deprecated Claude models are used.
tests/notebook_tests/test_notebooks.py:280
← previous
next →
501–600 of 640, ranked by callers