lowercase g in goose (#4832)

This commit is contained in:
Angie Jones
2025-09-26 23:44:38 -05:00
committed by GitHub
parent bb1b73d634
commit 2032c7099c
120 changed files with 669 additions and 651 deletions
+5 -5
View File
@@ -160,7 +160,7 @@ pub enum ExtensionConfig {
// NOTE: set timeout to be optional for compatibility.
// However, new configurations should include this field.
timeout: Option<u64>,
/// Whether this extension is bundled with Goose
/// Whether this extension is bundled with goose
#[serde(default)]
bundled: Option<bool>,
#[serde(default)]
@@ -179,7 +179,7 @@ pub enum ExtensionConfig {
env_keys: Vec<String>,
timeout: Option<u64>,
description: Option<String>,
/// Whether this extension is bundled with Goose
/// Whether this extension is bundled with goose
#[serde(default)]
bundled: Option<bool>,
#[serde(default)]
@@ -193,7 +193,7 @@ pub enum ExtensionConfig {
display_name: Option<String>, // needed for the UI
description: Option<String>,
timeout: Option<u64>,
/// Whether this extension is bundled with Goose
/// Whether this extension is bundled with goose
#[serde(default)]
bundled: Option<bool>,
#[serde(default)]
@@ -215,7 +215,7 @@ pub enum ExtensionConfig {
// NOTE: set timeout to be optional for compatibility.
// However, new configurations should include this field.
timeout: Option<u64>,
/// Whether this extension is bundled with Goose
/// Whether this extension is bundled with goose
#[serde(default)]
bundled: Option<bool>,
#[serde(default)]
@@ -230,7 +230,7 @@ pub enum ExtensionConfig {
tools: Vec<Tool>,
/// Instructions for how to use these tools
instructions: Option<String>,
/// Whether this extension is bundled with Goose
/// Whether this extension is bundled with goose
#[serde(default)]
bundled: Option<bool>,
#[serde(default)]
+1 -1
View File
@@ -80,7 +80,7 @@ impl Extension {
}
}
/// Manages Goose extensions / MCP clients and their interactions
/// Manages goose extensions / MCP clients and their interactions
pub struct ExtensionManager {
extensions: Mutex<HashMap<String, Extension>>,
}
+1 -1
View File
@@ -115,7 +115,7 @@ pub fn manage_schedule_tool() -> Tool {
Tool::new(
PLATFORM_MANAGE_SCHEDULE_TOOL_NAME.to_string(),
indoc! {r#"
Manage scheduled recipe execution for this Goose instance.
Manage scheduled recipe execution for this goose instance.
Actions:
- "list": List all scheduled jobs
+1 -1
View File
@@ -48,7 +48,7 @@ pub fn llm_search_tool_prompt() -> String {
please invoke the llm 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 llm_search tool to find the most relevant read pdf tool.
By dynamically enabling tools, you (Goose) as the agent save context window space and allow the user to dynamically retrieve the most relevant tools.
By dynamically enabling tools, you (goose) as the agent save context window space and allow the user to dynamically retrieve the most relevant tools.
Be sure to format a query packed with relevant keywords to search for the most relevant tools.
In addition to the extension names available to you, you also have platform extension tools available to you.
The platform extension contains the following tools:
+1 -1
View File
@@ -1,4 +1,4 @@
//! Schedule tool handlers for the Goose agent
//! Schedule tool handlers for the goose agent
//!
//! This module contains all the handlers for the schedule management platform tool,
//! including job creation, execution, monitoring, and session management.
+1 -1
View File
@@ -36,7 +36,7 @@ pub const DECLINED_RESPONSE: &str = "The user has declined to run this tool. \
DO NOT attempt to call this tool again. \
If there are no alternative methods to proceed, clearly explain the situation and STOP.";
pub const CHAT_MODE_TOOL_SKIPPED_RESPONSE: &str = "Let the user know the tool call was skipped in Goose chat mode. \
pub const CHAT_MODE_TOOL_SKIPPED_RESPONSE: &str = "Let the user know the tool call was skipped in goose chat mode. \
DO NOT apologize for skipping the tool call. DO NOT say sorry. \
Provide an explanation of what the tool call would do, structured as a \
plan for the user. Again, DO NOT apologize. \
+2 -2
View File
@@ -57,7 +57,7 @@ impl From<keyring::Error> for ConfigError {
}
}
/// Configuration management for Goose.
/// Configuration management for goose.
///
/// This module provides a flexible configuration system that supports:
/// - Dynamic configuration keys
@@ -102,7 +102,7 @@ impl From<keyring::Error> for ConfigError {
/// checking for environment overrides. e.g. openai_api_key will check for an
/// environment variable OPENAI_API_KEY
///
/// For Goose-specific configuration, consider prefixing with "goose_" to avoid conflicts.
/// For goose-specific configuration, consider prefixing with "goose_" to avoid conflicts.
pub struct Config {
config_path: PathBuf,
secrets: SecretStorage,
@@ -39,7 +39,7 @@
<div class="checkmark"></div>
<h1>Authentication Successful!</h1>
<p>You have successfully authenticated with OpenRouter.</p>
<p>You can now close this tab and return to Goose.</p>
<p>You can now close this tab and return to goose.</p>
</div>
</body>
</html>
+1 -1
View File
@@ -66,7 +66,7 @@
<p>
You have successfully authorized
<span class="client-name">{{ name }}</span>. You can now close this
window and return to Goose.
window and return to goose.
</p>
</div>
</body>
+1 -1
View File
@@ -1,4 +1,4 @@
You are a specialized subagent within the Goose AI framework, created by Block. You were spawned by the main Goose agent to handle a specific task efficiently. The current date is {{current_date_time}}.
You are a specialized subagent within the goose AI framework, created by Block. You were spawned by the main goose agent to handle a specific task efficiently. The current date is {{current_date_time}}.
# Your Role
You are an autonomous subagent with these characteristics:
+3 -3
View File
@@ -1,13 +1,13 @@
You are a general-purpose AI agent called Goose, created by Block, the parent company of Square, CashApp, and Tidal. Goose is being developed as an open-source software project.
You are a general-purpose AI agent called goose, created by Block, the parent company of Square, CashApp, and Tidal. goose is being developed as an open-source software project.
The current date is {{current_date_time}}.
Goose uses LLM providers with tool calling capability. You can be used with different language models (gpt-4o, claude-sonnet-4, o1, llama-3.2, deepseek-r1, etc).
goose uses LLM providers with tool calling capability. You can be used with different language models (gpt-4o, claude-sonnet-4, o1, llama-3.2, deepseek-r1, etc).
These models have varying knowledge cut-off dates depending on when they were trained, but typically it's between 5-10 months prior to the current date.
# Extensions
Extensions allow other applications to provide context to Goose. Extensions connect Goose to different data sources and tools.
Extensions allow other applications to provide context to goose. Extensions connect goose to different data sources and tools.
You are capable of dynamically plugging into new extensions and learning how to use them. You solve higher level problems using the tools in these extensions, and can interact with multiple at once.
Use the search_available_extensions tool to find additional extensions to enable to help with your task. To enable extensions, use the enable_extension tool and provide the extension_name. You should only enable extensions found from the search_available_extensions tool.
+3 -3
View File
@@ -1,4 +1,4 @@
You are a general-purpose AI agent called Goose, created by Block, the parent company of Square, CashApp, and Tidal. Goose is being developed as an open-source software project.
You are a general-purpose AI agent called goose, created by Block, the parent company of Square, CashApp, and Tidal. goose is being developed as an open-source software project.
IMPORTANT INSTRUCTIONS:
@@ -21,12 +21,12 @@ The user may direct or imply that you are to take actions, in this case, it is i
The current date is {{current_date_time}}.
Goose uses LLM providers with tool calling capability.
goose uses LLM providers with tool calling capability.
Your model may have varying knowledge cut-off dates depending on when they were trained, but typically it's between 5-10 months prior to the current date.
# Extensions
Extensions allow other applications to provide context to Goose. Extensions connect Goose to different data sources and tools.
Extensions allow other applications to provide context to goose. Extensions connect goose to different data sources and tools.
You are capable of dynamically plugging into new extensions and learning how to use them. You solve higher level problems using the tools in these extensions, and can interact with multiple at once.
Use the search_available_extensions tool to find additional extensions to enable to help with your task. To enable extensions, use the enable_extension tool and provide the extension_name. You should only enable extensions found from the search_available_extensions tool.
@@ -493,7 +493,7 @@ pub fn create_request(
) -> anyhow::Result<Value, Error> {
if model_config.model_name.starts_with("o1-mini") {
return Err(anyhow!(
"o1-mini model is not currently supported since Goose uses tool calling and o1-mini does not support it. Please use o1 or o3 models instead."
"o1-mini model is not currently supported since goose uses tool calling and o1-mini does not support it. Please use o1 or o3 models instead."
));
}
@@ -58,7 +58,7 @@ pub enum ModelError {
UnsupportedLocation(String),
}
/// Represents available GCP Vertex AI models for Goose.
/// Represents available GCP Vertex AI models for goose.
///
/// This enum encompasses different model families and their versions
/// that are supported in the GCP Vertex AI platform.
@@ -70,7 +70,7 @@ pub enum GcpVertexAIModel {
Gemini(GeminiVersion),
}
/// Represents available versions of the Claude model for Goose.
/// Represents available versions of the Claude model for goose.
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum ClaudeVersion {
/// Claude 3.7 Sonnet
@@ -83,7 +83,7 @@ pub enum ClaudeVersion {
Generic(String),
}
/// Represents available versions of the Gemini model for Goose.
/// Represents available versions of the Gemini model for goose.
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum GeminiVersion {
/// Gemini 1.5 Pro version
+1 -1
View File
@@ -364,7 +364,7 @@ mod tests {
id.to_string(),
tool_call.name.clone(),
tool_call.arguments.clone(),
Some("Goose would like to call the above tool. Allow? (y/n):".to_string()),
Some("goose would like to call the above tool. Allow? (y/n):".to_string()),
)],
)
}
+1 -1
View File
@@ -585,7 +585,7 @@ pub fn create_request(
) -> anyhow::Result<Value, Error> {
if model_config.model_name.starts_with("o1-mini") {
return Err(anyhow!(
"o1-mini model is not currently supported since Goose uses tool calling and o1-mini does not support it. Please use o1 or o3 models instead."
"o1-mini model is not currently supported since goose uses tool calling and o1-mini does not support it. Please use o1 or o3 models instead."
));
}
+1 -1
View File
@@ -56,7 +56,7 @@ impl OpenRouterProvider {
let auth = AuthMethod::BearerToken(api_key);
let api_client = ApiClient::new(host, auth)?
.with_header("HTTP-Referer", "https://block.github.io/goose")?
.with_header("X-Title", "Goose")?;
.with_header("X-Title", "goose")?;
Ok(Self { api_client, model })
}
+1 -1
View File
@@ -87,7 +87,7 @@ impl SnowflakeProvider {
};
let auth = AuthMethod::BearerToken(token?);
let api_client = ApiClient::new(base_url, auth)?.with_header("User-Agent", "Goose")?;
let api_client = ApiClient::new(base_url, auth)?.with_header("User-Agent", "goose")?;
Ok(Self {
api_client,
+1 -1
View File
@@ -62,7 +62,7 @@ impl TetrateProvider {
let auth = AuthMethod::BearerToken(api_key);
let api_client = ApiClient::new(host, auth)?
.with_header("HTTP-Referer", "https://block.github.io/goose")?
.with_header("X-Title", "Goose")?;
.with_header("X-Title", "goose")?;
Ok(Self {
api_client,
+1 -1
View File
@@ -21,7 +21,7 @@ fn default_version() -> String {
}
/// A Recipe represents a personalized, user-generated agent configuration that defines
/// specific behaviors and capabilities within the Goose system.
/// specific behaviors and capabilities within the goose system.
///
/// # Fields
///
+1 -1
View File
@@ -81,7 +81,7 @@ impl SchedulerFactory {
eprintln!(
" • Or download from: https://github.com/temporalio/cli/releases"
);
eprintln!(" • Then restart Goose");
eprintln!(" • Then restart goose");
eprintln!();
let scheduler = Scheduler::new(storage_path).await?;
+1 -1
View File
@@ -31,7 +31,7 @@ impl Default for OtlpConfig {
impl OtlpConfig {
pub fn from_config() -> Option<Self> {
// Try to get from Goose config system (which checks env vars first, then config file)
// Try to get from goose config system (which checks env vars first, then config file)
let config = crate::config::Config::global();
// Try to get the endpoint from config (checks OTEL_EXPORTER_OTLP_ENDPOINT env var first)