(
agent: &Agent,
workspace: impl Into<String>,
def: &crate::subagent::AgentDefinition,
extra: Option<SessionOptions>,
)
| 140 | } |
| 141 | |
| 142 | pub(super) fn create_session_for_agent( |
| 143 | agent: &Agent, |
| 144 | workspace: impl Into<String>, |
| 145 | def: &crate::subagent::AgentDefinition, |
| 146 | extra: Option<SessionOptions>, |
| 147 | ) -> Result<AgentSession> { |
| 148 | let opts = agent_binding::apply_agent_definition(extra.unwrap_or_default(), def); |
| 149 | create_session(agent, workspace, Some(opts)) |
| 150 | } |
| 151 | |
| 152 | pub(super) fn resume_session( |
| 153 | agent: &Agent, |
no test coverage detected