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
RootLayout
({ children }: { children: React.ReactNode })
managed_agents/roadtrip_planner/src/app/layout.tsx:10
Function
ToolRail
({ className, groups, openGroups, openCalls, onToggleGroup, onToggleCall, stats, }: { classNam
managed_agents/roadtrip_planner/src/components/tool-rail.tsx:176
Function
Trip
({ boot, onNewTrip }: { boot: Boot; onNewTrip: (model?: string) => void })
managed_agents/roadtrip_planner/src/app/page.tsx:107
Function
TurnView
({ turn, onChipClick }: { turn: Turn; onChipClick: (callId: string) => void })
managed_agents/roadtrip_planner/src/app/page.tsx:343
Method
__init__
Initialize the memory tool handler. Args: base_path: Root directory for all memory operations
tool_use/memory_tool.py:26
Method
__init__
Initialize the code review assistant. Args: memory_storage_path: Path for memory storage
tool_use/memory_demo/code_review_demo.py:63
Method
__init__
(self)
tool_use/memory_demo/sample_code/cache_manager.py:13
Method
__init__
(self, max_workers: int = 10)
tool_use/memory_demo/sample_code/web_scraper_v1.py:15
Method
__init__
(self, db: UserDatabase)
tool_use/memory_demo/sample_code/sql_query_builder.py:19
Method
__init__
(self, base_url: str)
tool_use/memory_demo/sample_code/api_client_v1.py:15
Method
__init__
(self, max_workers: int = 5)
tool_use/memory_demo/sample_code/data_processor_v1.py:16
Method
__init__
(self)
tool_use/memory_demo/sample_code/data_processor_v1.py:106
Method
__init__
(self, content_type: str, data: dict[str, Any])
tool_use/utils/visualize.py:18
Method
__init__
( self, role: str, content: list[ParsedContent], model: str | None = None,
tool_use/utils/visualize.py:26
Method
__init__
Initialize the visualizer. Args: auto_show: Whether to automatically show visualization (default: True)
tool_use/utils/visualize.py:334
Method
__init__
(self, data: Any)
claude_agent_sdk/utils/html_renderer.py:41
Method
__init__
(self)
scripts/validate_all_notebooks.py:25
Method
__init__
(self)
capabilities/contextual-embeddings/contextual-rag-lambda-function/s3_adapter.py:8
Method
__init__
(self)
capabilities/contextual-embeddings/contextual-rag-lambda-function/inference_adapter.py:8
Method
__init__
(self, db_path="../data/vector_db.pkl")
capabilities/text_to_sql/evaluation/vectordb.py:10
Method
__init__
(self, name, api_key=None)
capabilities/retrieval_augmented_generation/evaluation/vectordb.py:10
Method
__init__
(self, name, api_key=None)
capabilities/retrieval_augmented_generation/evaluation/vectordb.py:93
Method
__init__
(self, api_key=None)
capabilities/classification/evaluation/vectordb.py:10
Method
__init__
(self, guidelines: BrandGuidelines)
skills/custom_skills/applying-brand-guidelines/validate_brand.py:40
Method
__init__
Initialize brand formatter with standard settings.
skills/custom_skills/applying-brand-guidelines/apply_brand.py:45
Method
__init__
Initialize interpreter with industry context. Args: industry: Industry sector for benchmarking
skills/custom_skills/analyzing-financial-statements/interpret_ratios.py:50
Method
__init__
Initialize with financial statement data. Args: financial_data: Dictionary containing income_statement, balance_sheet,
skills/custom_skills/analyzing-financial-statements/calculate_ratios.py:13
Method
__init__
Initialize sensitivity analyzer. Args: base_model: Base financial model to analyze
skills/custom_skills/creating-financial-models/sensitivity_analysis.py:16
Method
__init__
(self)
skills/custom_skills/creating-financial-models/sensitivity_analysis.py:339
Method
__init__
Initialize DCF model. Args: company_name: Name of the company being valued
skills/custom_skills/creating-financial-models/dcf_model.py:14
Method
__post_init__
(self)
tool_use/utils/customer_service_api.py:52
Function
_lifespan
(_app: FastAPI)
claude_agent_sdk/hosting/server.py:80
Function
_limit_body_size
(request: Request, call_next)
claude_agent_sdk/hosting/server.py:93
Function
_limit_body_size
(request: Request, call_next)
claude_agent_sdk/hosting/kubernetes/gateway/main.py:117
Function
_require_token
Reject the request unless it carries the expected bearer token. No-op when ``AGENT_AUTH_TOKEN`` is unset — the gateway is doing the work. Use
claude_agent_sdk/hosting/server.py:104
Method
add_info
(self, message: str)
tests/notebook_tests/utils.py:46
Function
add_note
Add an internal note to the ticket. Args: ticket_id: The ticket ID note: Internal note for team reference Returns:
tool_use/utils/customer_service_tools.py:266
Function
answer_query_base
(context)
capabilities/retrieval_augmented_generation/evaluation/prompts.py:26
Function
answer_query_level_three
(context)
capabilities/retrieval_augmented_generation/evaluation/prompts.py:177
Function
answer_query_level_two
(context)
capabilities/retrieval_augmented_generation/evaluation/prompts.py:62
Method
apply_watermark
Generate watermark configuration for documents. Args: document_type: Type of document (draft, confidential, etc.)
skills/custom_skills/applying-brand-guidelines/apply_brand.py:312
Function
archiveSession
(session_id: string)
managed_agents/cma-mcp/src/cma.ts:82
Function
authenticate
Return the caller's tenant id. Swap this for your IdP. The demo enforces tenant isolation: each bearer token in ``GATEWAY_TENANTS`` maps to
claude_agent_sdk/hosting/kubernetes/gateway/main.py:129
Function
basic_summarize
(text)
capabilities/summarization/evaluation/prompts.py:1
Method
breakeven_analysis
Find breakeven point where output equals target. Args: variable_name: Variable to adjust variable_update: Fu
skills/custom_skills/creating-financial-models/sensitivity_analysis.py:255
Function
calculate_beta
Calculate beta from return series. Args: stock_returns: Historical stock returns market_returns: Historical market returns
skills/custom_skills/creating-financial-models/dcf_model.py:454
Function
calculate_fcf_cagr
Calculate compound annual growth rate of FCF. Args: fcf_series: Free cash flow time series Returns: CAGR as decimal
skills/custom_skills/creating-financial-models/dcf_model.py:471
Method
calculate_value
(self)
skills/custom_skills/creating-financial-models/sensitivity_analysis.py:344
Method
capture
Capture a response for visualization. Args: response: Claude API response to capture
tool_use/utils/visualize.py:345
Function
classify_ticket
Classify a ticket into a category. Args: ticket_id: The ticket ID category: The category to assign Returns: Con
tool_use/utils/customer_service_tools.py:85
Function
createSession
(agent_id: string, title?: string)
managed_agents/cma-mcp/src/cma.ts:33
Function
create_data_table
Create Excel-style data table for two variables. Args: row_variable: (name, values, update_function) col_variable: (name, va
skills/custom_skills/creating-financial-models/sensitivity_analysis.py:299
Function
create_skill
Create a new custom skill from a directory. The directory must contain: - SKILL.md file with YAML frontmatter (name, description) -
skills/skill_utils.py:19
Function
create_skill_version
Create a new version of an existing skill. Args: client: Anthropic client instance skill_id: ID of the existing skill
skills/skill_utils.py:151
Function
delete_session
Delete the session's pod and forget the mapping. Owner-only: deleting someone else's session is just as much a breach as reading it. Deletin
claude_agent_sdk/hosting/kubernetes/gateway/main.py:280
Function
delete_skill
Delete a custom skill and optionally all its versions. Note: All versions must be deleted before the skill can be deleted. Args:
skills/skill_utils.py:179
Function
download_all_files
Extract and download all files from a Claude API response. This is a convenience function that combines extract_file_ids() and download_
skills/file_utils.py:158
Function
draft_response
Draft a response to the customer. Args: ticket_id: The ticket ID response: The draft response text Returns: Con
tool_use/utils/customer_service_tools.py:236
Function
execute_notebooks
Fixture indicating whether to execute notebooks.
tests/conftest.py:152
Function
extract_xml
Extracts the content of the specified XML tag from the given text. Used for parsing structured responses Args: text (str): The text
patterns/agents/util.py:33
Function
fetch
(req: Request, env: Env)
managed_agents/self_hosted_sandboxes/cf/src/index.ts:122
Function
fetch
(req: Request, env: Env)
managed_agents/self_hosted_sandboxes/cf-worker/src/index.ts:122
Function
fetch
(req)
managed_agents/cma-mcp/src/server-http.ts:35
Method
fetch_url
Fetch a single URL and return the result.
tool_use/memory_demo/sample_code/web_scraper_v1.py:20
Method
format_number
Format numbers according to brand standards. Args: value: Numeric value to format format_type: Type of forma
skills/custom_skills/applying-brand-guidelines/apply_brand.py:369
Function
generate_prompt
(context)
capabilities/text_to_sql/evaluation/prompts.py:29
Function
generate_prompt_with_cot
(context)
capabilities/text_to_sql/evaluation/prompts.py:87
Function
generate_prompt_with_examples
(context)
capabilities/text_to_sql/evaluation/prompts.py:46
Function
generate_prompt_with_rag
(context)
capabilities/text_to_sql/evaluation/prompts.py:137
Function
getAgent
(agent_id: string)
managed_agents/cma-mcp/src/cma.ts:29
Function
getSession
(session_id: string)
managed_agents/cma-mcp/src/cma.ts:56
Function
get_activity_text
Extract activity text from a message for custom logging/monitoring. This function is provided for users who want to implement custom act
claude_agent_sdk/research_agent/agent.py:41
Function
get_all_tools
Return all tool functions for registration with Anthropic API
tool_use/utils/customer_service_tools.py:339
Function
get_assert
(output, context)
capabilities/text_to_sql/evaluation/tests/test_simple_query.py:4
Function
get_assert
(output, context)
capabilities/text_to_sql/evaluation/tests/test_hierarchical_query.py:4
Function
get_assert
(output, context)
capabilities/text_to_sql/evaluation/tests/test_above_average_salary.py:4
Function
get_assert
(output, context)
capabilities/text_to_sql/evaluation/tests/test_employee_count.py:4
Function
get_assert
(output, context)
capabilities/text_to_sql/evaluation/tests/test_budget_allocation.py:4
Function
get_assert
(output, context)
capabilities/text_to_sql/evaluation/tests/test_employee_details.py:4
Function
get_assert
(output, context)
capabilities/text_to_sql/evaluation/tests/test_average_salary.py:4
Function
get_assert
(output: str, context)
capabilities/retrieval_augmented_generation/evaluation/eval_retrieval.py:22
Function
get_assert
(output: str, context)
capabilities/retrieval_augmented_generation/evaluation/eval_end_to_end.py:82
Function
get_assert
(output: str, context, threshold=0.5)
capabilities/summarization/evaluation/custom_evals/llm_eval.py:72
Function
get_assert
(output: str, context, threshold=0.3)
capabilities/summarization/evaluation/custom_evals/rouge_eval.py:30
Function
get_assert
(output: str, context, threshold=0.3)
capabilities/summarization/evaluation/custom_evals/bleu_eval.py:53
Method
get_chart_palette
Get color palette for charts. Args: num_series: Number of data series Returns: List of hex color co
skills/custom_skills/applying-brand-guidelines/apply_brand.py:348
Function
get_expense_tools
Returns a list of all expense management tools for use with Claude API.
tool_use/utils/team_expense_api.py:531
Function
get_file_info
Retrieve metadata about a file from the Files API. Args: client: Anthropic client instance file_id: The file ID to query
skills/file_utils.py:216
Function
get_next_ticket
Get the next unprocessed ticket from the queue. Returns ticket details as JSON string.
tool_use/utils/customer_service_tools.py:61
Function
get_skill_version
Get detailed information about a specific skill version. Args: client: Anthropic client instance skill_id: ID of the skill
skills/skill_utils.py:115
Method
get_stats
Get cache statistics - may be inconsistent.
tool_use/memory_demo/sample_code/data_processor_v1.py:124
Function
get_transform
(output, context)
capabilities/classification/evaluation/transform.py:1
Function
grade_browsecomp
Score a BrowseComp response: accuracy = 1 iff the grader returns 'A'.
evals/agentic_search/utils/agentic_search.py:187
Function
grade_response
Score a single response with the F1 grader. Returns precision/recall/F1.
evals/agentic_search/utils/agentic_search.py:118
Function
guided_legal_summary
(text)
capabilities/summarization/evaluation/prompts.py:14
Function
handle_health
Health check endpoint.
claude_agent_sdk/site_reliability_agent/examples/sre_bot_slack.py:258
Function
handle_message
Handle direct messages and follow-ups in active threads.
claude_agent_sdk/site_reliability_agent/examples/sre_bot_slack.py:604
Function
handle_pagerduty_webhook
Handle incoming PagerDuty webhook events (V3 format). NOTE: Production deployments should verify the X-PagerDuty-Signature header to authenti
claude_agent_sdk/site_reliability_agent/examples/sre_bot_slack.py:117
Function
has_api_key
Fixture indicating whether the Anthropic API key is available.
tests/conftest.py:164
Function
health
()
claude_agent_sdk/hosting/server.py:118
← previous
next →
401–500 of 640, ranked by callers