MCPcopy Index your code
hub / github.com/AI45Lab/Code / command_messages

Function command_messages

core/src/agent_api/command_runtime.rs:31–35  ·  view source on GitHub ↗
(session: &AgentSession, history: Option<&[Message]>)

Source from the content-addressed store, hash-verified

29}
30
31fn command_messages(session: &AgentSession, history: Option<&[Message]>) -> Vec<Message> {
32 history
33 .map(|h| h.to_vec())
34 .unwrap_or_else(|| read_or_recover(&session.history).clone())
35}
36
37fn command_result(
38 text: String,

Callers 1

dispatch_blockingFunction · 0.85

Calls 2

read_or_recoverFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected