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

Method session

core/src/agent_api.rs:376–382  ·  view source on GitHub ↗

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>,
    )

Source from the content-addressed store, hash-verified

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 ///

Calls 1

create_sessionFunction · 0.85