Skip to content

Commit

Permalink
show how to set the trust level
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelneale committed Dec 30, 2024
1 parent c075472 commit e9912a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/goose-server/src/state.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use anyhow::Result;
use goose::providers::configs::GroqProviderConfig;
use goose::trust_risk::TrustLevel;

Check failure on line 3 in crates/goose-server/src/state.rs

View workflow job for this annotation

GitHub Actions / build

unused import: `goose::trust_risk::TrustLevel`
use goose::{
agent::Agent,
developer::DeveloperSystem,
Expand All @@ -21,7 +22,9 @@ impl AppState {
pub fn new(provider_config: ProviderConfig, secret_key: String) -> Result<Self> {
let provider = factory::get_provider(provider_config.clone())?;
let mut agent = Agent::new(provider);
agent.add_system(Box::new(DeveloperSystem::new()));
let developer_system = DeveloperSystem::new();
//developer_system.set_trust_level(TrustLevel::NoDestructive);
agent.add_system(Box::new(developer_system));

// Add memory system only if GOOSE_SERVER__MEMORY is set to "true"
if let Ok(memory_enabled) = env::var("GOOSE_SERVER__MEMORY") {
Expand Down

0 comments on commit e9912a1

Please sign in to comment.