MCPcopy Create free account
hub / github.com/AI45Lab/Code / bail_if_closed

Function bail_if_closed

core/src/agent_api/conversation_runtime.rs:17–24  ·  view source on GitHub ↗
(session: &AgentSession)

Source from the content-addressed store, hash-verified

15use tokio::task::JoinHandle;
16
17fn bail_if_closed(session: &AgentSession) -> Result<()> {
18 if session.is_closed() {
19 return Err(CodeError::SessionClosed {
20 session_id: session.session_id.clone(),
21 });
22 }
23 Ok(())
24}
25
26pub(super) async fn send(
27 session: &AgentSession,

Callers 5

sendFunction · 0.85
send_with_attachmentsFunction · 0.85
stream_with_attachmentsFunction · 0.85
streamFunction · 0.85
resume_runFunction · 0.85

Calls 2

is_closedMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected