MCPcopy Create free account

hub / github.com/Christoph-D/Japanese-Tools / functions

Functions254 in github.com/Christoph-D/Japanese-Tools

↓ 49 callersMethodget
(&self, key: &str)
ai/src/main.rs:188
↓ 22 callersMethodadd_to_history
Add to the history of the given user.
ai/src/memory.rs:200
↓ 19 callersFunctionparse_command
(command: &str, args: &str, sender: &str)
ai/src/main.rs:414
↓ 15 callersMethodselect_model_for_channel
( &self, flags: &[String], channel_default_model_id: &str, )
ai/src/model.rs:376
↓ 13 callersMethodadd_user
Add a user as a singleton group if they don't already exist
ai/src/memory/user_groups.rs:126
↓ 12 callersMethodsend
(&mut self, command: Command)
ircbot/src/bot.rs:28
↓ 11 callersMethodunion
Merge the groups containing user1 and user2
ai/src/memory/user_groups.rs:140
↓ 10 callersMethodget_channel_model_temperature
( &self, channel_name: &str, provider: &str, model_id: &str, )
ai/src/model.rs:284
↓ 8 callersMethodfind_group
Find the group ID that a user belongs to
ai/src/memory/user_groups.rs:121
↓ 8 callersFunctionprocess_command
( command: &Command, receiver: &str, memory: &mut Memory, )
ai/src/main.rs:492
↓ 7 callersFunctiondetect_shortlinks
(query: &str)
ai/src/compilerx.rs:171
↓ 7 callersMethodget_joined_users
Get all users joined with the given user including the user themselves
ai/src/memory.rs:317
↓ 6 callersFunctioncreate_test_config_with_channel
( channel_name: &str, system_prompt: Option<String>, )
ai/src/prompt.rs:99
↓ 6 callersMethoddebug_out
(&self, line: &str)
ircbot/src/bot.rs:146
↓ 6 callersMethodget_channel_default_model
(&self, channel_name: &str)
ai/src/model.rs:277
↓ 6 callersFunctionget_coordinates
(city: &str, base_url: &str)
ai/src/weather.rs:139
↓ 6 callersMethoduser_history
Returns matching messages in chronological order with timestamps.
ai/src/memory.rs:270
↓ 5 callersFunctionsetup_memory
()
ai/src/memory.rs:344
↓ 5 callersFunctionsetup_model_list
()
ai/src/model.rs:432
↓ 4 callersFunctionbuild_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 callersFunctionget_current_timestamp
()
ai/src/compilerx.rs:241
↓ 4 callersMethodget_group_members
Get all users in the same group as the given user
ai/src/memory/user_groups.rs:163
↓ 4 callersFunctionget_weather
(city: &str)
ai/src/weather.rs:59
↓ 4 callersMethodjoin_users
Join two users so they share memory
ai/src/memory.rs:285
↓ 4 callersFunctiontransform_query
( query: &str, info: &ShortlinkInfo, compiler_cache: &CompilerCache, compilation_result: &Opti
ai/src/compilerx.rs:372
↓ 3 callersMethodclear_history_for_joined_users
Clear the history of all users joined with the given user.
ai/src/memory.rs:227
↓ 3 callersMethodexecute_response
( &mut self, response: Response, response_target: &str, )
ircbot/src/bot.rs:235
↓ 3 callersFunctionextract_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 callersMethodget_channel_system_prompt
(&self, channel_name: &str)
ai/src/model.rs:271
↓ 3 callersFunctionget_system_prompt
Gets the system prompt for a channel, falling back to default if not configured.
ai/src/prompt.rs:80
↓ 3 callersFunctionget_weather_data
(lat: f64, lon: f64, base_url: &str)
ai/src/weather.rs:181
↓ 3 callersFunctionload_compiler_cache
(cache_path: &Path)
ai/src/compilerx.rs:253
↓ 3 callersFunctionload_group_sets
( connection: &Connection, now: OffsetDateTime, )
ai/src/memory.rs:109
↓ 3 callersMethodunicode_byte_limit
(&self, max_bytes: usize)
ai/src/unicodebytelimit.rs:7
↓ 3 callersFunctionvalidate_shortlink_info
(info: &ShortlinkInfo)
ai/src/compilerx.rs:222
↓ 2 callersMethoddefault_model
(&self)
ai/src/model.rs:368
↓ 2 callersFunctiondefault_prompt
()
ai/src/prompt.rs:17
↓ 2 callersMethodextract_timer_commands
( &mut self, output: &str, script: &str, sender: &str, room: &str,
ircbot/src/bot.rs:441
↓ 2 callersFunctionget_local_time
(timezone: &str, utc_now: OffsetDateTime)
ai/src/weather.rs:126
↓ 2 callersMethodhandle_topic_change
(&mut self, channel: &str, topic: &str)
ircbot/src/bot.rs:229
↓ 2 callersFunctionlimit_length
Safely limits the length of a unicode string.
ircbot/src/bot.rs:625
↓ 2 callersMethodlist_model_flags
(&self)
ai/src/model.rs:420
↓ 2 callersMethodmerge
(&mut self, other: GroupInfo)
ai/src/memory/user_groups.rs:22
↓ 2 callersFunctionnext_midnight
()
ircbot/src/bot.rs:637
↓ 2 callersMethodprint_magic_key
(&self)
ircbot/src/bot.rs:137
↓ 2 callersMethodremove_user
Remove a user from their group, making them a singleton
ai/src/memory/user_groups.rs:178
↓ 2 callersMethodrun_script
( &self, path: &str, argument: &str, sender: &str, response_target: &s
ircbot/src/bot.rs:473
↓ 2 callersFunctionsave_compiler_cache
(cache: &CompilerCache, cache_path: &Path)
ai/src/compilerx.rs:263
↓ 2 callersFunctionsave_group_sets
( connection: &Connection, group_sets: &HashMap<String, GroupSets>, )
ai/src/memory.rs:160
↓ 2 callersFunctionusage
(models: &ModelList, config: &Config, channel: &str)
ai/src/main.rs:118
↓ 2 callersFunctionweather_error_prompt
()
ai/src/weather.rs:258
↓ 1 callersMethodadd_timer
( &mut self, delay_seconds: u64, script: &str, argument: &str, sender:
ircbot/src/bot.rs:373
↓ 1 callersMethodadd_tokenizer
(mut self, key: &str, value: &str)
tokenizer/src/main.rs:17
↓ 1 callersFunctionarbitrary_user
()
ai/src/memory/user_groups/tests.rs:332
↓ 1 callersFunctioncall_api
( model: &Model, prompt: &Vec<Message>, temperature: &Option<f64>, config: &Config, channe
ai/src/main.rs:41
↓ 1 callersMethodclear_history_for_users
Clear the history for a list of users.
ai/src/memory.rs:237
↓ 1 callersFunctioncompile_shortlink_code
(info: &ShortlinkInfo)
ai/src/compilerx.rs:314
↓ 1 callersMethoddaily_jobs
(&mut self)
ircbot/src/bot.rs:571
↓ 1 callersFunctiondate_to_weekday
(date: &str)
ai/src/weather.rs:119
↓ 1 callersMethoddefault_model_name
(&self)
ai/src/model.rs:372
↓ 1 callersMethoddo_special_command
(&self, cmd: &str)
ircbot/src/bot.rs:327
↓ 1 callersMethodensureOpen
(self)
reading/read.py:28
↓ 1 callersMethodexpire_old_groups
(&mut self, now: OffsetDateTime)
ai/src/memory/user_groups.rs:102
↓ 1 callersFunctionfetch_compilers_from_api
()
ai/src/compilerx.rs:270
↓ 1 callersFunctionfetch_shortlink_info
(id: &str)
ai/src/compilerx.rs:183
↓ 1 callersFunctionfixExpr
(expr)
reading/read.py:46
↓ 1 callersFunctionforecast_prompt
()
ai/src/weather.rs:250
↓ 1 callersFunctionformat_forecast
(daily: &Daily)
ai/src/weather.rs:82
↓ 1 callersFunctionformat_prompt
(prompt: &str)
ai/src/prompt.rs:25
↓ 1 callersFunctionformat_weather_code
(code: i32)
ai/src/weather.rs:208
↓ 1 callersMethodgenerate_response
( &mut self, message: &str, message_data: &MessageMetadata, )
ircbot/src/bot.rs:265
↓ 1 callersMethodget_channel_model_timeout
( &self, channel_name: &str, provider: &str, model_id: &str, )
ai/src/model.rs:297
↓ 1 callersMethodget_groups
(&self)
ai/src/memory/user_groups.rs:203
↓ 1 callersMethodget_joined_users_excluding_self
Get all users joined with the given user excluding the user themselves
ai/src/memory.rs:328
↓ 1 callersMethodget_options
(&self)
tokenizer/src/main.rs:22
↓ 1 callersFunctionget_readings
(expr)
reading/read.py:107
↓ 1 callersMethodget_timeout
(&self, model: &Model, channel_name: &str)
ai/src/model.rs:314
↓ 1 callersMethodget_user_to_group_mappings
(&self)
ai/src/memory/user_groups.rs:199
↓ 1 callersMethodhandle_privmsg
( &mut self, message: &str, message_data: &MessageMetadata, )
ircbot/src/bot.rs:220
↓ 1 callersFunctionis_cache_expired
(cache: &CompilerCache)
ai/src/compilerx.rs:248
↓ 1 callersMethodis_compiler_explorer_enabled
(&self)
ai/src/model.rs:310
↓ 1 callersFunctionload_history
( connection: &mut Connection, now: OffsetDateTime, )
ai/src/memory.rs:68
↓ 1 callersFunctionlocate_config_path
()
ai/src/main.rs:161
↓ 1 callersMethodmake_user_solo
Remove a user from their joined group, making them solo
ai/src/memory.rs:301
↓ 1 callersMethodnext_word_of_the_day
(&self, old_word: &str)
ircbot/src/bot.rs:542
↓ 1 callersFunctionparse_command_line
( query: &str, models: &ModelList, config: &Config, channel: &str, )
ai/src/main.rs:261
↓ 1 callersMethodparse_input
Returns (tokenizer, rest)
tokenizer/src/main.rs:27
↓ 1 callersMethodparse_message
(&self, message: &str)
ircbot/src/bot.rs:363
↓ 1 callersFunctionparse_server_address
(server: &str)
ircbot/src/main.rs:33
↓ 1 callersFunctionprocess_shortlinks
(query: &str, config_path: &Path)
ai/src/compilerx.rs:147
↓ 1 callersFunctionrefresh_compiler_cache
(cache_path: &Path)
ai/src/compilerx.rs:304
↓ 1 callersFunctionrun
(input: &Input)
ai/src/main.rs:570
↓ 1 callersFunctionrun_bot
( config: irc::client::data::Config, main_channel: &str, shutdown_notify: Arc<Notify>, )
ircbot/src/main.rs:122
↓ 1 callersFunctionsetup
()
ai/src/main.rs:340
↓ 1 callersMethodstream
(&mut self)
ircbot/src/bot.rs:31
↓ 1 callersFunctiontextdomain_dir
()
ircbot/src/main.rs:42
↓ 1 callersFunctiontextdomain_dir
()
ai/src/main.rs:193
↓ 1 callersMethodtoHiragana
(self, expr)
reading/read.py:37
↓ 1 callersFunctiontoken_to_hex_string
(tokenizer: &Tokenizer, token_id: u32)
tokenizer/src/main.rs:114
↓ 1 callersFunctionusage_for_command
(command: &CommandForHelp)
ai/src/main.rs:141
next →1–100 of 254, ranked by callers