MCPcopy Create free account
hub / github.com/coderaidershaun/rust-auto-gippity-full-code / new

Method new

src/models/agent_basic/basic_agent.rs:21–28  ·  view source on GitHub ↗
(objective: String, position: String)

Source from the content-addressed store, hash-verified

19
20impl BasicTraits for BasicAgent {
21 fn new(objective: String, position: String) -> Self {
22 Self {
23 objective,
24 position,
25 state: AgentState::Discovery,
26 memory: Vec::from([]),
27 }
28 }
29
30 fn update_state(&mut self, new_state: AgentState) {
31 self.state = new_state;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected