Bind to a workspace directory, returning an [`AgentSession`]. Pass `None` for defaults, or `Some(SessionOptions)` to override the model, agent directories for this session.
(
&self,
workspace: impl Into<String>,
options: Option<SessionOptions>,
)
| 374 | /// Pass `None` for defaults, or `Some(SessionOptions)` to override |
| 375 | /// the model, agent directories for this session. |
| 376 | pub fn session( |
| 377 | &self, |
| 378 | workspace: impl Into<String>, |
| 379 | options: Option<SessionOptions>, |
| 380 | ) -> Result<AgentSession> { |
| 381 | agent_sessions::create_session(self, workspace, options) |
| 382 | } |
| 383 | |
| 384 | /// Create a session pre-configured from an [`AgentDefinition`]. |
| 385 | /// |