config: add optional extension description (#1743)

This commit is contained in:
Lily Delalande
2025-03-19 07:48:30 -07:00
committed by GitHub
parent abd0e1a6b5
commit 35cbddbf8d
7 changed files with 55 additions and 5 deletions
+2 -1
View File
@@ -1,7 +1,7 @@
use dotenv::dotenv;
use futures::StreamExt;
use goose::agents::{AgentFactory, ExtensionConfig};
use goose::config::DEFAULT_EXTENSION_TIMEOUT;
use goose::config::{DEFAULT_EXTENSION_DESCRIPTION, DEFAULT_EXTENSION_TIMEOUT};
use goose::message::Message;
use goose::providers::databricks::DatabricksProvider;
@@ -18,6 +18,7 @@ async fn main() {
let config = ExtensionConfig::stdio(
"developer",
"./target/debug/developer",
DEFAULT_EXTENSION_DESCRIPTION,
DEFAULT_EXTENSION_TIMEOUT,
);
agent.add_extension(config).await.unwrap();