MCPcopy Create free account

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

Functions640 in github.com/anthropics/claude-cookbooks

FunctionRootLayout
({ children }: { children: React.ReactNode })
managed_agents/roadtrip_planner/src/app/layout.tsx:10
FunctionToolRail
({ className, groups, openGroups, openCalls, onToggleGroup, onToggleCall, stats, }: { classNam
managed_agents/roadtrip_planner/src/components/tool-rail.tsx:176
FunctionTrip
({ boot, onNewTrip }: { boot: Boot; onNewTrip: (model?: string) => void })
managed_agents/roadtrip_planner/src/app/page.tsx:107
FunctionTurnView
({ 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
Methodadd_info
(self, message: str)
tests/notebook_tests/utils.py:46
Functionadd_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
Functionanswer_query_base
(context)
capabilities/retrieval_augmented_generation/evaluation/prompts.py:26
Functionanswer_query_level_three
(context)
capabilities/retrieval_augmented_generation/evaluation/prompts.py:177
Functionanswer_query_level_two
(context)
capabilities/retrieval_augmented_generation/evaluation/prompts.py:62
Methodapply_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
FunctionarchiveSession
(session_id: string)
managed_agents/cma-mcp/src/cma.ts:82
Functionauthenticate
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
Functionbasic_summarize
(text)
capabilities/summarization/evaluation/prompts.py:1
Methodbreakeven_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
Functioncalculate_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
Functioncalculate_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
Methodcalculate_value
(self)
skills/custom_skills/creating-financial-models/sensitivity_analysis.py:344
Methodcapture
Capture a response for visualization. Args: response: Claude API response to capture
tool_use/utils/visualize.py:345
Functionclassify_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
FunctioncreateSession
(agent_id: string, title?: string)
managed_agents/cma-mcp/src/cma.ts:33
Functioncreate_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
Functioncreate_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
Functioncreate_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
Functiondelete_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
Functiondelete_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
Functiondownload_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
Functiondraft_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
Functionexecute_notebooks
Fixture indicating whether to execute notebooks.
tests/conftest.py:152
Functionextract_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
Functionfetch
(req: Request, env: Env)
managed_agents/self_hosted_sandboxes/cf/src/index.ts:122
Functionfetch
(req: Request, env: Env)
managed_agents/self_hosted_sandboxes/cf-worker/src/index.ts:122
Functionfetch
(req)
managed_agents/cma-mcp/src/server-http.ts:35
Methodfetch_url
Fetch a single URL and return the result.
tool_use/memory_demo/sample_code/web_scraper_v1.py:20
Methodformat_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
Functiongenerate_prompt
(context)
capabilities/text_to_sql/evaluation/prompts.py:29
Functiongenerate_prompt_with_cot
(context)
capabilities/text_to_sql/evaluation/prompts.py:87
Functiongenerate_prompt_with_examples
(context)
capabilities/text_to_sql/evaluation/prompts.py:46
Functiongenerate_prompt_with_rag
(context)
capabilities/text_to_sql/evaluation/prompts.py:137
FunctiongetAgent
(agent_id: string)
managed_agents/cma-mcp/src/cma.ts:29
FunctiongetSession
(session_id: string)
managed_agents/cma-mcp/src/cma.ts:56
Functionget_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
Functionget_all_tools
Return all tool functions for registration with Anthropic API
tool_use/utils/customer_service_tools.py:339
Functionget_assert
(output, context)
capabilities/text_to_sql/evaluation/tests/test_simple_query.py:4
Functionget_assert
(output, context)
capabilities/text_to_sql/evaluation/tests/test_hierarchical_query.py:4
Functionget_assert
(output, context)
capabilities/text_to_sql/evaluation/tests/test_above_average_salary.py:4
Functionget_assert
(output, context)
capabilities/text_to_sql/evaluation/tests/test_employee_count.py:4
Functionget_assert
(output, context)
capabilities/text_to_sql/evaluation/tests/test_budget_allocation.py:4
Functionget_assert
(output, context)
capabilities/text_to_sql/evaluation/tests/test_employee_details.py:4
Functionget_assert
(output, context)
capabilities/text_to_sql/evaluation/tests/test_average_salary.py:4
Functionget_assert
(output: str, context)
capabilities/retrieval_augmented_generation/evaluation/eval_retrieval.py:22
Functionget_assert
(output: str, context)
capabilities/retrieval_augmented_generation/evaluation/eval_end_to_end.py:82
Functionget_assert
(output: str, context, threshold=0.5)
capabilities/summarization/evaluation/custom_evals/llm_eval.py:72
Functionget_assert
(output: str, context, threshold=0.3)
capabilities/summarization/evaluation/custom_evals/rouge_eval.py:30
Functionget_assert
(output: str, context, threshold=0.3)
capabilities/summarization/evaluation/custom_evals/bleu_eval.py:53
Methodget_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
Functionget_expense_tools
Returns a list of all expense management tools for use with Claude API.
tool_use/utils/team_expense_api.py:531
Functionget_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
Functionget_next_ticket
Get the next unprocessed ticket from the queue. Returns ticket details as JSON string.
tool_use/utils/customer_service_tools.py:61
Functionget_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
Methodget_stats
Get cache statistics - may be inconsistent.
tool_use/memory_demo/sample_code/data_processor_v1.py:124
Functionget_transform
(output, context)
capabilities/classification/evaluation/transform.py:1
Functiongrade_browsecomp
Score a BrowseComp response: accuracy = 1 iff the grader returns 'A'.
evals/agentic_search/utils/agentic_search.py:187
Functiongrade_response
Score a single response with the F1 grader. Returns precision/recall/F1.
evals/agentic_search/utils/agentic_search.py:118
Functionguided_legal_summary
(text)
capabilities/summarization/evaluation/prompts.py:14
Functionhandle_health
Health check endpoint.
claude_agent_sdk/site_reliability_agent/examples/sre_bot_slack.py:258
Functionhandle_message
Handle direct messages and follow-ups in active threads.
claude_agent_sdk/site_reliability_agent/examples/sre_bot_slack.py:604
Functionhandle_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
Functionhas_api_key
Fixture indicating whether the Anthropic API key is available.
tests/conftest.py:164
Functionhealth
()
claude_agent_sdk/hosting/server.py:118
← previousnext →401–500 of 640, ranked by callers