Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codestoryai/prompts
/ functions
Functions
210 in github.com/codestoryai/prompts
⨍
Functions
210
◇
Types & classes
81
↓ 24 callers
Method
content
(&self)
llm_client/src/clients/types.rs:157
↓ 20 callers
Method
role
(&self)
llm_client/src/clients/types.rs:218
↓ 11 callers
Method
temperature
(&self)
llm_client/src/clients/types.rs:266
↓ 10 callers
Method
model
(&self)
llm_client/src/clients/types.rs:262
↓ 9 callers
Method
llm_type
(&self)
llm_prompts/src/reranking/types.rs:240
↓ 8 callers
Method
language
(&self)
llm_prompts/src/in_line_edit/types.rs:40
↓ 7 callers
Method
frequency_penalty
(&self)
llm_client/src/clients/types.rs:270
↓ 7 callers
Method
messages
(&self)
llm_client/src/clients/types.rs:303
↓ 6 callers
Method
add_answer_model
(mut self, model: AnswerModel)
llm_prompts/src/answer_model/mod.rs:99
↓ 6 callers
Method
code_spans
(&self)
llm_prompts/src/reranking/types.rs:236
↓ 6 callers
Method
get_code_span
(self)
llm_prompts/src/reranking/types.rs:118
↓ 6 callers
Method
get_function_call
(&self)
llm_client/src/clients/types.rs:222
↓ 6 callers
Method
hash
(&self)
llm_prompts/src/reranking/types.rs:106
↓ 6 callers
Method
in_range
(&self)
llm_prompts/src/in_line_edit/types.rs:48
↓ 6 callers
Method
user_query
(&self)
llm_prompts/src/reranking/types.rs:220
↓ 5 callers
Method
data
(&self)
llm_prompts/src/reranking/types.rs:110
↓ 5 callers
Method
insert_prompt_generator
( mut self, llm_type: LLMType, prompt_generator: Box<dyn InLineEditPrompt + Send + Syn
llm_prompts/src/in_line_edit/broker.rs:34
↓ 5 callers
Method
strategy
(&self)
llm_prompts/src/reranking/types.rs:232
↓ 5 callers
Method
stream_string_completion
( &self, api_key: LLMProviderAPIKeys, request: LLMClientCompletionStringRequest,
llm_client/src/broker.rs:146
↓ 4 callers
Method
above
(&self)
llm_prompts/src/in_line_edit/types.rs:95
↓ 4 callers
Method
add_provider
( mut self, provider: LLMProvider, client: Box<dyn LLMClient + Send + Sync>, )
llm_client/src/broker.rs:55
↓ 4 callers
Method
below
(&self)
llm_prompts/src/in_line_edit/types.rs:99
↓ 4 callers
Method
limit
(&self)
llm_prompts/src/reranking/types.rs:224
↓ 4 callers
Method
prompt
(&self)
llm_client/src/clients/types.rs:274
↓ 4 callers
Method
stream_completion
( &self, api_key: LLMProviderAPIKeys, request: LLMClientCompletionRequest, sen
llm_client/src/clients/openai.rs:127
↓ 4 callers
Method
token_limit
(&self)
llm_prompts/src/reranking/types.rs:228
↓ 3 callers
Method
add_llm_type
( mut self, llm_type: LLMType, formatter: Box<dyn LLMFormatting + Send + Sync>, )
llm_client/src/tokenizer/tokenizer.rs:72
↓ 3 callers
Method
file_path
(&self)
llm_prompts/src/in_line_edit/types.rs:36
↓ 3 callers
Method
get_prompt_generator
( &self, llm_type: &LLMType, )
llm_prompts/src/in_line_edit/broker.rs:43
↓ 3 callers
Method
is_assistant
(&self)
llm_client/src/clients/types.rs:119
↓ 3 callers
Method
is_identifier_node
(&self)
llm_prompts/src/in_line_edit/types.rs:52
↓ 3 callers
Method
is_system
(&self)
llm_client/src/clients/types.rs:111
↓ 3 callers
Method
is_user
(&self)
llm_client/src/clients/types.rs:115
↓ 3 callers
Method
messages
( &self, messages: &[LLMClientMessage], )
llm_client/src/clients/openai.rs:43
↓ 3 callers
Method
model
(&self, model: &LLMType)
llm_client/src/clients/openai.rs:33
↓ 2 callers
Method
above_selection
(&self, above_context: Option<&String>)
llm_prompts/src/in_line_edit/openai.rs:87
↓ 2 callers
Method
arguments
(&self)
llm_client/src/clients/types.rs:141
↓ 2 callers
Method
below_selection
(&self, below_context: Option<&String>)
llm_prompts/src/in_line_edit/openai.rs:98
↓ 2 callers
Method
code_context
We try to get the inline edit prompt for the code here, so we can ask the LLM to generate the prompt
llm_prompts/src/in_line_edit/mistral.rs:33
↓ 2 callers
Function
connect
(data_dir: &str)
llm_client/src/sqlite.rs:19
↓ 2 callers
Method
count_tokens_using_tokenizer
( &self, model: &LLMType, prompt: &str, )
llm_client/src/tokenizer/tokenizer.rs:179
↓ 2 callers
Method
diagnostics_prompts
(&self)
llm_prompts/src/in_line_edit/types.rs:107
↓ 2 callers
Function
documentation_type
(identifier_node: &InLineDocRequest)
llm_prompts/src/in_line_edit/doc_helpers.rs:3
↓ 2 callers
Method
eos_token
(&self)
llm_client/src/format/types.rs:62
↓ 2 callers
Method
file_path
(&self)
llm_prompts/src/reranking/types.rs:114
↓ 2 callers
Method
function_call
(name: String, arguments: String)
llm_client/src/clients/types.rs:180
↓ 2 callers
Method
generate_base_url
(&self, api_key: LLMProviderAPIKeys)
llm_client/src/clients/lmstudio.rs:109
↓ 2 callers
Method
generate_together_ai_bearer_key
( &self, api_key: LLMProviderAPIKeys, )
llm_client/src/clients/togetherai.rs:110
↓ 2 callers
Method
generation_endpoint
(&self)
llm_client/src/clients/ollama.rs:89
↓ 2 callers
Method
get_span_identifier
(&self)
llm_prompts/src/reranking/types.rs:122
↓ 2 callers
Method
identifier_node_str
(&self)
llm_prompts/src/in_line_edit/types.rs:59
↓ 2 callers
Method
inference_endpoint
(&self)
llm_client/src/clients/togetherai.rs:93
↓ 2 callers
Method
is_function
(&self)
llm_client/src/clients/types.rs:123
↓ 2 callers
Method
is_openai
(&self)
llm_client/src/clients/types.rs:72
↓ 2 callers
Method
measure_tokens
( &self, llm_type: &LLMType, code_digests: &[CodeSpanDigest], tokenizer: Arc<L
llm_prompts/src/reranking/broker.rs:51
↓ 2 callers
Method
name
(&self)
llm_client/src/clients/types.rs:137
↓ 2 callers
Method
rerank_prompt
( &self, request: ReRankCodeSpanRequest, )
llm_prompts/src/reranking/broker.rs:43
↓ 2 callers
Method
stream_answer
( &self, api_key: LLMProviderAPIKeys, provider: LLMProvider, request: Either<L
llm_client/src/broker.rs:64
↓ 2 callers
Method
to_ollama_model
(&self)
llm_client/src/clients/ollama.rs:28
↓ 2 callers
Method
to_openai_tokenizer
(&self, model: &LLMType)
llm_client/src/tokenizer/tokenizer.rs:84
↓ 2 callers
Method
user_query
(&self)
llm_prompts/src/in_line_edit/types.rs:145
↓ 1 callers
Method
api_base
(&self)
llm_client/src/provider.rs:152
↓ 1 callers
Method
chat_endpoint
(&self, base_url: &str)
llm_client/src/clients/lmstudio.rs:105
↓ 1 callers
Method
completion_endpoint
(&self, base_url: &str)
llm_client/src/clients/lmstudio.rs:101
↓ 1 callers
Function
document_symbol_metadata
(identifier_node: &InLineDocRequest)
llm_prompts/src/in_line_edit/doc_helpers.rs:30
↓ 1 callers
Method
documentation_system_prompt
(&self, language: &str, is_identifier_node: bool)
llm_prompts/src/in_line_edit/openai.rs:57
↓ 1 callers
Method
extra_code_context
(&self, extra_data: &[String])
llm_prompts/src/in_line_edit/mistral.rs:18
↓ 1 callers
Method
extra_data
(&self)
llm_prompts/src/in_line_edit/types.rs:153
↓ 1 callers
Method
generate_openai_client
( &self, api_key: LLMProviderAPIKeys, )
llm_client/src/clients/openai.rs:99
↓ 1 callers
Method
gpt3_endpoint
(&self, api_base: &str)
llm_client/src/clients/codestory.rs:87
↓ 1 callers
Method
gpt4_endpoint
(&self, api_base: &str)
llm_client/src/clients/codestory.rs:91
↓ 1 callers
Function
init
(config: LLMBrokerConfiguration)
llm_client/src/sqlite.rs:7
↓ 1 callers
Method
inline_doc
(&self, request: InLineDocRequest)
llm_prompts/src/in_line_edit/openai.rs:168
↓ 1 callers
Method
inline_edit
(&self, request: InLineEditRequest)
llm_prompts/src/in_line_edit/openai.rs:111
↓ 1 callers
Method
inline_edit
(&self, request: InLineEditRequest)
llm_prompts/src/in_line_edit/mistral.rs:63
↓ 1 callers
Method
inline_fix
(&self, request: InLineFixRequest)
llm_prompts/src/in_line_edit/openai.rs:141
↓ 1 callers
Method
key
Gets the relevant key from the llm provider
llm_client/src/provider.rs:65
↓ 1 callers
Method
listwise_reranking
(&self, request: ReRankCodeSpanRequest)
llm_prompts/src/reranking/openai.rs:81
↓ 1 callers
Method
listwise_reranking
( &self, api_keys: LLMProviderAPIKeys, request: ReRankCodeSpanRequest, provide
llm_prompts/src/reranking/broker.rs:95
↓ 1 callers
Method
listwise_reranking
(&self, request: ReRankCodeSpanRequest)
llm_prompts/src/reranking/mistral.rs:84
↓ 1 callers
Method
load_tokenizer
(&mut self, model: &LLMType)
llm_client/src/tokenizer/tokenizer.rs:219
↓ 1 callers
Method
model_endpoint
(&self, model: &LLMType)
llm_client/src/clients/codestory.rs:103
↓ 1 callers
Method
model_name
(&self, model: &LLMType)
llm_client/src/clients/codestory.rs:95
↓ 1 callers
Method
order_code_digests_listwise
( &self, llm_type: &LLMType, response: String, rerank_list_request: ReRankList
llm_prompts/src/reranking/broker.rs:78
↓ 1 callers
Method
parse_listwise_output
( &self, llm_output: String, rerank_request: ReRankListWiseResponse, )
llm_prompts/src/reranking/openai.rs:162
↓ 1 callers
Method
pointwise_reranking
(&self, request: ReRankCodeSpanRequest)
llm_prompts/src/reranking/openai.rs:19
↓ 1 callers
Method
pointwise_reranking
( &self, api_keys: LLMProviderAPIKeys, provider: LLMProvider, request: ReRankC
llm_prompts/src/reranking/broker.rs:194
↓ 1 callers
Method
pointwise_reranking
(&self, request: ReRankCodeSpanRequest)
llm_prompts/src/reranking/mistral.rs:20
↓ 1 callers
Function
reset
(data_dir: &str)
llm_client/src/sqlite.rs:35
↓ 1 callers
Function
selection_type
(identifier_node: &InLineDocRequest)
llm_prompts/src/in_line_edit/doc_helpers.rs:22
↓ 1 callers
Method
stream_completion
( &self, api_key: LLMProviderAPIKeys, request: LLMClientCompletionRequest, pro
llm_client/src/broker.rs:84
↓ 1 callers
Method
stream_completion
( &self, api_key: LLMProviderAPIKeys, request: LLMClientCompletionRequest, sen
llm_client/src/clients/togetherai.rs:182
↓ 1 callers
Method
stream_completion
( &self, _api_key: LLMProviderAPIKeys, request: LLMClientCompletionRequest, se
llm_client/src/clients/codestory.rs:127
↓ 1 callers
Method
stream_completion
( &self, api_key: LLMProviderAPIKeys, request: LLMClientCompletionRequest, sen
llm_client/src/clients/lmstudio.rs:132
↓ 1 callers
Method
stream_completion
( &self, _api_key: LLMProviderAPIKeys, request: LLMClientCompletionRequest, se
llm_client/src/clients/ollama.rs:100
↓ 1 callers
Method
stream_prompt_completion
( &self, _api_key: LLMProviderAPIKeys, _request: super::types::LLMClientCompletionStri
llm_client/src/clients/openai.rs:231
↓ 1 callers
Method
system_message_fix
(&self, language: &str)
llm_prompts/src/in_line_edit/openai.rs:39
↓ 1 callers
Method
system_message_inline_edit
(&self, language: &str)
llm_prompts/src/in_line_edit/openai.rs:20
↓ 1 callers
Method
to_prompt
(&self, messages: Vec<LLMClientMessage>)
llm_client/src/format/types.rs:20
Method
add_bos_token
(&self)
llm_client/src/format/types.rs:50
next →
1–100 of 210, ranked by callers