MCPcopy Create free account

hub / github.com/Nayshins/ummon / functions

Functions347 in github.com/Nayshins/ummon

↓ 269 callersMethodclone
(&self)
src/db.rs:38
↓ 44 callersMethodas_str
(&self)
src/graph/entity.rs:57
↓ 39 callersMethodadd_entity
Add a general entity to the graph
src/graph/knowledge_graph.rs:209
↓ 29 callersFunctiontraverse_node
Recursively traverses a node and its children, applying a callback function to each node. # Arguments `node` - The tree-sitter Node to traverse `f` -
src/parser/language_support/mod.rs:32
↓ 28 callersMethodcreate_relationship
Create and add a relationship between entities Tries to locate both source and target entities in the graph. If the source entity doesn't exist, the
src/graph/knowledge_graph.rs:369
↓ 22 callersMethodid
(&self)
src/graph/entity.rs:175
↓ 18 callersMethodpath
Helper methods for MCP server
src/graph/entity.rs:120
↓ 13 callersMethodget_connection
Get a connection from the pool
src/db.rs:70
↓ 12 callersMethodexecute
Execute a parsed query and return matching entities
src/query/db_executor.rs:30
↓ 11 callersMethodas_entity
(&self)
src/graph/knowledge_graph.rs:37
↓ 11 callersMethodfile_path
(&self)
src/graph/entity.rs:191
↓ 11 callersMethodget_entity
Get an entity by its ID
src/graph/knowledge_graph.rs:331
↓ 11 callersFunctionnode_to_location
Converts a tree-sitter Node to a Location struct. # Arguments `node` - The tree-sitter Node to convert # Returns `Location` - A Location struct cont
src/parser/language_support/mod.rs:55
↓ 11 callersFunctionparse_query
Parse a query string into a structured query object
src/query/parser.rs:131
↓ 10 callersMethodparse_types
(&mut self, content: &str, file_path: &str)
src/parser/language_support/rust.rs:653
↓ 9 callersMethodname
(&self)
src/graph/entity.rs:179
↓ 8 callersMethodmetadata
(&self)
src/graph/entity.rs:195
↓ 8 callersMethodparse_functions
Parses Rust functions from source code. Extracts top-level functions and methods, identifying their structure, parameters, and relationships to other
src/parser/language_support/rust.rs:756
↓ 8 callersMethodparse_modules
(&mut self, content: &str, file_path: &str)
src/parser/language_support/java.rs:652
↓ 8 callersMethodsave_entity
(&self, entity: &dyn Entity)
src/db.rs:143
↓ 7 callersMethodextract_location
(&self, node: Node)
src/parser/language_support/java.rs:112
↓ 7 callersMethodfind_paths
Find paths between entities using an iterative approach to avoid stack overflow
src/graph/knowledge_graph.rs:434
↓ 7 callersMethodget_outgoing_relationships
Get relationships by source entity
src/graph/knowledge_graph.rs:408
↓ 7 callersMethodquery_entities_by_type
Query entities based on entity type and optional condition with parameters
src/db.rs:752
↓ 6 callersMethodas_any
(&self)
src/graph/entity.rs:203
↓ 6 callersMethodentity_type
(&self)
src/graph/entity.rs:183
↓ 6 callersMethodget_all_entities
Get all entities
src/graph/knowledge_graph.rs:344
↓ 6 callersFunctionget_database
Get a database instance - this is a convenience method that just calls Database::new
src/db.rs:18
↓ 6 callersMethodget_entities_by_type
Get entities by type
src/graph/knowledge_graph.rs:348
↓ 6 callersMethodget_outgoing_relationships
Get a relationship by ID Get all outgoing relationships from an entity
src/graph/relationship.rs:160
↓ 6 callersFunctionis_supported_source_file
Checks if the given path is a supported source file based on its extension.
src/parser/language_support/mod.rs:71
↓ 6 callersMethodparse_calls
Parses function and method calls from Rust source code # Arguments `content` - The Rust source code as a string # Returns `Result<Vec<CallReference>
src/parser/language_support/rust.rs:840
↓ 6 callersMethodparse_types
(&mut self, content: &str, file_path: &str)
src/parser/language_support/java.rs:548
↓ 6 callersMethodparse_types
(&mut self, content: &str, file_path: &str)
src/parser/language_support/python.rs:566
↓ 5 callersMethodadd_relationship
Add a relationship to the store
src/graph/relationship.rs:128
↓ 5 callersFunctioncreate_test_kg
Helper function to create a test knowledge graph
src/query/formatter.rs:343
↓ 5 callersMethodformat
Format query results (reference entities)
src/query/formatter.rs:50
↓ 5 callersMethodformat_boxed_entities
Format query results (boxed entities)
src/query/formatter.rs:66
↓ 5 callersFunctionget_parser_for_file
Get the appropriate parser for a given file Gets a parser that can handle the given file type # Arguments `file_path` - Path to the file that needs p
src/parser/language_support/mod.rs:430
↓ 5 callersMethodparse_functions
Parses JavaScript functions and methods from the source code. Extracts both standalone functions and class methods, transforming them into structured
src/parser/language_support/javascript.rs:288
↓ 4 callersFunctionchunk_file
(content: &str, chunk_size: usize, overlap: usize)
src/prompt/domain_extraction.rs:82
↓ 4 callersMethodcondition_to_sql
Convert a condition to SQL where clause with parameterized values
src/query/db_executor.rs:149
↓ 4 callersMethodextract_documentation
(&self, content: &str, location: &Location)
src/parser/language_support/java.rs:790
↓ 4 callersMethodextract_query_and_confidence
Extract the translated query and confidence from the LLM response
src/query/nl_translator.rs:103
↓ 4 callersMethodget_related_entities
Get related entities (outgoing)
src/graph/knowledge_graph.rs:414
↓ 4 callersMethodload_entities
Load all entities from the database
src/db.rs:531
↓ 4 callersMethodload_relationships
Load all relationships from the database
src/db.rs:570
↓ 4 callersMethodload_relationships_with_query
Generic method to load relationships with a custom query and parameters
src/db.rs:503
↓ 4 callersMethodparse_functions
Parses Python functions from source code. Extracts both top-level functions and methods in classes, identifying their structure, parameters, and rela
src/parser/language_support/python.rs:637
↓ 4 callersMethodparse_types
Parses JavaScript/TypeScript classes and types # Arguments `content` - The JavaScript/TypeScript source code as a string `file_path` - Path to the so
src/parser/language_support/javascript.rs:408
↓ 4 callersFunctionquery_llm
Async function calling the selected LLM API with error handling and retries
src/prompt/llm_integration.rs:96
↓ 3 callersMethodadd_boxed_entity
Add a boxed entity directly to the graph
src/graph/knowledge_graph.rs:97
↓ 3 callersFunctionbuild_domain_extraction_prompt
Build a prompt for domain entity extraction
src/prompt/domain_extraction.rs:260
↓ 3 callersFunctioncreate_test_boxed_entities
Helper function to create test boxed entities
src/query/formatter.rs:407
↓ 3 callersFunctioncreate_test_db
Helper function to create a test database with sample data
src/query/db_executor.rs:264
↓ 3 callersMethodextract_function_details
( &self, node: Node, content: &str, file_path: &str, )
src/parser/language_support/python.rs:22
↓ 3 callersFunctionextract_keywords_fallback
Fallback method to extract keywords from LLM response when JSON parsing fails
src/agent/relevance_agent.rs:82
↓ 3 callersMethodextract_parameters
(&self, node: Node, content: &str)
src/parser/language_support/javascript.rs:47
↓ 3 callersMethodextract_type_details
( &self, node: Node, content: &str, file_path: &str, )
src/parser/language_support/rust.rs:467
↓ 3 callersMethodextract_visibility
(&self, node: Node)
src/parser/language_support/rust.rs:47
↓ 3 callersMethodextract_visibility
(&self, node: Node, content: &str)
src/parser/language_support/java.rs:91
↓ 3 callersMethodgetGreeting
Returns a greeting message @return The greeting message
test/java/Test.java:27
↓ 3 callersFunctionget_llm_config
Get LLM configuration based on CLI arguments and environment variables
src/prompt/llm_integration.rs:57
↓ 3 callersFunctionget_request_headers
(config: &LlmConfig)
src/prompt/llm_integration.rs:260
↓ 3 callersMethodload_entity
Load a single entity by ID
src/db.rs:541
↓ 3 callersMethodparse_calls
Parses function calls from JavaScript/TypeScript source code # Arguments `content` - The JavaScript/TypeScript source code as a string `file_path` -
src/parser/language_support/javascript.rs:342
↓ 3 callersFunctionparse_entity_type
(pair: Pair<Rule>)
src/query/parser.rs:240
↓ 3 callersMethodparse_functions
Parses Java methods and constructors from source code. Extracts methods and constructors from classes and interfaces, identifying their structure, pa
src/parser/language_support/java.rs:503
↓ 3 callersFunctionprepare_request_body
(prompt: &str, config: &LlmConfig)
src/prompt/llm_integration.rs:146
↓ 3 callersFunctionrun
Main entry point for the indexing command
src/commands/index.rs:21
↓ 3 callersMethodsave_relationship
(&self, relationship: &Relationship)
src/db.rs:214
↓ 2 callersMethodadd_relationship
Add a relationship between entities Stores the relationship in the relationship store. The relationship will be automatically included in relationship
src/graph/knowledge_graph.rs:359
↓ 2 callersFunctionaggregate_and_rank_files
Aggregate entity scores into file-level scores
src/agent/relevance_agent.rs:269
↓ 2 callersMethodbuild_translation_prompt
Build a prompt for the LLM to translate a natural language query
src/query/nl_translator.rs:33
↓ 2 callersMethodcreate_specific_entity
Helper method to create a specific entity type from a BaseEntity and data_json
src/db.rs:301
↓ 2 callersFunctiondeduplicate_entities
(entities: Vec<DomainEntity>)
src/prompt/domain_extraction.rs:104
↓ 2 callersMethodescape_csv_value
Escape a CSV value
src/query/formatter.rs:326
↓ 2 callersMethodextract_function_details
( &self, node: Node, content: &str, file_path: &str, )
src/parser/language_support/rust.rs:118
↓ 2 callersMethodextract_parameters
(&self, node: Node, content: &str)
src/parser/language_support/rust.rs:62
↓ 2 callersMethodextract_parameters
(&self, node: Node, content: &str)
src/parser/language_support/java.rs:206
↓ 2 callersMethodextract_type_details
( &self, node: Node, content: &str, file_path: &str, )
src/parser/language_support/python.rs:493
↓ 2 callersMethodfind_nested_functions
( &self, node: Node, content: &str, file_path: &str, parent_entity_nam
src/parser/language_support/python.rs:448
↓ 2 callersMethodfind_nested_types
(&self, node: Node, content: &str, file_path: &str)
src/parser/language_support/rust.rs:415
↓ 2 callersMethodget_domain_concepts
Get domain concepts
src/graph/knowledge_graph.rs:492
↓ 2 callersMethodinfer_domain_concepts
Infers domain concepts from code # Arguments `content` - The source code as a string `file_path` - Path to the source file (for error reporting and c
src/parser/language_support/mod.rs:320
↓ 2 callersMethodload_entities_with_query
Generic method to load entities with a custom query and parameters
src/db.rs:471
↓ 2 callersMethodlocation
(&self)
src/graph/entity.rs:187
↓ 2 callersMethodparse_calls
(&mut self, content: &str, file_path: &str)
src/parser/language_support/java.rs:587
↓ 2 callersMethodparse_calls
(&mut self, content: &str, file_path: &str)
src/parser/language_support/python.rs:731
↓ 2 callersFunctionparse_condition
(pair: Pair<Rule>)
src/query/parser.rs:282
↓ 2 callersFunctionprocess_llm_prompt
(prompt: &str, config: &LlmConfig)
src/prompt/domain_extraction.rs:116
↓ 2 callersFunctionprocess_query_with_db
Process a query directly using the database without loading everything into memory
src/query/mod.rs:15
↓ 2 callersMethodrow_to_base_entity
Helper method to parse a database row into a BaseEntity
src/db.rs:268
↓ 2 callersMethodsave_all_in_transaction
Save multiple entities and relationships in a single transaction
src/db.rs:898
↓ 2 callersMethodserialize_data
(&self)
src/graph/entity.rs:269
↓ 2 callersMethodtranslate
Translate a natural language query to Ummon query language
src/query/nl_translator.rs:21
↓ 2 callersMethodvalidate_attribute_name
Validate an attribute name against the allowed column whitelist
src/query/db_executor.rs:243
↓ 1 callersMethodaddItem
Add an item to the collection @param item The item to add @return true if added successfully @throws IllegalStateException if collection is full
test/java/ComplexExample.java:37
↓ 1 callersFunctionbuild_context
(db: &Database, instruction: &str)
src/prompt/context_builder.rs:5
↓ 1 callersMethodcalculateAverage
(List<U> numbers)
test/java/ComplexExample.java:114
next →1–100 of 347, ranked by callers