MCPcopy Create free account

hub / github.com/Harmeet10000/AgentNexus-LangChain-FastAPI / functions

Functions1,424 in github.com/Harmeet10000/AgentNexus-LangChain-FastAPI

Method__init__
(self, app: Callable[[dict, Callable, Callable], Awaitable])
src/app/middleware/server_middleware.py:27
Method__init__
( self, app: object, *, sunset_date: str, v2_base_path: str = "/api/v2
src/app/middleware/api_versioning.py:29
Method__init__
( self, user_repo: UserAdminRepository, token_repo: RefreshTokenRepository, )
src/app/features/users/service.py:32
Method__init__
(self, session: AsyncSession)
src/app/features/documents/repository.py:49
Method__init__
( self, repo: DocumentRepository, object_store: StorageService | None, )
src/app/features/documents/service.py:101
Method__init__
( self, repo: DocumentRepository, llm: BaseChatModel, redis: Redis | None,
src/app/features/documents/service.py:218
Method__init__
( self, graph: CompiledStateGraph, redis: Redis, correlation_id: str,
src/app/features/agent_saul/service.py:92
Method__init__
(self, db: AsyncIOMotorDatabase)
src/app/features/auth/repository.py:46
Method__init__
(self, redis: Redis)
src/app/features/auth/repository.py:252
Method__init__
( self, user_repo: UserRepository, token_repo: RefreshTokenRepository, session
src/app/features/auth/service.py:62
Method__init__
( self, *, error_code: str, message: str, close_code: int = status.WS_
src/app/features/auth/websocket_security.py:41
Method__init__
(self)
src/app/features/auth/websocket_security.py:57
Method__init__
(self)
src/app/features/auth/websocket_security.py:66
Method__init__
( self, user_repo: UserRepository, token_repo: RefreshTokenRepository, storage
src/app/features/profile/service.py:15
Method__init__
(self, session: AsyncSession)
src/app/features/search/repository.py:39
Method__init__
( self, repo: SearchRepository, llm: BaseChatModel, redis: Redis | None = None
src/app/features/search/service.py:60
Method__init__
(self, ingestion_graph: CompiledStateGraph)
src/app/features/ingestion/service.py:27
Method__init__
( self, mongo_client: AsyncIOMotorClient | None, redis_client: Redis | None, p
src/app/features/health/service.py:27
Method__init__
( self, crawler: WebCrawler | None = None, processor: GeminiProcessor | None = None,
src/app/features/crawler/service.py:38
Method__init__
(self, redis_client: Redis | None = None)
src/app/shared/services/rate_limiter.py:40
Method__init__
(self, redis: Redis)
src/app/shared/circuit_breaker/service.py:51
Method__init__
(self)
src/app/shared/langchain_layer/callback.py:35
Method__init__
(self)
src/app/shared/langchain_layer/callback.py:54
Method__init__
(self)
src/app/shared/langchain_layer/callback.py:83
Method__init__
(self)
src/app/shared/langchain_layer/agents/tools/base.py:64
Method__init__
(self)
src/app/shared/langchain_layer/agents/tools/registry.py:12
Method__init__
(self, redis: Redis, db_engine: AsyncEngine)
src/app/shared/langchain_layer/agents/tools/idempotency.py:57
Method__init__
(self, cognee_client: Any)
src/app/shared/langchain_layer/agents/memory/cognee_client.py:280
Method__init__
Initialize ingestion pipeline. Args: config: Ingestion configuration documents_folder: Folder containing mar
src/app/shared/rag/document_processing/ingest.py:27
Method__init__
Initialize cache.
src/app/shared/rag/document_processing/embedder.py:298
Method__init__
(self)
src/app/shared/rag/pageindex/client.py:69
Method__init__
(self, model_name: str = _DEFAULT_RERANKER_MODEL)
src/app/shared/langgraph_layer/retrieval_kb/reranker.py:25
Method__init__
( self, database_url: str, celery_app: Any, *, session_factory: async_
src/app/shared/outbox/relay.py:23
Method__init__
( self, config: CrawlerConfig | None = None, redis_client: Redis | None = None, )
src/app/shared/crawler/crawler.py:53
Method__init__
(self, model: BaseChatModel | None = None)
src/app/shared/crawler/processor.py:136
Method__init__
(self, server: Any)
src/mcp_core/testing.py:14
Method__init__
(self, server_configs: list[MCPClientServerConfig])
src/mcp_core/client/manager.py:33
Method__init__
(self, app: Any, enabled: bool = True)
src/mcp_core/server/middleware.py:41
Method__init__
( self, app: Any, redis_getter: Callable[[], Any | None], *, burst: in
src/mcp_core/server/middleware.py:86
Method_arun
Run the crawl tool. Args: url: URL to crawl extract_structured: Whether to extract structured data
src/app/shared/langchain_layer/agents/tools/crawl.py:38
Function_celery_shutdown_otel
(**_: Any)
src/app/connections/celery.py:270
Function_encode_file
Return (base64_data, mime_type) for a local file.
src/app/shared/langchain_layer/models.py:313
Function_extract_raw_token
Authorization: Bearer header takes priority; falls back to access_token cookie.
src/app/features/auth/dependencies.py:49
Function_guard
( claims: Annotated[TokenClaims, Depends(get_token_claims)], )
src/app/features/auth/dependencies.py:149
Method_handle_notification
( self, notification: asyncpg_listen.Notification | asyncpg_listen.Timeout, )
src/app/shared/outbox/relay.py:76
Function_handler
()
src/mcp_core/server/tools.py:182
Method_make_key
Construct a full key from namespace hierarchy + key.
src/app/shared/langchain_layer/agents/memory/cognee_client.py:325
Method_matches_filter
Check if data matches the filter criteria.
src/app/shared/langchain_layer/agents/memory/cognee_client.py:329
Method_normalize_frozenset
(cls, value: object)
src/app/shared/langchain_layer/agents/memory/memory_scope.py:64
Function_raise_websocket_rate_limit
(*_: object, **__: object)
src/app/features/auth/websocket_security.py:78
Function_redact
(value: Any)
src/mcp_core/server/resources.py:17
Method_retry_wrapper
(request, handler)
src/app/shared/langchain_layer/agents/middlewares/guardrails.py:47
Method_run
Synchronous fallback.
src/app/shared/langchain_layer/agents/tools/web_search.py:67
Method_setup
(self, client)
tests/integration/test_api_deprecation.py:13
Method_setup
(self, client)
tests/integration/test_health.py:17
Function_sync_parse
()
src/app/shared/langgraph_layer/ingestion_kb/nodes.py:406
Function_sync_process
()
src/app/shared/rag/langextract/docling_preprocessor.py:49
Method_sync_rerank
()
src/app/shared/langgraph_layer/retrieval_kb/reranker.py:39
Function_websocket_rate_identifier
(websocket: WebSocket)
src/app/features/auth/websocket_security.py:74
Functionabatch_multimodal
Batch multimodal calls. Each item in `items` should have keys: text, and one of image_path | image_url | image_b64.
src/app/shared/langchain_layer/models.py:390
Functionabatch_page_index
Index multiple documents concurrently with a bounded in-flight window. Raises exceptions immediately if any task fails.
src/app/shared/rag/pageindex/functions.py:62
Functionabatch_text
Batch async text calls. Uses LangChain's native abatch which honours max_concurrency.
src/app/shared/langchain_layer/models.py:254
Functionabort_multipart_upload
(storage: StorageService, *, key: str, upload_id: str)
src/app/shared/services/storage.py:796
Methodabort_multipart_upload
(self, *, key: str, upload_id: str)
src/app/shared/services/storage.py:231
Functionachat_completion
Call PageIndex chat completion API in non-streaming mode.
src/app/shared/rag/pageindex/functions.py:96
Functionacreate_gemini_context_cache
Create an explicit Gemini context cache for large reusable prompts. Use this for shared context that would otherwise be re-sent on every req
src/app/shared/langchain_layer/models.py:141
Functionactivate_user
( user_id: Annotated[str, Path()], service: UserAdminServiceDep, claims: Annotated[TokenClaims, De
src/app/features/users/router.py:79
Functionadd
Example task: Add two numbers.
src/tasks/example.py:9
Methodadd_api_route
(self, path: str, endpoint, **kwargs)
src/app/api/strict_envelope.py:18
Functionadd_to_bloom_filter
Add item(s) to a Bloom filter (BF.ADD or BF.MADD). Args: redis: Redis client instance filter_name: Name of the filter val
src/app/utils/cache/redis_func.py:1296
Functionaembed_batch
Embed multiple strings, respecting concurrency limits. GoogleGenerativeAIEmbeddings.embed_documents handles batching internally. Args:
src/app/shared/langchain_layer/models.py:498
Functionaembed_text
Embed a single string asynchronously. Args: text: The text to embed. model: Embedding model. Defaults to Gemini embeddings.
src/app/shared/langchain_layer/models.py:482
Functionaget_chat_model
Return a configured chat model, defaulting all behavior from settings.
src/app/shared/langchain_layer/models.py:428
Methodallowed_tools
(self)
src/mcp_core/common/models.py:72
Methodallows_source
(self, source: str)
src/app/shared/langchain_layer/agents/memory/memory_scope.py:73
Functionapply_changes_node
(state: ReconciliationState)
src/app/shared/langgraph_layer/reconciliation/nodes.py:205
Functionapply_fastapi_guard_response_modifier
Adjust guard-managed headers for streaming responses.
src/app/middleware/server_middleware.py:117
Functionask_corpus
( payload: documents_dto.UnifiedAskRequest, service: documents_dependencies.DocumentQueryServiceDep,
src/app/features/documents/router.py:86
Functionask_legal
( payload: documents_dto.UnifiedAskRequest, service: documents_dependencies.DocumentQueryServiceDep,
src/app/features/documents/router.py:100
Functionask_legal_kb
( payload: LegalAskRequest, service: SearchServiceDep, user_id: UserIdDep, )
src/app/features/search/router.py:75
Functionastream_chat_completions
Stream chat completion chunks from PageIndex as an async generator. Bridges the SDK's sync iterator to async code using asyncio.to_thread and a q
src/app/shared/rag/pageindex/functions.py:131
Functionastream_text
Async generator that yields text tokens as they arrive. Usage in FastAPI:: async def sse_endpoint(): async for chunk in
src/app/shared/langchain_layer/models.py:282
Functionauth_service
(refresh_token_repo)
tests/conftest.py:87
Functionawith_structured_output
Return a model augmented with structured output. Invoke like a normal chain; output is a validated Pydantic model. Example:: cl
src/app/shared/langchain_layer/models.py:454
Methodbefore_start
(self, task_id: str, args: tuple[Any, ...], kwargs: dict[str, Any])
src/app/connections/celery_registry.py:106
Methodbounded_invoke
(msg: str, tid: str)
src/app/shared/langchain_layer/agents/factory.py:304
Methodbuild
(self)
src/app/shared/langchain_layer/agents/middlewares/guardrails.py:149
Methodbuild
(self)
src/app/shared/langchain_layer/agents/middlewares/guardrails.py:205
Methodbuild
(self)
src/app/shared/langchain_layer/agents/middlewares/guardrails.py:270
Functionbuild_agent_context
Assemble the full message list for an LLM call. Steps: 1. Retrieve relevant Graphiti context (if include_long_term_memory) 2. Filter
src/app/shared/rag/graphiti/memory_pipeline.py:77
Functionbuild_ingestion_graph
Build the contract ingestion graph once during application startup.
src/app/shared/langgraph_layer/ingestion_kb/graph.py:37
Functionbuild_minimal_middleware_stack
Lightweight stack for development / testing.
src/app/shared/langchain_layer/agents/middlewares/guardrails.py:354
Functionbuild_open_deep_search_config
Build graph config with lifespan-owned clients attached.
src/app/shared/langgraph_layer/open_deep_search/config.py:60
Functionbuild_reconciliation_graph
Build the reconciliation graph once during application startup.
src/app/shared/langgraph_layer/reconciliation/graph.py:24
Functionbuild_saul_graph
Build and compile the Agent Saul LangGraph.
src/app/shared/langgraph_layer/agent_saul/graph.py:86
Functionbuild_tool_registry
Build all tools once. Call at lifespan startup only.
src/app/shared/rag/graphiti/registry.py:98
Methodby_names
(self, names: list[str])
src/app/shared/langchain_layer/agents/tools/base.py:88
Methodby_tags
Return tools matching ALL given tags.
src/app/shared/langchain_layer/agents/tools/base.py:82
Functioncache_with_fallback
Get user with automatic cache fallback pattern. This pattern: 1. Tries cache 2. If miss, tries DB 3. If DB fails too, returns None
src/app/examples/redis_examples.py:404
Functioncached_generate_embedding
(text: str)
src/app/shared/rag/document_processing/embedder.py:350
← previousnext →801–900 of 1,424, ranked by callers