Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Christoph-D/Japanese-Tools
/ functions
Functions
254 in github.com/Christoph-D/Japanese-Tools
⨍
Functions
254
◇
Types & classes
58
↓ 49 callers
Method
get
(&self, key: &str)
ai/src/main.rs:188
↓ 22 callers
Method
add_to_history
Add to the history of the given user.
ai/src/memory.rs:200
↓ 19 callers
Function
parse_command
(command: &str, args: &str, sender: &str)
ai/src/main.rs:414
↓ 15 callers
Method
select_model_for_channel
( &self, flags: &[String], channel_default_model_id: &str, )
ai/src/model.rs:376
↓ 13 callers
Method
add_user
Add a user as a singleton group if they don't already exist
ai/src/memory/user_groups.rs:126
↓ 12 callers
Method
send
(&mut self, command: Command)
ircbot/src/bot.rs:28
↓ 11 callers
Method
union
Merge the groups containing user1 and user2
ai/src/memory/user_groups.rs:140
↓ 10 callers
Method
get_channel_model_temperature
( &self, channel_name: &str, provider: &str, model_id: &str, )
ai/src/model.rs:284
↓ 8 callers
Method
find_group
Find the group ID that a user belongs to
ai/src/memory/user_groups.rs:121
↓ 8 callers
Function
process_command
( command: &Command, receiver: &str, memory: &mut Memory, )
ai/src/main.rs:492
↓ 7 callers
Function
detect_shortlinks
(query: &str)
ai/src/compilerx.rs:171
↓ 7 callers
Method
get_joined_users
Get all users joined with the given user including the user themselves
ai/src/memory.rs:317
↓ 6 callers
Function
create_test_config_with_channel
( channel_name: &str, system_prompt: Option<String>, )
ai/src/prompt.rs:99
↓ 6 callers
Method
debug_out
(&self, line: &str)
ircbot/src/bot.rs:146
↓ 6 callers
Method
get_channel_default_model
(&self, channel_name: &str)
ai/src/model.rs:277
↓ 6 callers
Function
get_coordinates
(city: &str, base_url: &str)
ai/src/weather.rs:139
↓ 6 callers
Method
user_history
Returns matching messages in chronological order with timestamps.
ai/src/memory.rs:270
↓ 5 callers
Function
setup_memory
()
ai/src/memory.rs:344
↓ 5 callers
Function
setup_model_list
()
ai/src/model.rs:432
↓ 4 callers
Function
build_prompt
Builds the system prompt from an optional per-channel prompt and the history of all users in the same union-set.
ai/src/prompt.rs:30
↓ 4 callers
Function
get_current_timestamp
()
ai/src/compilerx.rs:241
↓ 4 callers
Method
get_group_members
Get all users in the same group as the given user
ai/src/memory/user_groups.rs:163
↓ 4 callers
Function
get_weather
(city: &str)
ai/src/weather.rs:59
↓ 4 callers
Method
join_users
Join two users so they share memory
ai/src/memory.rs:285
↓ 4 callers
Function
transform_query
( query: &str, info: &ShortlinkInfo, compiler_cache: &CompilerCache, compilation_result: &Opti
ai/src/compilerx.rs:372
↓ 3 callers
Method
clear_history_for_joined_users
Clear the history of all users joined with the given user.
ai/src/memory.rs:227
↓ 3 callers
Method
execute_response
( &mut self, response: Response, response_target: &str, )
ircbot/src/bot.rs:235
↓ 3 callers
Function
extract_flags
Extracts known flags from the query. Returns the flags and the remaining query. Example: Input: [Flag{name:"foo", requires_value:false}, Flag{name:"t"
ai/src/main.rs:216
↓ 3 callers
Method
get_channel_system_prompt
(&self, channel_name: &str)
ai/src/model.rs:271
↓ 3 callers
Function
get_system_prompt
Gets the system prompt for a channel, falling back to default if not configured.
ai/src/prompt.rs:80
↓ 3 callers
Function
get_weather_data
(lat: f64, lon: f64, base_url: &str)
ai/src/weather.rs:181
↓ 3 callers
Function
load_compiler_cache
(cache_path: &Path)
ai/src/compilerx.rs:253
↓ 3 callers
Function
load_group_sets
( connection: &Connection, now: OffsetDateTime, )
ai/src/memory.rs:109
↓ 3 callers
Method
unicode_byte_limit
(&self, max_bytes: usize)
ai/src/unicodebytelimit.rs:7
↓ 3 callers
Function
validate_shortlink_info
(info: &ShortlinkInfo)
ai/src/compilerx.rs:222
↓ 2 callers
Method
default_model
(&self)
ai/src/model.rs:368
↓ 2 callers
Function
default_prompt
()
ai/src/prompt.rs:17
↓ 2 callers
Method
extract_timer_commands
( &mut self, output: &str, script: &str, sender: &str, room: &str,
ircbot/src/bot.rs:441
↓ 2 callers
Function
get_local_time
(timezone: &str, utc_now: OffsetDateTime)
ai/src/weather.rs:126
↓ 2 callers
Method
handle_topic_change
(&mut self, channel: &str, topic: &str)
ircbot/src/bot.rs:229
↓ 2 callers
Function
limit_length
Safely limits the length of a unicode string.
ircbot/src/bot.rs:625
↓ 2 callers
Method
list_model_flags
(&self)
ai/src/model.rs:420
↓ 2 callers
Method
merge
(&mut self, other: GroupInfo)
ai/src/memory/user_groups.rs:22
↓ 2 callers
Function
next_midnight
()
ircbot/src/bot.rs:637
↓ 2 callers
Method
print_magic_key
(&self)
ircbot/src/bot.rs:137
↓ 2 callers
Method
remove_user
Remove a user from their group, making them a singleton
ai/src/memory/user_groups.rs:178
↓ 2 callers
Method
run_script
( &self, path: &str, argument: &str, sender: &str, response_target: &s
ircbot/src/bot.rs:473
↓ 2 callers
Function
save_compiler_cache
(cache: &CompilerCache, cache_path: &Path)
ai/src/compilerx.rs:263
↓ 2 callers
Function
save_group_sets
( connection: &Connection, group_sets: &HashMap<String, GroupSets>, )
ai/src/memory.rs:160
↓ 2 callers
Function
usage
(models: &ModelList, config: &Config, channel: &str)
ai/src/main.rs:118
↓ 2 callers
Function
weather_error_prompt
()
ai/src/weather.rs:258
↓ 1 callers
Method
add_timer
( &mut self, delay_seconds: u64, script: &str, argument: &str, sender:
ircbot/src/bot.rs:373
↓ 1 callers
Method
add_tokenizer
(mut self, key: &str, value: &str)
tokenizer/src/main.rs:17
↓ 1 callers
Function
arbitrary_user
()
ai/src/memory/user_groups/tests.rs:332
↓ 1 callers
Function
call_api
( model: &Model, prompt: &Vec<Message>, temperature: &Option<f64>, config: &Config, channe
ai/src/main.rs:41
↓ 1 callers
Method
clear_history_for_users
Clear the history for a list of users.
ai/src/memory.rs:237
↓ 1 callers
Function
compile_shortlink_code
(info: &ShortlinkInfo)
ai/src/compilerx.rs:314
↓ 1 callers
Method
daily_jobs
(&mut self)
ircbot/src/bot.rs:571
↓ 1 callers
Function
date_to_weekday
(date: &str)
ai/src/weather.rs:119
↓ 1 callers
Method
default_model_name
(&self)
ai/src/model.rs:372
↓ 1 callers
Method
do_special_command
(&self, cmd: &str)
ircbot/src/bot.rs:327
↓ 1 callers
Method
ensureOpen
(self)
reading/read.py:28
↓ 1 callers
Method
expire_old_groups
(&mut self, now: OffsetDateTime)
ai/src/memory/user_groups.rs:102
↓ 1 callers
Function
fetch_compilers_from_api
()
ai/src/compilerx.rs:270
↓ 1 callers
Function
fetch_shortlink_info
(id: &str)
ai/src/compilerx.rs:183
↓ 1 callers
Function
fixExpr
(expr)
reading/read.py:46
↓ 1 callers
Function
forecast_prompt
()
ai/src/weather.rs:250
↓ 1 callers
Function
format_forecast
(daily: &Daily)
ai/src/weather.rs:82
↓ 1 callers
Function
format_prompt
(prompt: &str)
ai/src/prompt.rs:25
↓ 1 callers
Function
format_weather_code
(code: i32)
ai/src/weather.rs:208
↓ 1 callers
Method
generate_response
( &mut self, message: &str, message_data: &MessageMetadata, )
ircbot/src/bot.rs:265
↓ 1 callers
Method
get_channel_model_timeout
( &self, channel_name: &str, provider: &str, model_id: &str, )
ai/src/model.rs:297
↓ 1 callers
Method
get_groups
(&self)
ai/src/memory/user_groups.rs:203
↓ 1 callers
Method
get_joined_users_excluding_self
Get all users joined with the given user excluding the user themselves
ai/src/memory.rs:328
↓ 1 callers
Method
get_options
(&self)
tokenizer/src/main.rs:22
↓ 1 callers
Function
get_readings
(expr)
reading/read.py:107
↓ 1 callers
Method
get_timeout
(&self, model: &Model, channel_name: &str)
ai/src/model.rs:314
↓ 1 callers
Method
get_user_to_group_mappings
(&self)
ai/src/memory/user_groups.rs:199
↓ 1 callers
Method
handle_privmsg
( &mut self, message: &str, message_data: &MessageMetadata, )
ircbot/src/bot.rs:220
↓ 1 callers
Function
is_cache_expired
(cache: &CompilerCache)
ai/src/compilerx.rs:248
↓ 1 callers
Method
is_compiler_explorer_enabled
(&self)
ai/src/model.rs:310
↓ 1 callers
Function
load_history
( connection: &mut Connection, now: OffsetDateTime, )
ai/src/memory.rs:68
↓ 1 callers
Function
locate_config_path
()
ai/src/main.rs:161
↓ 1 callers
Method
make_user_solo
Remove a user from their joined group, making them solo
ai/src/memory.rs:301
↓ 1 callers
Method
next_word_of_the_day
(&self, old_word: &str)
ircbot/src/bot.rs:542
↓ 1 callers
Function
parse_command_line
( query: &str, models: &ModelList, config: &Config, channel: &str, )
ai/src/main.rs:261
↓ 1 callers
Method
parse_input
Returns (tokenizer, rest)
tokenizer/src/main.rs:27
↓ 1 callers
Method
parse_message
(&self, message: &str)
ircbot/src/bot.rs:363
↓ 1 callers
Function
parse_server_address
(server: &str)
ircbot/src/main.rs:33
↓ 1 callers
Function
process_shortlinks
(query: &str, config_path: &Path)
ai/src/compilerx.rs:147
↓ 1 callers
Function
refresh_compiler_cache
(cache_path: &Path)
ai/src/compilerx.rs:304
↓ 1 callers
Function
run
(input: &Input)
ai/src/main.rs:570
↓ 1 callers
Function
run_bot
( config: irc::client::data::Config, main_channel: &str, shutdown_notify: Arc<Notify>, )
ircbot/src/main.rs:122
↓ 1 callers
Function
setup
()
ai/src/main.rs:340
↓ 1 callers
Method
stream
(&mut self)
ircbot/src/bot.rs:31
↓ 1 callers
Function
textdomain_dir
()
ircbot/src/main.rs:42
↓ 1 callers
Function
textdomain_dir
()
ai/src/main.rs:193
↓ 1 callers
Method
toHiragana
(self, expr)
reading/read.py:37
↓ 1 callers
Function
token_to_hex_string
(tokenizer: &Tokenizer, token_id: u32)
tokenizer/src/main.rs:114
↓ 1 callers
Function
usage_for_command
(command: &CommandForHelp)
ai/src/main.rs:141
next →
1–100 of 254, ranked by callers