Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StepfenShawn/kota
/ functions
Functions
196 in github.com/StepfenShawn/kota
⨍
Functions
196
◇
Types & classes
66
Method
definition
(&self, _prompt: String)
src/kota_code/tools/grep_search.rs:46
Method
definition
(&self, _prompt: String)
src/kota_code/tools/write_file.rs:32
Method
definition
(&self, _prompt: String)
src/kota_code/tools/execute_bash_command.rs:31
Method
definition
(&self, _prompt: String)
src/kota_code/tools/edit_file.rs:34
Method
definition
(&self, _prompt: String)
src/kota_code/tools/create_directory.rs:31
Method
definition
( &'a self, _prompt: String, )
src/kota_code/runtime/dyn_tools_loader/dyn_tool.rs:59
Method
delete_session
(&self)
src/kota_code/context.rs:190
Method
from
(msg: &Message)
src/kota_code/context.rs:40
Method
from_lua_file
Load configuration from a Lua file # Arguments `config_path` - Path to the Lua configuration file # Returns Returns a KotaConfig with parsed value
src/kota_code/runtime/config.rs:51
Method
get_all
Get all tools as a reference
src/kota_code/runtime/tool_registry.rs:31
Method
get_all_mut
Get all tools as a mutable reference
src/kota_code/runtime/tool_registry.rs:36
Method
get_enhanced_preamble
获取增强的 preamble
src/kota_code/skills.rs:124
Method
get_messages_mut
(&mut self)
src/kota_code/context.rs:120
Method
get_provider_from_model
(model_name: &str)
src/kota_code/agent/mod.rs:449
Method
get_server_info
Get information about a specific server
src/kota_code/mcp/mod.rs:67
Method
has_server
Check if a server is connected
src/kota_code/mcp/mod.rs:140
Method
highlight
(&self, line: &'l str, pos: usize)
src/kota_cli/tab.rs:101
Method
highlight_char
(&self, line: &str, pos: usize, forced: bool)
src/kota_cli/tab.rs:118
Method
highlight_hint
(&self, hint: &'h str)
src/kota_cli/tab.rs:97
Method
highlight_prompt
( &'s self, prompt: &'p str, default: bool, )
src/kota_cli/tab.rs:85
Method
hint
(&self, line: &str, pos: usize, ctx: &Context<'_>)
src/kota_cli/tab.rs:79
Method
list_all_tools
List all servers and their tools
src/kota_code/mcp/mod.rs:89
Method
list_servers
Get list of all connected servers
src/kota_code/mcp/mod.rs:134
Method
list_sessions
(&self)
src/kota_code/context.rs:170
Method
list_skills
(&self)
src/kota_code/skills.rs:180
Method
load_tools
Load all Lua tools from .kota/tools/mod.lua
src/kota_code/runtime/dyn_tools_loader/mod.rs:14
Method
lua_table_to_json
Convert Lua table to serde_json::Value
src/kota_code/runtime/dyn_tools_loader/mod.rs:69
Method
lua_value_to_json
Convert Lua value to serde_json::Value
src/kota_code/runtime/dyn_tools_loader/mod.rs:89
Function
main
()
src/main.rs:41
Method
name
(&self)
src/kota_code/runtime/dyn_tools_loader/dyn_tool.rs:55
Method
new
( api_key: String, api_base: String, model_name: String, context: ContextManag
src/kota_cli/mod.rs:36
Method
new
Create a new command registry from config
src/kota_cli/command_registry.rs:15
Method
new
()
src/kota_code/skills.rs:25
Method
new
(title: String)
src/kota_code/plan.rs:28
Method
new
(storage_dir: P, session_id: String)
src/kota_code/context.rs:87
Method
new
()
src/kota_code/tools/scan_codebase.rs:156
Method
new
()
src/kota_code/tools/delete_file.rs:83
Method
new
(manager: PlanManager)
src/kota_code/tools/update_plan.rs:38
Method
new
()
src/kota_code/tools/grep_search.rs:136
Method
new
()
src/kota_code/tools/write_file.rs:94
Method
new
()
src/kota_code/tools/execute_bash_command.rs:84
Method
new
()
src/kota_code/tools/read_file.rs:97
Method
new
()
src/kota_code/tools/edit_file.rs:132
Method
new
()
src/kota_code/tools/create_directory.rs:103
Method
new
Create a new MCP manager
src/kota_code/mcp/mod.rs:25
Method
new
Create a new MCP client by connecting to a server via child process # Arguments `command` - The command to execute (e.g., "uvx", "npx") `args` - Arg
src/kota_code/mcp/client.rs:35
Method
new
(session_id: String)
src/kota_code/runtime/hooks.rs:11
Method
new
Create a new empty tool registry
src/kota_code/runtime/tool_registry.rs:9
Method
new
( name: String, description: String, parameters: JsonValue, lua_code: Vec<u8>,
src/kota_code/runtime/dyn_tools_loader/dyn_tool.rs:24
Method
new
Create a new agent builder # Arguments `api_key` - API key for the LLM provider `model_name` - Model name (e.g., "gpt-4", "claude-3-5-sonnet", "deep
src/kota_code/agent/mod.rs:307
Method
parse_from_lua
(lua: &Lua, config: &mut KotaConfig)
src/kota_code/runtime/config.rs:96
Method
parse_skill_md
解析 SKILL.md 文件
src/kota_code/skills.rs:59
Method
parse_status
(status_str: &str)
src/kota_code/tools/update_plan.rs:42
Method
refresh_server_tools
Refresh tools list for a specific server
src/kota_code/mcp/mod.rs:123
Method
remove_server
Remove an MCP server connection
src/kota_code/mcp/mod.rs:56
Method
remove_skill
删除技能
src/kota_code/skills.rs:161
Method
scan_directory
( path: &Path, prefix: &str, max_depth: usize, current_depth: usize, )
src/kota_code/tools/scan_codebase.rs:25
Method
take_all
Get all tools by taking ownership (empties the registry)
src/kota_code/runtime/tool_registry.rs:26
Function
test_context_manager_basic_operations
()
tests/test_context.rs:6
Function
test_context_manager_max_messages
()
tests/test_context.rs:25
Function
test_edit_file_add_lines
()
tests/tools/test_edit_file.rs:29
Function
test_edit_file_complex_patch
()
tests/tools/test_edit_file.rs:79
Function
test_edit_file_directory_instead_of_file
()
tests/tools/test_edit_file.rs:120
Function
test_edit_file_empty_file
()
tests/tools/test_edit_file.rs:151
Function
test_edit_file_invalid_patch_format
()
tests/tools/test_edit_file.rs:136
Function
test_edit_file_multiline_context
()
tests/tools/test_edit_file.rs:194
Function
test_edit_file_nonexistent_file
()
tests/tools/test_edit_file.rs:107
Function
test_edit_file_remove_lines
()
tests/tools/test_edit_file.rs:52
Function
test_edit_file_simple_replacement
()
tests/tools/test_edit_file.rs:7
Function
test_edit_file_single_line_replacement
()
tests/tools/test_edit_file.rs:172
Function
test_edit_file_tool_definition
()
tests/tools/test_edit_file.rs:219
Function
test_function_command
()
tests/test_command.rs:52
Function
test_loaded_tool_execution
()
tests/test_lua_dyn_tool.rs:210
Function
test_lua_config_parsing
()
tests/lua_config_test.rs:6
Function
test_lua_config_with_env_var
()
tests/lua_config_test.rs:37
Function
test_lua_dyn_tool_array_handling
()
tests/test_lua_dyn_tool.rs:113
Function
test_lua_dyn_tool_basic_call
()
tests/test_lua_dyn_tool.rs:8
Function
test_lua_dyn_tool_complex_object
()
tests/test_lua_dyn_tool.rs:260
Function
test_lua_dyn_tool_error_handling
()
tests/test_lua_dyn_tool.rs:160
Function
test_lua_dyn_tool_string_manipulation
()
tests/test_lua_dyn_tool.rs:54
Function
test_lua_tool_loader_empty_directory
()
tests/test_lua_dyn_tool.rs:197
Function
test_mcp_manager_creation
()
src/kota_code/mcp/mod.rs:168
Function
test_missing_config_file
()
tests/lua_config_test.rs:67
Function
test_overwrite_existing_file
()
tests/tools/test_write_file.rs:38
Function
test_parse_command_input
()
tests/test_command.rs:12
Function
test_read_existing_file
()
tests/tools/test_read_file.rs:7
Function
test_read_nonexistent_file
()
tests/tools/test_read_file.rs:29
Function
test_server_check
()
src/kota_code/mcp/mod.rs:174
Function
test_string_command
()
tests/test_command.rs:39
Function
test_write_new_file
()
tests/tools/test_write_file.rs:8
Method
tool_name
(&self)
src/kota_code/runtime/dyn_tools_loader/dyn_tool.rs:38
Method
tool_registry
Get the tool registry
src/kota_code/agent/mod.rs:112
Method
tool_registry_mut
Get mutable tool registry
src/kota_code/agent/mod.rs:117
Method
validate
( &self, ctx: &mut validate::ValidationContext, )
src/kota_cli/tab.rs:124
Method
validate_while_typing
(&self)
src/kota_cli/tab.rs:131
Method
with_plan_manager
Set a custom plan manager for task management # Arguments `manager` - A PlanManager instance for managing tasks and plans
src/kota_code/agent/mod.rs:325
← previous
101–196 of 196, ranked by callers