MCPcopy Create free account

hub / github.com/amrit110/oli / functions

Functions299 in github.com/amrit110/oli

↓ 150 callersMethodclone
(&self)
src/communication/rpc.rs:120
↓ 42 callersMethodas_str
Get a string representation of the log level
src/app/logger.rs:37
↓ 16 callersMethodlog
(&mut self, _message: &str)
src/app/core.rs:1110
↓ 14 callersMethoddetermine_relevant_files
Determine which files to parse based on user query # Arguments - `query` - User query string # Returns - `Vec<String>` - List of glob patterns for r
src/tools/code/parser.rs:1677
↓ 14 callersFunctionsetup_test_directory
()
tests/tools/fs/test_search.rs:8
↓ 10 callersFunctioncreate_test_file
Helper function to create a test file with content
tests/tools/fs/test_file_ops.rs:8
↓ 10 callersMethodextract_search_terms
Extract search terms from a query for grep search # Arguments - `query` - User query string # Returns - `Vec<String>` - Extracted search terms
src/tools/code/parser.rs:1370
↓ 9 callersMethodclear
Clear all messages in the session
src/apis/api_client.rs:112
↓ 9 callersFunctioncreateMessages
( messages: Array<{ role: MessageRole; content: string }>, )
ui/src/utils/messageUtils.ts:41
↓ 9 callersMethodregister_method
Register a method handler
src/communication/rpc.rs:172
↓ 9 callersMethodsend_notification
Send a notification event - will send to all subscribers of this event type
src/communication/rpc.rs:191
↓ 8 callersMethodcall
( method: string, params: Record<string, unknown> = {}, )
ui/src/services/backend.ts:94
↓ 8 callersFunctionget_global_rpc_server
()
src/communication/rpc.rs:136
↓ 8 callersMethodupdate_dimensions
Update the content and viewport sizes
src/app/utils.rs:28
↓ 8 callersFunctionwrite_file
(path: P, content: &str)
tests/tools/fs/test_search.rs:145
↓ 6 callersMethodadd_assistant_message
Add an assistant message to the conversation
src/apis/api_client.rs:77
↓ 6 callersMethodadd_user_message
(&mut self, content: String)
src/agent/executor.rs:112
↓ 6 callersMethodcurrent_task_mut
Get the current task as mutable if any
src/app/core.rs:903
↓ 6 callersMethodscroll_up
Scroll up by the specified amount
src/app/utils.rs:72
↓ 5 callersMethodcomplete
Mark task as completed
src/app/core.rs:74
↓ 5 callersMethodparse_file
Parses a single file using tree-sitter and generates an AST # Arguments - `path` - Path to the file to parse # Returns - `Result<CodeAST>` - The abs
src/tools/code/parser.rs:528
↓ 5 callersMethodwith_system_message
Add a system message that will be prepended to the conversation
src/apis/api_client.rs:66
↓ 4 callersMethodadd_message
Add a message to the conversation
src/apis/api_client.rs:82
↓ 4 callersMethodmax_scroll
Get the maximum valid scroll position
src/app/utils.rs:42
↓ 4 callersMethodscroll_down
Scroll down by the specified amount
src/app/utils.rs:55
↓ 3 callersMethodcomplete_with_tools
( &self, messages: Vec<Message>, options: CompletionOptions, tool_results: Opt
src/apis/api_client.rs:210
↓ 3 callersMethodevent_sender
Get event sender for emitting events
src/communication/rpc.rs:186
↓ 3 callersFunctionformat_log_with_color
Format a log message with color for terminal display
src/app/logger.rs:66
↓ 3 callersMethodfrom
(err: std::io::Error)
src/errors.rs:48
↓ 3 callersFunctionget_available_models
()
src/models.rs:21
↓ 3 callersFunctionisCommand
(text: string)
ui/src/utils/commandUtils.ts:62
↓ 3 callersMethodpage_up
Page up (scroll up by viewport height)
src/app/utils.rs:94
↓ 3 callersMethodparse_codebase
Parse an entire codebase and generate ASTs for selected files # Arguments - `root_dir` - Root directory of the codebase - `query` - User query to det
src/tools/code/parser.rs:1430
↓ 3 callersMethodscroll_to_bottom
Scroll to the bottom of the content
src/app/utils.rs:87
↓ 2 callersMethodadd_metadata
Add metadata to the tool execution
src/app/core.rs:202
↓ 2 callersMethodadd_system_message
(&mut self, content: String)
src/agent/executor.rs:108
↓ 2 callersMethodcomplete_current_task
Complete the current task
src/app/core.rs:927
↓ 2 callersMethodconvert_messages
(&self, messages: Vec<Message>)
src/apis/anthropic.rs:231
↓ 2 callersMethodconvert_messages
(&self, messages: Vec<Message>)
src/apis/openai.rs:125
↓ 2 callersMethodconvert_messages
(&self, messages: Vec<Message>)
src/apis/ollama.rs:205
↓ 2 callersFunctioncreate_mock_client_enum
Helper function to create a mock ApiClientEnum for testing
tests/apis/test_api_client_enum.rs:13
↓ 2 callersFunctioncreate_mock_openai_enum
Test helper to create a mock OpenAI client enum
tests/apis/test_api_client_enum.rs:26
↓ 2 callersMethodcreate_simplified_ast
Create a simplified AST directly from the source code This is a fallback method when tree-sitter parsing doesn't work # Arguments - `path` - Path to
src/tools/code/parser.rs:1069
↓ 2 callersMethodemitEvent
(event: string, data: Record<string, unknown> = {})
ui/src/services/backend.ts:121
↓ 2 callersMethodexecute
(&self, query: &str)
src/agent/core.rs:137
↓ 2 callersMethodextract_node_name
Extracts a name from a node based on common patterns # Arguments - `node` - Node to extract name from - `source` - Source code # Returns - `Option<S
src/tools/code/parser.rs:888
↓ 2 callersMethodextract_system_message
(&self, messages: &[Message])
src/apis/anthropic.rs:224
↓ 2 callersMethodfail
Mark task as failed
src/app/core.rs:96
↓ 2 callersMethodfail_current_task
Mark the current task as failed
src/app/core.rs:935
↓ 2 callersMethodgenerate_llm_friendly_ast
Generate a structured AST optimized for LLM consumption # Arguments - `root_dir` - Root directory of the codebase or path to a single file - `query`
src/tools/code/parser.rs:1464
↓ 2 callersMethodget_language
Gets a tree-sitter language for parsing # Arguments - `language_name` - Name of the language to retrieve # Returns - `Option<Language>` - The tree-s
src/tools/code/parser.rs:467
↓ 2 callersMethodget_messages_for_api
Get all messages for the API call, including the system message if present
src/apis/api_client.rs:97
↓ 2 callersFunctionhandleSubmit
(value: string)
ui/src/components/ChatInterface.tsx:440
↓ 2 callersFunctionprocessUserMessage
( input: string, state: AppState, setState: React.Dispatch<React.SetStateAction<AppState>>, backend: B
ui/src/utils/commandHandlers.ts:193
↓ 2 callersMethodreplace_with_summary
Replace all messages with a single summary message
src/apis/api_client.rs:88
↓ 2 callersMethodsend_request_with_retry
Helper function to send a request with retry logic for overload errors
src/apis/anthropic.rs:110
↓ 2 callersMethodtoggle_log_view
(&mut self)
tests/app/test_logger.rs:30
↓ 2 callersMethodwith_progress_sender
(mut self, sender: mpsc::Sender<String>)
src/agent/core.rs:64
↓ 1 callersMethodadd_tool_use
Increment tool count
src/app/core.rs:105
↓ 1 callersMethodadd_user_message
Add a user message to the conversation
src/apis/api_client.rs:72
↓ 1 callersMethodclamp_position
Ensure scroll position is within valid bounds
src/app/utils.rs:47
↓ 1 callersMethodclear_history
(&mut self)
src/agent/core.rs:69
↓ 1 callersMethodconversation_char_count
(&self)
src/app/history.rs:162
↓ 1 callersMethodconvert_tool_definitions
( &self, tools: Vec<crate::apis::api_client::ToolDefinition>, )
src/apis/anthropic.rs:242
↓ 1 callersMethodconvert_tool_definitions
(&self, tools: Vec<ToolDefinition>)
src/apis/openai.rs:140
↓ 1 callersMethodconvert_tool_definitions
(&self, tools: Vec<ToolDefinition>)
src/apis/ollama.rs:220
↓ 1 callersFunctioncopyDirSync
(src, dest)
scripts/install.js:113
↓ 1 callersFunctioncreateMessage
( role: MessageRole, content: string, taskId?: string, tool?: string, )
ui/src/utils/messageUtils.ts:20
↓ 1 callersFunctioncreateMessageId
(role: MessageRole)
ui/src/utils/messageUtils.ts:8
↓ 1 callersMethodcreate_task
Create a new task and set it as current
src/app/core.rs:885
↓ 1 callersMethoddetect_language
Determines the programming language from a file extension # Arguments - `path` - Path to the file # Returns - `Option<String>` - Language name if de
src/tools/code/parser.rs:501
↓ 1 callersMethoddisplay_to_session_messages
(&self, display_messages: &[String])
src/app/history.rs:190
↓ 1 callersFunctionexecuteCommand
( command: string, state: AppState, setState: React.Dispatch<React.SetStateAction<AppState>>, backend:
ui/src/utils/commandHandlers.ts:165
↓ 1 callersMethodextract_important_nodes
Extract important nodes from a tree-sitter syntax tree using generic traversal # Arguments - `node` - Root node to traverse - `source` - Source code
src/tools/code/parser.rs:986
↓ 1 callersMethodextract_nested_structures
Extracts nested structures from a node to build a hierarchical AST # Arguments - `source_code` - Source code of the file - `node` - Current node to p
src/tools/code/parser.rs:801
↓ 1 callersMethodfind_relevant_files
Use search tools to find relevant files for a query # Arguments - `root_dir` - Root directory to search in - `query` - User query to determine releva
src/tools/code/parser.rs:1238
↓ 1 callersFunctionformatMessage
(message: Message)
ui/src/components/ChatInterface.tsx:486
↓ 1 callersFunctionformat_log
Format a log message with level, timestamp, and message
src/app/logger.rs:58
↓ 1 callersMethodgenerate_summary_with_agent
Internal method to generate a summary with the agent
src/app/history.rs:252
↓ 1 callersFunctiongetHelpMessage
(version: string)
ui/src/utils/commandUtils.ts:30
↓ 1 callersFunctiongetMessageStyle
(role: string)
ui/src/components/ChatInterface.tsx:470
↓ 1 callersFunctionget_available_commands
Get available commands
src/app/commands.rs:20
↓ 1 callersFunctionget_available_ollama_models
()
src/models.rs:71
↓ 1 callersMethodget_conversation_history
(&self)
src/agent/executor.rs:42
↓ 1 callersMethodget_query
Gets a tree-sitter query for a language # Arguments - `language_name` - Name of the language to get a query for # Returns - `Option<Query>` - A tree
src/tools/code/parser.rs:480
↓ 1 callersFunctionget_tool_definitions
()
src/agent/tools.rs:323
↓ 1 callersFunctionhandleCommandSelect
(command: string)
ui/src/components/ChatInterface.tsx:414
↓ 1 callersMethodhas_agent_support
(&self)
src/models.rs:13
↓ 1 callersMethodhas_subscribers
(&self, event_type: &str)
src/communication/rpc.rs:89
↓ 1 callersMethodinitialize_with_api_key
(&mut self, api_key: String)
src/agent/core.rs:102
↓ 1 callersFunctioninstall
()
scripts/install.js:15
↓ 1 callersMethodis_in_progress
Check if this task is still in progress
src/app/state.rs:107
↓ 1 callersMethodis_in_progress
Check if this task is still in progress
src/app/core.rs:123
↓ 1 callersMethodkill
()
ui/src/services/backend.ts:116
↓ 1 callersMethodlist_models
(&self)
src/apis/ollama.rs:234
↓ 1 callersMethodmessage_count
Get the current number of messages
src/apis/api_client.rs:117
↓ 1 callersMethodmight_need_codebase_parsing
Analyze conversation to determine if code parsing might be needed Uses the LLM directly to make this determination rather than keyword matching
src/agent/executor.rs:48
↓ 1 callersMethodpage_down
Page down (scroll down by viewport height)
src/app/utils.rs:99
↓ 1 callersFunctionparse_tool_call
(name: &str, args: &Value)
src/agent/executor.rs:763
↓ 1 callersMethodprocess_important_node
Process an individual node that has been identified as important # Arguments - `node` - Node to process - `source` - Source code text - `language` -
src/tools/code/parser.rs:1020
next →1–100 of 299, ranked by callers