Streams chat completions from the CodeAlive API for code-aware conversations with knowledge of your codebase. Args: messages: List of message objects with "role" and "content" fields Example: [ {"role": "system", "content": "Analyze the authentication flow"}, {"role": "user", "content": "How does the login process work?"} ] data_sources: List of data source objects to include in the context Can include workspace IDs (to chat about all repositories in the workspace) or specific repository IDs for more focused analysis....
Gets all available data sources (repositories and workspaces) for the user's account. A data source is a code repository or workspace that has been indexed by CodeAlive and can be used for code search and chat completions. Args: alive_only: If True (default), returns only data sources in "Alive" state ready for use with chat....
Search for code snippets across the provided data sources using natural language or code patterns. Args: query: The search query - can be natural language ("find authentication code") or code patterns ("function getUserById") For best results, be specific and include relevant keywords or function/class names Example: "implement JWT token validation" data_source_ids: List of data source IDs to search in (required) Can be workspace IDs (to search across all repositories in the workspace) or individual repository IDs for more targeted searches. Example: ["67f664fd4c2a00698a52bb6f", "5e8f9a2c1d3b7e4a6c9d0f8e"] mode: Search mode (case-insensitive): - "auto": (Default) RECOMMENDED - Intelligently adapts search depth based on query complexity - "fast": Quick scan for exact matches, best for simple queries and large codebases - "fast_deeper": Balanced search with moderate semantic analysis, good for general use - "deep": Use SPARINGLY - Resource-intensive thorough semantic analysis, only for very complex conceptual queries when other modes fail to yield results Example: "auto" include_content: Whether to include the full file content in results (default: true) Set to false for faster, more concise results when only locations are needed Example: true Returns: Formatted search results including: - Source repository/workspace name and type - File path - Line numbers - Code snippet showing the matching section - Full file content (if include_content=true) Examples: 1....
CodeAlive API key for authentication
Access and manage servers by signing in.