fix: correct spelling in error messages and documentation (#2840)
This commit is contained in:
@@ -18,7 +18,7 @@ pub enum ExtensionError {
|
||||
Initialization(ExtensionConfig, ClientError),
|
||||
#[error("Failed a client call to an MCP server: {0}")]
|
||||
Client(#[from] ClientError),
|
||||
#[error("User Message exceeded context-limit. History could not be truncated to accomodate.")]
|
||||
#[error("User Message exceeded context-limit. History could not be truncated to accommodate.")]
|
||||
ContextLimit,
|
||||
#[error("Transport error: {0}")]
|
||||
Transport(#[from] mcp_client::transport::Error),
|
||||
|
||||
@@ -45,7 +45,7 @@ pub fn vector_search_tool() -> Tool {
|
||||
|
||||
pub fn vector_search_tool_prompt() -> String {
|
||||
r#"# Tool Selection Instructions
|
||||
Imporant: the user has opted to dynamically enable tools, so although an extension could be enabled, \
|
||||
Important: the user has opted to dynamically enable tools, so although an extension could be enabled, \
|
||||
please invoke the vector search tool to actually retrieve the most relevant tools to use according to the user's messages.
|
||||
For example, if the user has 3 extensions enabled, but they are asking for a tool to read a pdf file, \
|
||||
you would invoke the vector_search tool to find the most relevant read pdf tool.
|
||||
|
||||
@@ -6,7 +6,7 @@ Please keep going until the user’s query is completely resolved, before ending
|
||||
|
||||
If you are not sure about file content or codebase structure, or other information pertaining to the user’s request, use your tools to read files and gather the relevant information: do NOT guess or make up an answer. It is important you use tools that can assist with providing the right context.
|
||||
|
||||
CRITIAL: The str_replace command in the text_editor tool (when available) should be used most of the time, with the write tool only for new files. ALWAYS check the content of the file before editing. NEVER overwrite the whole content of a file unless directed to, always edit carefully by adding and changing content. Never leave content unfinished with comments like "rest of the file here"
|
||||
CRITICAL: The str_replace command in the text_editor tool (when available) should be used most of the time, with the write tool only for new files. ALWAYS check the content of the file before editing. NEVER overwrite the whole content of a file unless directed to, always edit carefully by adding and changing content. Never leave content unfinished with comments like "rest of the file here"
|
||||
|
||||
The user may direct or imply that you are to take actions, in this case, it is important to note the following guidelines:
|
||||
|
||||
|
||||
@@ -298,7 +298,7 @@ impl OAuthFlow {
|
||||
// though it will ultimately only get used once
|
||||
let tx = Arc::new(tokio::sync::Mutex::new(Some(tx)));
|
||||
|
||||
// Setup a server that will recieve the redirect, capture the code, and display success/failure
|
||||
// Setup a server that will receive the redirect, capture the code, and display success/failure
|
||||
let app = Router::new().route(
|
||||
"/",
|
||||
get(move |Query(params): Query<HashMap<String, String>>| {
|
||||
|
||||
Reference in New Issue
Block a user