MCPcopy Create free account

hub / github.com/coleam00/context-engineering-intro / functions

Functions691 in github.com/coleam00/context-engineering-intro

↓ 1 callersMethodcleanup
* Cleanup database connections when Durable Object is shutting down
use-cases/mcp-server/src/index.ts:18
↓ 1 callersMethodcleanup
* Cleanup database connections when Durable Object is shutting down
use-cases/mcp-server/src/index_sentry.ts:30
↓ 1 callersMethodclear
()
use-cases/mcp-server/worker-configuration.d.ts:98
↓ 1 callersFunctionclientIdAlreadyApproved
( request: Request, clientId: string, cookieSecret: string, )
use-cases/mcp-server/src/auth/oauth-utils.ts:176
↓ 1 callersMethodclose
Close database connections.
use-cases/agent-factory-with-subagents/examples/rag_pipeline/ingestion/ingest.py:86
↓ 1 callersMethodclose
Close database connections.
use-cases/agent-factory-with-subagents/agents/rag_agent/ingestion/ingest.py:86
↓ 1 callersFunctionclose_database
Close database connection pool.
use-cases/agent-factory-with-subagents/examples/rag_pipeline/utils/db_utils.py:78
↓ 1 callersFunctionclose_database
Close database connection pool.
use-cases/agent-factory-with-subagents/agents/rag_agent/utils/db_utils.py:78
↓ 1 callersFunctioncopy_template_files
Copy all template files to target directory. Args: target_dir: Target directory path files: List of (source_path, relati
use-cases/pydantic-ai/copy_template.py:101
↓ 1 callersFunctioncopy_template_files
Copy all template files to target directory. Args: target_dir: Target directory path files: List of (source_path, relati
use-cases/mcp-server/copy_template.py:159
↓ 1 callersFunctioncreate_directory_structure
Create directory structure for all files. Args: target_dir: Target directory path files: List of (source_path, relative_
use-cases/pydantic-ai/copy_template.py:83
↓ 1 callersFunctioncreate_directory_structure
Create directory structure for all files. Args: target_dir: Target directory path files: List of (source_path, relative_
use-cases/mcp-server/copy_template.py:140
↓ 1 callersFunctioncreate_search_function_model
Create FunctionModel that simulates search behavior. Args: search_results: Expected search results to return Returns:
use-cases/agent-factory-with-subagents/agents/rag_agent/tests/conftest.py:142
↓ 1 callersFunctiondecodeState
* Decodes a URL-safe base64 string back to its original data. * @param encoded - The URL-safe base64 encoded string. * @returns The original data.
use-cases/mcp-server/src/auth/oauth-utils.ts:39
↓ 1 callersFunctiondemo_conversation
Demonstrate the basic chat agent with a simple conversation.
use-cases/pydantic-ai/examples/basic_chat_agent/agent.py:164
↓ 1 callersFunctiondemo_conversation
Demonstrate the basic chat agent with a simple conversation.
use-cases/agent-factory-with-subagents/examples/basic_chat_agent/agent.py:164
↓ 1 callersFunctiondemo_structured_output
Demonstrate structured output validation.
use-cases/pydantic-ai/examples/structured_output_agent/agent.py:239
↓ 1 callersFunctiondemo_structured_output
Demonstrate structured output validation.
use-cases/agent-factory-with-subagents/examples/structured_output_agent/agent.py:239
↓ 1 callersFunctiondemo_tools
Demonstrate the tool-enabled agent capabilities.
use-cases/pydantic-ai/examples/tool_enabled_agent/agent.py:345
↓ 1 callersFunctiondemo_tools
Demonstrate the tool-enabled agent capabilities.
use-cases/agent-factory-with-subagents/examples/tool_enabled_agent/agent.py:345
↓ 1 callersFunctiondisplay_help
Display help information.
use-cases/agent-factory-with-subagents/agents/rag_agent/cli.py:167
↓ 1 callersMethodembed_query
Generate embedding for a search query. Args: query: Search query Returns: Query emb
use-cases/agent-factory-with-subagents/examples/rag_pipeline/ingestion/embedder.py:282
↓ 1 callersMethodembed_query
Generate embedding for a search query. Args: query: Search query Returns: Query emb
use-cases/agent-factory-with-subagents/agents/rag_agent/ingestion/embedder.py:282
↓ 1 callersMethodend
(end: DocumentEnd)
use-cases/mcp-server/worker-configuration.d.ts:1168
↓ 1 callersFunctionfetchUpstreamAuthToken
({ client_id, client_secret, code, redirect_uri, upstream_url, }: UpstreamTokenParams)
use-cases/mcp-server/src/auth/oauth-utils.ts:634
↓ 1 callersMethodgenerate_embeddings_batch
Generate embeddings for a batch of texts. Args: texts: List of texts to embed Returns:
use-cases/agent-factory-with-subagents/examples/rag_pipeline/ingestion/embedder.py:118
↓ 1 callersMethodgenerate_embeddings_batch
Generate embeddings for a batch of texts. Args: texts: List of texts to embed Returns:
use-cases/agent-factory-with-subagents/agents/rag_agent/ingestion/embedder.py:118
↓ 1 callersFunctiongetDb
(databaseUrl: string)
use-cases/mcp-server/src/database/connection.ts:9
↓ 1 callersFunctiongetSentryConfig
(env: Env)
use-cases/mcp-server/src/index_sentry.ts:12
↓ 1 callersFunctiongetUpstreamAuthorizeUrl
({ upstream_url, client_id, scope, redirect_uri, state, }: UpstreamAuthorizeParams)
use-cases/mcp-server/src/auth/oauth-utils.ts:612
↓ 1 callersFunctionget_ingestion_model
Get model for ingestion tasks (uses same model as main LLM). Returns: Configured model for ingestion tasks
use-cases/agent-factory-with-subagents/examples/rag_pipeline/utils/providers.py:57
↓ 1 callersFunctionget_ingestion_model
Get model for ingestion tasks (uses same model as main LLM). Returns: Configured model for ingestion tasks
use-cases/agent-factory-with-subagents/agents/rag_agent/utils/providers.py:57
↓ 1 callersFunctionget_llm_model
Get configured LLM model from environment settings.
use-cases/pydantic-ai/examples/tool_enabled_agent/agent.py:48
↓ 1 callersFunctionget_llm_model
Get configured LLM model from environment settings.
use-cases/pydantic-ai/examples/basic_chat_agent/agent.py:41
↓ 1 callersFunctionget_llm_model
Get configured LLM model from environment settings.
use-cases/pydantic-ai/examples/structured_output_agent/agent.py:41
↓ 1 callersFunctionget_llm_model
Get configured LLM model from environment settings.
use-cases/agent-factory-with-subagents/examples/tool_enabled_agent/agent.py:48
↓ 1 callersFunctionget_llm_model
Get configured LLM model from environment settings.
use-cases/agent-factory-with-subagents/examples/basic_chat_agent/agent.py:41
↓ 1 callersFunctionget_llm_model
Get configured LLM model from environment settings.
use-cases/agent-factory-with-subagents/examples/structured_output_agent/agent.py:41
↓ 1 callersFunctionget_llm_model
Get LLM model configuration for OpenAI. Returns: Configured OpenAI model
use-cases/agent-factory-with-subagents/examples/rag_pipeline/utils/providers.py:16
↓ 1 callersFunctionget_template_files
Get list of template files to copy with their relative paths. Returns: List of (source_path, relative_path) tuples
use-cases/pydantic-ai/copy_template.py:24
↓ 1 callersFunctionget_template_files
Get list of template files to copy with their relative paths. Uses gitignore-aware filtering to exclude build artifacts and dependencies.
use-cases/mcp-server/copy_template.py:94
↓ 1 callersMethodingest_documents
Ingest all documents from the documents folder. Args: progress_callback: Optional callback for progress updates
use-cases/agent-factory-with-subagents/examples/rag_pipeline/ingestion/ingest.py:92
↓ 1 callersMethodingest_documents
Ingest all documents from the documents folder. Args: progress_callback: Optional callback for progress updates
use-cases/agent-factory-with-subagents/agents/rag_agent/ingestion/ingest.py:92
↓ 1 callersMethodinitialize
Initialize database connections.
use-cases/agent-factory-with-subagents/examples/rag_pipeline/ingestion/ingest.py:73
↓ 1 callersMethodinitialize
Initialize database connections.
use-cases/agent-factory-with-subagents/agents/rag_agent/ingestion/ingest.py:73
↓ 1 callersFunctioninitialize_database
Initialize database connection pool.
use-cases/agent-factory-with-subagents/examples/rag_pipeline/utils/db_utils.py:73
↓ 1 callersFunctioninitialize_database
Initialize database connection pool.
use-cases/agent-factory-with-subagents/agents/rag_agent/utils/db_utils.py:73
↓ 1 callersFunctionmain
Main function for the copy template script.
use-cases/pydantic-ai/copy_template.py:202
↓ 1 callersFunctionmain
Main conversation loop.
use-cases/pydantic-ai/examples/main_agent_reference/cli.py:155
↓ 1 callersFunctionmain
Main conversation loop.
use-cases/agent-factory-with-subagents/examples/main_agent_reference/cli.py:155
↓ 1 callersFunctionmain
Main function for running ingestion.
use-cases/agent-factory-with-subagents/examples/rag_pipeline/ingestion/ingest.py:359
↓ 1 callersFunctionmain
Example usage of the chunker.
use-cases/agent-factory-with-subagents/examples/rag_pipeline/ingestion/chunker.py:470
↓ 1 callersFunctionmain
Example usage of the embedder.
use-cases/agent-factory-with-subagents/examples/rag_pipeline/ingestion/embedder.py:375
↓ 1 callersFunctionmain
Main conversation loop.
use-cases/agent-factory-with-subagents/agents/rag_agent/cli.py:187
↓ 1 callersFunctionmain
Main function for running ingestion.
use-cases/agent-factory-with-subagents/agents/rag_agent/ingestion/ingest.py:359
↓ 1 callersFunctionmain
Example usage of the chunker.
use-cases/agent-factory-with-subagents/agents/rag_agent/ingestion/chunker.py:470
↓ 1 callersFunctionmain
Example usage of the embedder.
use-cases/agent-factory-with-subagents/agents/rag_agent/ingestion/embedder.py:375
↓ 1 callersFunctionmain
Main function for the copy template script.
use-cases/mcp-server/copy_template.py:273
↓ 1 callersFunctionparseRedirectApproval
( request: Request, cookieSecret: string, )
use-cases/mcp-server/src/auth/oauth-utils.ts:535
↓ 1 callersFunctionparse_gitignore
Parse .gitignore file and return set of patterns to ignore. Args: gitignore_path: Path to .gitignore file Returns:
use-cases/mcp-server/copy_template.py:26
↓ 1 callersFunctionprint_next_steps
Print helpful next steps for using the template. Args: target_dir: Target directory path
use-cases/pydantic-ai/copy_template.py:162
↓ 1 callersFunctionprint_next_steps
Print helpful next steps for using the template. Args: target_dir: Target directory path
use-cases/mcp-server/copy_template.py:222
↓ 1 callersFunctionprogress_callback
(current: int, total: int)
use-cases/agent-factory-with-subagents/examples/rag_pipeline/ingestion/ingest.py:393
↓ 1 callersFunctionprogress_callback
(current, total)
use-cases/agent-factory-with-subagents/examples/rag_pipeline/ingestion/embedder.py:404
↓ 1 callersFunctionprogress_callback
(current: int, total: int)
use-cases/agent-factory-with-subagents/agents/rag_agent/ingestion/ingest.py:393
↓ 1 callersFunctionprogress_callback
(current, total)
use-cases/agent-factory-with-subagents/agents/rag_agent/ingestion/embedder.py:404
↓ 1 callersFunctionregisterAllTools
(server: McpServer, env: Env, props: Props)
use-cases/mcp-server/src/tools/register-tools.ts:8
↓ 1 callersFunctionregisterDatabaseToolsWithSentry
(server: McpServer, env: Env, props: Props)
use-cases/mcp-server/examples/database-tools-sentry.ts:47
↓ 1 callersFunctionrenderApprovalDialog
(request: Request, options: ApprovalDialogOptions)
use-cases/mcp-server/src/auth/oauth-utils.ts:198
↓ 1 callersFunctionsearch_web_tool
Pure function to search the web using Brave Search API. Args: api_key: Brave Search API key query: Search query
use-cases/pydantic-ai/examples/main_agent_reference/tools.py:19
↓ 1 callersFunctionsearch_web_tool
Pure function to search the web using Brave Search API. Args: api_key: Brave Search API key query: Search query
use-cases/agent-factory-with-subagents/examples/main_agent_reference/tools.py:19
↓ 1 callersFunctionsetupCryptoMocks
()
use-cases/mcp-server/tests/mocks/crypto.mock.ts:13
↓ 1 callersFunctionsetupDatabaseMocks
()
use-cases/mcp-server/tests/mocks/database.mock.ts:31
↓ 1 callersFunctionsetupGitHubMocks
()
use-cases/mcp-server/tests/mocks/github.mock.ts:18
↓ 1 callersFunctionsetupOAuthMocks
()
use-cases/mcp-server/tests/mocks/oauth.mock.ts:23
↓ 1 callersFunctionsignData
* Signs data using HMAC-SHA256. * @param key - The CryptoKey for signing. * @param data - The string data to sign. * @returns A promise resolving t
use-cases/mcp-server/src/auth/oauth-utils.ts:76
↓ 1 callersFunctionstream_agent_interaction
Stream agent interaction with real-time tool call display.
use-cases/pydantic-ai/examples/main_agent_reference/cli.py:26
↓ 1 callersFunctionstream_agent_interaction
Stream agent interaction with real-time tool call display.
use-cases/agent-factory-with-subagents/examples/main_agent_reference/cli.py:26
↓ 1 callersFunctionstream_agent_interaction
Stream agent interaction with real-time tool call display.
use-cases/agent-factory-with-subagents/agents/rag_agent/cli.py:22
↓ 1 callersFunctionvalidate_all_requirements
Summary function to validate all requirements are tested.
use-cases/agent-factory-with-subagents/agents/rag_agent/tests/test_requirements.py:918
↓ 1 callersFunctionvalidate_template_integrity
Validate that essential template files were copied correctly. Args: target_dir: Target directory path Returns:
use-cases/pydantic-ai/copy_template.py:127
↓ 1 callersFunctionvalidate_template_integrity
Validate that essential template files were copied correctly. Args: target_dir: Target directory path Returns:
use-cases/mcp-server/copy_template.py:185
↓ 1 callersFunctionverifySignature
* Verifies an HMAC-SHA256 signature. * @param key - The CryptoKey for verification. * @param signatureHex - The signature to verify (hex string). *
use-cases/mcp-server/src/auth/oauth-utils.ts:92
Method"assert"
(condition?: boolean, ...data: any[])
use-cases/mcp-server/worker-configuration.d.ts:96
Method[Symbol.asyncIterator]
(options?: ReadableStreamValuesOptions)
use-cases/mcp-server/worker-configuration.d.ts:1769
Method__init__
Initialize database pool. Args: database_url: PostgreSQL connection URL
use-cases/agent-factory-with-subagents/examples/rag_pipeline/utils/db_utils.py:27
Method__init__
Initialize ingestion pipeline. Args: config: Ingestion configuration documents_folder: Folder contai
use-cases/agent-factory-with-subagents/examples/rag_pipeline/ingestion/ingest.py:42
Method__init__
Initialize chunker. Args: config: Chunking configuration
use-cases/agent-factory-with-subagents/examples/rag_pipeline/ingestion/chunker.py:72
Method__init__
Initialize simple chunker.
use-cases/agent-factory-with-subagents/examples/rag_pipeline/ingestion/chunker.py:349
Method__init__
Initialize embedding generator. Args: model: OpenAI embedding model to use batch_size: Number of tex
use-cases/agent-factory-with-subagents/examples/rag_pipeline/ingestion/embedder.py:40
Method__init__
Initialize cache.
use-cases/agent-factory-with-subagents/examples/rag_pipeline/ingestion/embedder.py:303
Method__init__
Initialize database pool. Args: database_url: PostgreSQL connection URL
use-cases/agent-factory-with-subagents/agents/rag_agent/utils/db_utils.py:27
Method__init__
Initialize ingestion pipeline. Args: config: Ingestion configuration documents_folder: Folder contai
use-cases/agent-factory-with-subagents/agents/rag_agent/ingestion/ingest.py:42
Method__init__
Initialize chunker. Args: config: Chunking configuration
use-cases/agent-factory-with-subagents/agents/rag_agent/ingestion/chunker.py:72
Method__init__
Initialize simple chunker.
use-cases/agent-factory-with-subagents/agents/rag_agent/ingestion/chunker.py:349
Method__init__
Initialize embedding generator. Args: model: OpenAI embedding model to use batch_size: Number of tex
use-cases/agent-factory-with-subagents/agents/rag_agent/ingestion/embedder.py:40
Method__init__
Initialize cache.
use-cases/agent-factory-with-subagents/agents/rag_agent/ingestion/embedder.py:303
Method__post_init__
Validate configuration.
use-cases/agent-factory-with-subagents/examples/rag_pipeline/ingestion/chunker.py:44
Method__post_init__
Calculate token count if not provided.
use-cases/agent-factory-with-subagents/examples/rag_pipeline/ingestion/chunker.py:62
Method__post_init__
Validate configuration.
use-cases/agent-factory-with-subagents/agents/rag_agent/ingestion/chunker.py:44
← previousnext →101–200 of 691, ranked by callers