pub struct Session {
pub name: Option<String>,
pub id: Option<String>,
pub prompt: String,
pub source_context: SourceContext,
pub title: Option<String>,
pub require_plan_approval: Option<bool>,
pub automation_mode: Option<AutomationMode>,
pub create_time: Option<DateTime<Utc>>,
pub update_time: Option<DateTime<Utc>>,
pub state: Option<SessionState>,
pub url: Option<String>,
pub outputs: Option<Vec<SessionOutput>>,
}Expand description
A coding session with the Jules agent.
Sessions represent a contiguous amount of work within the same context. Each session has a prompt describing the task and a source context specifying which repository to work on.
Fields§
§name: Option<String>The full resource name (e.g., sessions/{session}). Output only.
id: Option<String>The session ID. Output only.
prompt: StringThe prompt describing the coding task.
source_context: SourceContextThe source repository and context for this session.
title: Option<String>Optional title for the session.
require_plan_approval: Option<bool>Whether plan approval is required before the agent starts work.
automation_mode: Option<AutomationMode>The automation mode for this session.
create_time: Option<DateTime<Utc>>When the session was created. Output only.
update_time: Option<DateTime<Utc>>When the session was last updated. Output only.
state: Option<SessionState>The current state of the session. Output only.
url: Option<String>URL to view the session in the Jules web app. Output only.
outputs: Option<Vec<SessionOutput>>Outputs produced by the session (e.g., pull requests). Output only.