MCPcopy Create free account
hub / github.com/InfinitiBit/graphbit / create_test_agent

Function create_test_agent

tests/rust_unit_tests/test_helpers.rs:89–105  ·  view source on GitHub ↗

Test Agent Builder

()

Source from the content-addressed store, hash-verified

87#[allow(dead_code)]
88// Test Agent Builder
89pub(super) async fn create_test_agent() -> Arc<Agent> {
90 let llm_config = LlmConfig::OpenAI {
91 api_key: std::env::var("OPENAI_API_KEY").unwrap(),
92 model: "gpt-3.5-turbo".to_string(),
93 base_url: None,
94 organization: None,
95 };
96
97 Arc::new(
98 AgentBuilder::new("test_agent", llm_config)
99 .description("A test agent")
100 .capabilities(vec![AgentCapability::TextProcessing])
101 .build()
102 .await
103 .unwrap(),
104 )
105}
106
107#[allow(dead_code)]
108// Test Workflow Builder

Callers 4

test_agent_messagingFunction · 0.85

Calls 4

to_stringMethod · 0.80
buildMethod · 0.45
capabilitiesMethod · 0.45
descriptionMethod · 0.45

Tested by

no test coverage detected