session.proto
Generated from proto/blitz/v1/session.proto by proto-gen-md-diagrams.
| Import | Description |
|---|---|
| blitz/v1/turn.proto | |
| google/protobuf/struct.proto | |
| google/protobuf/timestamp.proto |
| Name | Value | Description |
|---|---|---|
| go_package | github.com/retail-cortex/blitz/proto/blitz/v1 |
classDiagram
direction LR
%% Mermaid Diagram for package: blitz.v1
%% SessionInfo describes a saved session.
class SessionInfo {
+ string id
+ string title
+ string agent
+ string workspace
+ string snapshot
+ string from
+ int32 message_count
+ google.protobuf.Timestamp created
+ google.protobuf.Timestamp updated
+ List~Message~ messages
+ string moved_from
+ int32 moved_at
+ string origin
+ string model
}
SessionInfo --> `Message`
%% Message is one message in a transcript.
class Message {
+ string role
+ string text
+ google.protobuf.Timestamp time
+ string kind
}
%% Request message for SessionService.ListSessions.
class ListSessionsRequest {
+ string workspace
+ bool all
}
%% Response message for SessionService.ListSessions.
class ListSessionsResponse {
+ List~SessionInfo~ sessions
}
ListSessionsResponse --> `SessionInfo`
%% Request message for SessionService.GetActiveSession.
class GetActiveSessionRequest {
+ string workspace
}
%% Response message for SessionService.GetActiveSession.
class GetActiveSessionResponse {
+ SessionInfo session
}
GetActiveSessionResponse --> `SessionInfo`
%% Request message for SessionService.NewSession.
class NewSessionRequest {
+ string workspace
}
%% Response message for SessionService.NewSession.
class NewSessionResponse {
+ SessionInfo session
}
NewSessionResponse --> `SessionInfo`
%% Request message for SessionService.OpenSession.
class OpenSessionRequest {
+ string workspace
+ string resume
+ bool continue_latest
}
%% Response message for SessionService.OpenSession.
class OpenSessionResponse {
+ SessionInfo session
+ bool resumed
}
OpenSessionResponse --> `SessionInfo`
%% Request message for SessionService.LoadSession.
class LoadSessionRequest {
+ string workspace
+ string ref
}
%% Response message for SessionService.LoadSession.
class LoadSessionResponse {
+ SessionInfo session
+ bool branched
}
LoadSessionResponse --> `SessionInfo`
%% Request message for SessionService.SaveSnapshot.
class SaveSnapshotRequest {
+ string workspace
+ string name
+ bool force
}
%% Response message for SessionService.SaveSnapshot.
class SaveSnapshotResponse {
+ SessionInfo snapshot
}
SaveSnapshotResponse --> `SessionInfo`
%% Request message for SessionService.RenameSession.
class RenameSessionRequest {
+ string workspace
+ string title
}
%% Response message for SessionService.RenameSession.
class RenameSessionResponse {
+ SessionInfo session
}
RenameSessionResponse --> `SessionInfo`
%% What moving a conversation to a model means (spec_056 CA-101).
class ModelPreview {
+ string model
+ int64 tokens
+ double cost_usd
+ bool priced
+ bool compacts
+ List~string~ unseen
+ bool no_tools
+ string active_pin
}
%% A conversation's prompt and context optimizer settings (.agents/specs/008 OPT-01).
class OptimizerSettings {
+ bool enabled
+ string mode
+ int32 max_tool_tokens
+ bool strip_filler
}
%% Request message for SessionService.GetSessionOptimizer.
class GetSessionOptimizerRequest {
+ string workspace
+ string session_id
}
%% Response message for SessionService.GetSessionOptimizer.
class GetSessionOptimizerResponse {
+ OptimizerSettings settings
}
GetSessionOptimizerResponse --> `OptimizerSettings`
%% Request message for SessionService.SetSessionOptimizer.
class SetSessionOptimizerRequest {
+ string workspace
+ string session_id
+ OptimizerSettings settings
}
SetSessionOptimizerRequest --> `OptimizerSettings`
%% Response message for SessionService.SetSessionOptimizer.
class SetSessionOptimizerResponse {
+ OptimizerSettings settings
}
SetSessionOptimizerResponse --> `OptimizerSettings`
%% A conversation's resolved model tiering settings (.agents/specs/009 TIER-01, TIER-10).
class TierSettings {
+ bool enabled
+ string lightweight
+ string mid
+ string frontier
+ bool escalate
+ int32 escalate_after_failures
+ int32 escalate_budget_pct
+ bool edge_compress
+ int32 edge_compress_bytes
+ bool verify_diff
+ bool dynamic_effort
}
%% Request message for SessionService.GetSessionTiers.
class GetSessionTiersRequest {
+ string workspace
+ string session_id
}
%% Response message for SessionService.GetSessionTiers.
class GetSessionTiersResponse {
+ TierSettings settings
}
GetSessionTiersResponse --> `TierSettings`
%% Request message for SessionService.SetSessionTiers.
class SetSessionTiersRequest {
+ string workspace
+ string session_id
+ TierSettings settings
}
SetSessionTiersRequest --> `TierSettings`
%% Response message for SessionService.SetSessionTiers.
class SetSessionTiersResponse {
+ TierSettings settings
}
SetSessionTiersResponse --> `TierSettings`
%% Request message for SessionService.SetSessionModel.
class SetSessionModelRequest {
+ string workspace
+ string session_id
+ string model
}
%% Response message for SessionService.SetSessionModel.
class SetSessionModelResponse {
+ ModelPreview preview
}
SetSessionModelResponse --> `ModelPreview`
%% Request message for SessionService.PreviewSessionModel.
class PreviewSessionModelRequest {
+ string workspace
+ string session_id
+ string model
}
%% Response message for SessionService.PreviewSessionModel.
class PreviewSessionModelResponse {
+ ModelPreview preview
}
PreviewSessionModelResponse --> `ModelPreview`
%% Request message for SessionService.DeleteSession.
class DeleteSessionRequest {
+ string workspace
+ string session_id
}
%% Response message for SessionService.DeleteSession.
class DeleteSessionResponse {
}
%% Request message for SessionService.ForkSession.
class ForkSessionRequest {
+ string workspace
+ int32 turn
}
%% Response message for SessionService.ForkSession.
class ForkSessionResponse {
+ SessionInfo session
}
ForkSessionResponse --> `SessionInfo`
%% Request message for SessionService.ExportSession.
class ExportSessionRequest {
+ string workspace
+ string session_id
}
%% Response message for SessionService.ExportSession.
class ExportSessionResponse {
+ string markdown
}
%% Request message for SessionService.MoveSession.
class MoveSessionRequest {
+ string workspace
+ string session_id
}
%% Response message for SessionService.MoveSession.
class MoveSessionResponse {
+ SessionInfo session
}
MoveSessionResponse --> `SessionInfo`
%% Request message for SessionService.RunTurn.
class RunTurnRequest {
+ string workspace
+ string session_id
+ Turn turn
+ string turn_id
+ uint64 after_seq
}
RunTurnRequest --> `Turn`
%% Response message for SessionService.RunTurn.
class RunTurnResponse {
+ TurnEvent event
+ uint64 seq
}
RunTurnResponse --> `TurnEvent`
%% Request message for SessionService.StopTurn.
class StopTurnRequest {
+ string workspace
+ string turn_id
}
%% Response message for SessionService.StopTurn.
class StopTurnResponse {
}
%% Request message for SessionService.Steer.
class SteerRequest {
+ string workspace
+ string session_id
+ string text
}
%% Response message for SessionService.Steer.
class SteerResponse {
}
%% Request message for SessionService.Approve.
class ApproveRequest {
+ string workspace
+ string request_id
+ Decision decision
}
ApproveRequest --> `Decision`
%% Response message for SessionService.Approve.
class ApproveResponse {
}
%% Request message for SessionService.Answer.
class AnswerRequest {
+ string workspace
+ string request_id
+ string answer
}
%% Response message for SessionService.Answer.
class AnswerResponse {
}
%% Request message for SessionService.GetUsage.
class GetUsageRequest {
+ string workspace
+ bool parts
+ bool calls
+ string session_id
}
%% Response message for SessionService.GetUsage.
class GetUsageResponse {
+ Usage usage
+ bool auto_compact
+ int32 threshold
+ int32 keep
+ List~ContextPart~ parts
+ List~UsageGroup~ by_model
+ List~UsageGroup~ by_purpose
+ List~UsageCall~ calls
}
GetUsageResponse --> `Usage`
GetUsageResponse --> `ContextPart`
GetUsageResponse --> `UsageGroup`
GetUsageResponse --> `UsageGroup`
GetUsageResponse --> `UsageCall`
%% UsageGroup is the usage of one model, or one purpose, in a session.
class UsageGroup {
+ string name
+ Usage usage
}
UsageGroup --> `Usage`
%% UsageCall is one entry of a session's ledger: a model call, a speech call or a search's billed queries (spec_056 CA-120).
class UsageCall {
+ google.protobuf.Timestamp time
+ string api
+ string provider
+ string model
+ string purpose
+ string task
+ Usage usage
+ Price price
}
UsageCall --> `Usage`
UsageCall --> `Price`
%% Price is a model's, in dollars per million tokens.
class Price {
+ double input
+ double cached_input
+ double cache_write
+ double output
}
%% ContextPart is one category of what a prompt carries.
class ContextPart {
+ string name
+ int64 tokens
}
%% Goal is what a session works toward.
class Goal {
+ string condition
+ int32 continues
+ int32 max
+ string last
}
%% Request message for SessionService.SetGoal.
class SetGoalRequest {
+ string workspace
+ string condition
}
%% Response message for SessionService.SetGoal.
class SetGoalResponse {
+ Goal goal
}
SetGoalResponse --> `Goal`
%% Request message for SessionService.GetGoal.
class GetGoalRequest {
+ string workspace
}
%% Response message for SessionService.GetGoal.
class GetGoalResponse {
+ Goal goal
}
GetGoalResponse --> `Goal`
%% Request message for SessionService.ClearGoal.
class ClearGoalRequest {
+ string workspace
}
%% Response message for SessionService.ClearGoal.
class ClearGoalResponse {
}
%% Request message for SessionService.Compact.
class CompactRequest {
+ string workspace
+ string focus
}
%% Response message for SessionService.Compact.
class CompactResponse {
+ int32 events_compacted
+ int32 summary_chars
+ Usage before
+ Usage after
}
CompactResponse --> `Usage`
CompactResponse --> `Usage`
%% A prompt the conversation can be rewound to: its place in the transcript, its text and time, the files the agent changed from it on, and whether the conversation can go back to it.
class RewindPoint {
+ int32 index
+ string text
+ google.protobuf.Timestamp time
+ List~string~ files
+ bool conversation
}
%% Request message for SessionService.ListRewindPoints.
class ListRewindPointsRequest {
+ string workspace
}
%% Response message for SessionService.ListRewindPoints.
class ListRewindPointsResponse {
+ List~RewindPoint~ points
}
ListRewindPointsResponse --> `RewindPoint`
%% Request message for SessionService.Rewind.
class RewindRequest {
+ string workspace
+ int32 index
+ string mode
+ bool force
}
%% Response message for SessionService.Rewind.
class RewindResponse {
+ string mode
+ List~string~ restored
+ string prompt
+ CompactResponse compacted
}
RewindResponse --> `CompactResponse`
%% Request message for SessionService.SearchSession.
class SearchSessionRequest {
+ string workspace
+ string terms
}
%% Response message for SessionService.SearchSession.
class SearchSessionResponse {
+ int32 found
+ string prompt
}
%% BackgroundRun is a turn the service runs with no client attached.
class BackgroundRun {
+ string id
+ string workspace
+ string session_id
+ string prompt
+ string state
+ google.protobuf.Timestamp started
+ google.protobuf.Timestamp ended
+ double cost_usd
+ int32 waiting
+ string error
+ string workflow_run
}
%% Request message for SessionService.StartBackground.
class StartBackgroundRequest {
+ string workspace
+ Turn turn
}
StartBackgroundRequest --> `Turn`
%% Response message for SessionService.StartBackground.
class StartBackgroundResponse {
+ BackgroundRun run
}
StartBackgroundResponse --> `BackgroundRun`
%% Request message for SessionService.ListBackground.
class ListBackgroundRequest {
}
%% Response message for SessionService.ListBackground.
class ListBackgroundResponse {
+ List~BackgroundRun~ runs
}
ListBackgroundResponse --> `BackgroundRun`
%% Request message for SessionService.WatchBackground.
class WatchBackgroundRequest {
+ string id
+ bool follow
}
%% Response message for SessionService.WatchBackground.
class WatchBackgroundResponse {
+ TurnEvent event
}
WatchBackgroundResponse --> `TurnEvent`
%% Request message for SessionService.StopBackground.
class StopBackgroundRequest {
+ string id
}
%% Response message for SessionService.StopBackground.
class StopBackgroundResponse {
+ BackgroundRun run
}
StopBackgroundResponse --> `BackgroundRun`
%% Request message for SessionService.ListSessionTools.
class ListSessionToolsRequest {
+ string workspace
+ string session_id
}
%% One tool call of a saved session: its call, its result, and the prompt it ran under (turn: the session's n-th prompt, 0 first; prompt: its start).
class SessionTool {
+ int32 turn
+ string prompt
+ ToolCall call
+ ToolResult result
}
SessionTool --> `ToolCall`
SessionTool --> `ToolResult`
%% Response message for SessionService.ListSessionTools.
class ListSessionToolsResponse {
+ List~SessionTool~ tools
}
ListSessionToolsResponse --> `SessionTool`
%% Request message for SessionService.GetReasoning.
class GetReasoningRequest {
+ string workspace
+ string session_id
+ Optional~int32~ turn
}
%% One node of a turn's reasoning graph: parent is the ID of the node it hangs from ("" for the turn).
class ReasoningNode {
+ string id
+ string parent
+ string kind
+ string title
+ string text
+ string author
+ string provider
+ string model
+ string tool
+ google.protobuf.Struct args
+ google.protobuf.Struct result
+ string status
+ google.protobuf.Timestamp start
+ int64 duration_ms
+ Usage usage
+ bool hidden
}
ReasoningNode --> `Usage`
%% One turn of a session, summed up for the turn picker.
class ReasoningTurn {
+ int32 index
+ string prompt
+ google.protobuf.Timestamp start
+ int32 calls
+ int32 thoughts
+ Usage usage
}
ReasoningTurn --> `Usage`
%% Response message for SessionService.GetReasoning.
class GetReasoningResponse {
+ List~ReasoningTurn~ turns
+ int32 turn
+ List~ReasoningNode~ nodes
+ bool cut
}
GetReasoningResponse --> `ReasoningTurn`
GetReasoningResponse --> `ReasoningNode`
class SessionService {
<<service>>
+ListSessions(ListSessionsRequest) ListSessionsResponse
+GetActiveSession(GetActiveSessionRequest) GetActiveSessionResponse
+NewSession(NewSessionRequest) NewSessionResponse
+OpenSession(OpenSessionRequest) OpenSessionResponse
+LoadSession(LoadSessionRequest) LoadSessionResponse
+ListSessionTools(ListSessionToolsRequest) ListSessionToolsResponse
+GetReasoning(GetReasoningRequest) GetReasoningResponse
+SaveSnapshot(SaveSnapshotRequest) SaveSnapshotResponse
+RenameSession(RenameSessionRequest) RenameSessionResponse
+SetSessionModel(SetSessionModelRequest) SetSessionModelResponse
+PreviewSessionModel(PreviewSessionModelRequest) PreviewSessionModelResponse
+GetSessionOptimizer(GetSessionOptimizerRequest) GetSessionOptimizerResponse
+SetSessionOptimizer(SetSessionOptimizerRequest) SetSessionOptimizerResponse
+GetSessionTiers(GetSessionTiersRequest) GetSessionTiersResponse
+SetSessionTiers(SetSessionTiersRequest) SetSessionTiersResponse
+DeleteSession(DeleteSessionRequest) DeleteSessionResponse
+ForkSession(ForkSessionRequest) ForkSessionResponse
+ExportSession(ExportSessionRequest) ExportSessionResponse
+MoveSession(MoveSessionRequest) MoveSessionResponse
+RunTurn(RunTurnRequest) Stream~RunTurnResponse~
+StopTurn(StopTurnRequest) StopTurnResponse
+Steer(SteerRequest) SteerResponse
+Approve(ApproveRequest) ApproveResponse
+Answer(AnswerRequest) AnswerResponse
+GetUsage(GetUsageRequest) GetUsageResponse
+Compact(CompactRequest) CompactResponse
+SetGoal(SetGoalRequest) SetGoalResponse
+GetGoal(GetGoalRequest) GetGoalResponse
+ClearGoal(ClearGoalRequest) ClearGoalResponse
+SearchSession(SearchSessionRequest) SearchSessionResponse
+ListRewindPoints(ListRewindPointsRequest) ListRewindPointsResponse
+Rewind(RewindRequest) RewindResponse
+StartBackground(StartBackgroundRequest) StartBackgroundResponse
+ListBackground(ListBackgroundRequest) ListBackgroundResponse
+WatchBackground(WatchBackgroundRequest) Stream~WatchBackgroundResponse~
+StopBackground(StopBackgroundRequest) StopBackgroundResponse
}
SessionService --> `ListSessionsRequest`
SessionService --> `ListSessionsResponse`
SessionService --> `GetActiveSessionRequest`
SessionService --> `GetActiveSessionResponse`
SessionService --> `NewSessionRequest`
SessionService --> `NewSessionResponse`
SessionService --> `OpenSessionRequest`
SessionService --> `OpenSessionResponse`
SessionService --> `LoadSessionRequest`
SessionService --> `LoadSessionResponse`
SessionService --> `ListSessionToolsRequest`
SessionService --> `ListSessionToolsResponse`
SessionService --> `GetReasoningRequest`
SessionService --> `GetReasoningResponse`
SessionService --> `SaveSnapshotRequest`
SessionService --> `SaveSnapshotResponse`
SessionService --> `RenameSessionRequest`
SessionService --> `RenameSessionResponse`
SessionService --> `SetSessionModelRequest`
SessionService --> `SetSessionModelResponse`
SessionService --> `PreviewSessionModelRequest`
SessionService --> `PreviewSessionModelResponse`
SessionService --> `GetSessionOptimizerRequest`
SessionService --> `GetSessionOptimizerResponse`
SessionService --> `SetSessionOptimizerRequest`
SessionService --> `SetSessionOptimizerResponse`
SessionService --> `GetSessionTiersRequest`
SessionService --> `GetSessionTiersResponse`
SessionService --> `SetSessionTiersRequest`
SessionService --> `SetSessionTiersResponse`
SessionService --> `DeleteSessionRequest`
SessionService --> `DeleteSessionResponse`
SessionService --> `ForkSessionRequest`
SessionService --> `ForkSessionResponse`
SessionService --> `ExportSessionRequest`
SessionService --> `ExportSessionResponse`
SessionService --> `MoveSessionRequest`
SessionService --> `MoveSessionResponse`
SessionService --> `RunTurnRequest`
SessionService --o `RunTurnResponse` : server stream
SessionService --> `StopTurnRequest`
SessionService --> `StopTurnResponse`
SessionService --> `SteerRequest`
SessionService --> `SteerResponse`
SessionService --> `ApproveRequest`
SessionService --> `ApproveResponse`
SessionService --> `AnswerRequest`
SessionService --> `AnswerResponse`
SessionService --> `GetUsageRequest`
SessionService --> `GetUsageResponse`
SessionService --> `CompactRequest`
SessionService --> `CompactResponse`
SessionService --> `SetGoalRequest`
SessionService --> `SetGoalResponse`
SessionService --> `GetGoalRequest`
SessionService --> `GetGoalResponse`
SessionService --> `ClearGoalRequest`
SessionService --> `ClearGoalResponse`
SessionService --> `SearchSessionRequest`
SessionService --> `SearchSessionResponse`
SessionService --> `ListRewindPointsRequest`
SessionService --> `ListRewindPointsResponse`
SessionService --> `RewindRequest`
SessionService --> `RewindResponse`
SessionService --> `StartBackgroundRequest`
SessionService --> `StartBackgroundResponse`
SessionService --> `ListBackgroundRequest`
SessionService --> `ListBackgroundResponse`
SessionService --> `WatchBackgroundRequest`
SessionService --o `WatchBackgroundResponse` : server stream
SessionService --> `StopBackgroundRequest`
SessionService --> `StopBackgroundResponse`
FQN: blitz.v1
SessionService runs conversations in a workspace: saved sessions, turns, steering, and the answers the agent waits for. Every request names its workspace by absolute directory; the service opens it on first use. Errors carry an ErrorInfo detail.
classDiagram
direction LR
class SessionService {
<<service>>
+ListSessions(ListSessionsRequest) ListSessionsResponse
+GetActiveSession(GetActiveSessionRequest) GetActiveSessionResponse
+NewSession(NewSessionRequest) NewSessionResponse
+OpenSession(OpenSessionRequest) OpenSessionResponse
+LoadSession(LoadSessionRequest) LoadSessionResponse
+ListSessionTools(ListSessionToolsRequest) ListSessionToolsResponse
+GetReasoning(GetReasoningRequest) GetReasoningResponse
+SaveSnapshot(SaveSnapshotRequest) SaveSnapshotResponse
+RenameSession(RenameSessionRequest) RenameSessionResponse
+SetSessionModel(SetSessionModelRequest) SetSessionModelResponse
+PreviewSessionModel(PreviewSessionModelRequest) PreviewSessionModelResponse
+GetSessionOptimizer(GetSessionOptimizerRequest) GetSessionOptimizerResponse
+SetSessionOptimizer(SetSessionOptimizerRequest) SetSessionOptimizerResponse
+GetSessionTiers(GetSessionTiersRequest) GetSessionTiersResponse
+SetSessionTiers(SetSessionTiersRequest) SetSessionTiersResponse
+DeleteSession(DeleteSessionRequest) DeleteSessionResponse
+ForkSession(ForkSessionRequest) ForkSessionResponse
+ExportSession(ExportSessionRequest) ExportSessionResponse
+MoveSession(MoveSessionRequest) MoveSessionResponse
+RunTurn(RunTurnRequest) Stream~RunTurnResponse~
+StopTurn(StopTurnRequest) StopTurnResponse
+Steer(SteerRequest) SteerResponse
+Approve(ApproveRequest) ApproveResponse
+Answer(AnswerRequest) AnswerResponse
+GetUsage(GetUsageRequest) GetUsageResponse
+Compact(CompactRequest) CompactResponse
+SetGoal(SetGoalRequest) SetGoalResponse
+GetGoal(GetGoalRequest) GetGoalResponse
+ClearGoal(ClearGoalRequest) ClearGoalResponse
+SearchSession(SearchSessionRequest) SearchSessionResponse
+ListRewindPoints(ListRewindPointsRequest) ListRewindPointsResponse
+Rewind(RewindRequest) RewindResponse
+StartBackground(StartBackgroundRequest) StartBackgroundResponse
+ListBackground(ListBackgroundRequest) ListBackgroundResponse
+WatchBackground(WatchBackgroundRequest) Stream~WatchBackgroundResponse~
+StopBackground(StopBackgroundRequest) StopBackgroundResponse
}
SessionService --> `ListSessionsRequest`
SessionService --> `ListSessionsResponse`
SessionService --> `GetActiveSessionRequest`
SessionService --> `GetActiveSessionResponse`
SessionService --> `NewSessionRequest`
SessionService --> `NewSessionResponse`
SessionService --> `OpenSessionRequest`
SessionService --> `OpenSessionResponse`
SessionService --> `LoadSessionRequest`
SessionService --> `LoadSessionResponse`
SessionService --> `ListSessionToolsRequest`
SessionService --> `ListSessionToolsResponse`
SessionService --> `GetReasoningRequest`
SessionService --> `GetReasoningResponse`
SessionService --> `SaveSnapshotRequest`
SessionService --> `SaveSnapshotResponse`
SessionService --> `RenameSessionRequest`
SessionService --> `RenameSessionResponse`
SessionService --> `SetSessionModelRequest`
SessionService --> `SetSessionModelResponse`
SessionService --> `PreviewSessionModelRequest`
SessionService --> `PreviewSessionModelResponse`
SessionService --> `GetSessionOptimizerRequest`
SessionService --> `GetSessionOptimizerResponse`
SessionService --> `SetSessionOptimizerRequest`
SessionService --> `SetSessionOptimizerResponse`
SessionService --> `GetSessionTiersRequest`
SessionService --> `GetSessionTiersResponse`
SessionService --> `SetSessionTiersRequest`
SessionService --> `SetSessionTiersResponse`
SessionService --> `DeleteSessionRequest`
SessionService --> `DeleteSessionResponse`
SessionService --> `ForkSessionRequest`
SessionService --> `ForkSessionResponse`
SessionService --> `ExportSessionRequest`
SessionService --> `ExportSessionResponse`
SessionService --> `MoveSessionRequest`
SessionService --> `MoveSessionResponse`
SessionService --> `RunTurnRequest`
SessionService --o `RunTurnResponse` : server stream
SessionService --> `StopTurnRequest`
SessionService --> `StopTurnResponse`
SessionService --> `SteerRequest`
SessionService --> `SteerResponse`
SessionService --> `ApproveRequest`
SessionService --> `ApproveResponse`
SessionService --> `AnswerRequest`
SessionService --> `AnswerResponse`
SessionService --> `GetUsageRequest`
SessionService --> `GetUsageResponse`
SessionService --> `CompactRequest`
SessionService --> `CompactResponse`
SessionService --> `SetGoalRequest`
SessionService --> `SetGoalResponse`
SessionService --> `GetGoalRequest`
SessionService --> `GetGoalResponse`
SessionService --> `ClearGoalRequest`
SessionService --> `ClearGoalResponse`
SessionService --> `SearchSessionRequest`
SessionService --> `SearchSessionResponse`
SessionService --> `ListRewindPointsRequest`
SessionService --> `ListRewindPointsResponse`
SessionService --> `RewindRequest`
SessionService --> `RewindResponse`
SessionService --> `StartBackgroundRequest`
SessionService --> `StartBackgroundResponse`
SessionService --> `ListBackgroundRequest`
SessionService --> `ListBackgroundResponse`
SessionService --> `WatchBackgroundRequest`
SessionService --o `WatchBackgroundResponse` : server stream
SessionService --> `StopBackgroundRequest`
SessionService --> `StopBackgroundResponse`
| Method | Parameter (In) | Parameter (Out) | Description |
|---|---|---|---|
| ListSessions | ListSessionsRequest | ListSessionsResponse | Returns the workspace’s sessions (or with all, every saved session), newest first, without their messages. |
| GetActiveSession | GetActiveSessionRequest | GetActiveSessionResponse | Returns the session prompts go to, with its messages. |
| NewSession | NewSessionRequest | NewSessionResponse | Starts a new session for the active agent and makes it active. It is named after its first prompt. |
| OpenSession | OpenSessionRequest | OpenSessionResponse | Opens the session to use at startup: the one resume names (an ID, or a snapshot to start a new session from), the latest in the workspace, or a new one. Fails with RESUME_FAILED when there is nothing to resume. |
| LoadSession | LoadSessionRequest | LoadSessionResponse | Makes a session active: by ID, or a new session copied from the snapshot a name refers to (branched). |
| ListSessionTools | ListSessionToolsRequest | ListSessionToolsResponse | The tool calls a saved session made, each with its result and the prompt it ran under, so a reopened chat shows them. |
| GetReasoning | GetReasoningRequest | GetReasoningResponse | A saved session’s turns, and the reasoning graph of one of them: its model calls, the reasoning they shared, the tools they called and the sub-agents they asked (spec_066_reasoning RSN-01). |
| SaveSnapshot | SaveSnapshotRequest | SaveSnapshotResponse | Saves a copy of the active session under a name (SNAPSHOT_NAME_TAKEN unless force). |
| RenameSession | RenameSessionRequest | RenameSessionResponse | Sets the active session’s title. |
| SetSessionModel | SetSessionModelRequest | SetSessionModelResponse | Moves a conversation to a model from its next turn ("" back to the workspace’s), compacting it first when it wouldn’t fit, and says what the move means (spec_056_conversation_adapters CA-100, CA-101; BAD_MODEL_REF, SESSION_NOT_FOUND). |
| PreviewSessionModel | PreviewSessionModelRequest | PreviewSessionModelResponse | Says what moving a conversation to a model would mean, without moving it (CA-101). |
| GetSessionOptimizer | GetSessionOptimizerRequest | GetSessionOptimizerResponse | A conversation’s prompt and context optimizer settings, resolved (.agents/specs/008 OPT-09; SESSION_NOT_FOUND). |
| SetSessionOptimizer | SetSessionOptimizerRequest | SetSessionOptimizerResponse | Replaces a conversation’s optimizer settings from its next model call, and returns them resolved (OPT-09; SESSION_NOT_FOUND; an unknown mode is INVALID_SETTING). |
| GetSessionTiers | GetSessionTiersRequest | GetSessionTiersResponse | A conversation’s model tiering settings, resolved against global [tiers] (.agents/specs/009 TIER-10; SESSION_NOT_FOUND). |
| SetSessionTiers | SetSessionTiersRequest | SetSessionTiersResponse | Replaces a conversation’s model tiering settings from its next model call, and returns them resolved (TIER-10; SESSION_NOT_FOUND; invalid thresholds or model references are INVALID_SETTING). |
| DeleteSession | DeleteSessionRequest | DeleteSessionResponse | Deletes a saved session or snapshot, by ID (another workspace’s too): its transcript and history. The workspace’s active session, or one a background run uses, is refused (SESSION_OPEN); an unknown ID is SESSION_NOT_FOUND. |
| ForkSession | ForkSessionRequest | ForkSessionResponse | Starts a copy of the active session up to and including a prompt turn, in the transcript and the event log, and makes it active (/fork). |
| ExportSession | ExportSessionRequest | ExportSessionResponse | Returns a session as Markdown, secrets masked (/export). |
| MoveSession | MoveSessionRequest | MoveSessionResponse | Carries a session into this workspace from the one it was in, and makes it active there (/cd). |
| RunTurn | RunTurnRequest | Stream<RunTurnResponse> | Runs one turn in a session and streams its events, ending with TurnFinished. Cancelling the call interrupts the turn. While it runs, answer approval requests and questions with Approve and Answer, and send steer messages with Steer. With a turn_id the turn outlives the call: a stream that drops (the network changed under it) leaves it running, and the same request sent again, with after_seq the last seq received, takes its events up from there (UNKNOWN_TURN once the service has forgotten it). StopTurn stops it; left with no stream for a minute, it’s stopped. |
| StopTurn | StopTurnRequest | StopTurnResponse | Stops a turn started with a turn_id, and waits for it to end (UNKNOWN_TURN). One that has already ended is no error. |
| Steer | SteerRequest | SteerResponse | Queues a message for the agent while a turn runs; it reads it with its next tool result. Fails with PROMPT_BLOCKED if a hook refuses it. |
| Approve | ApproveRequest | ApproveResponse | Answers an approval request from a running turn. |
| Answer | AnswerRequest | AnswerResponse | Answers a question from a running turn. |
| GetUsage | GetUsageRequest | GetUsageResponse | Returns the active session’s usage and context size. |
| Compact | CompactRequest | CompactResponse | Summarises the active session’s older turns to shrink the model’s context (NOTHING_TO_COMPACT when it is too short). |
| SetGoal | SetGoalRequest | SetGoalResponse | Gives the active session a goal: after each turn a model judges it, and the agent is sent on until it holds (/goal). |
| GetGoal | GetGoalRequest | GetGoalResponse | Returns the active session’s goal (NO_GOAL). |
| ClearGoal | ClearGoalRequest | ClearGoalResponse | Removes the active session’s goal (NO_GOAL). |
| SearchSession | SearchSessionRequest | SearchSessionResponse | Looks for terms in the active session’s transcript and returns the prompt that asks the agent about the matches (run it as a turn). |
| ListRewindPoints | ListRewindPointsRequest | ListRewindPointsResponse | Lists the active session’s prompts, which it can be rewound to. |
| Rewind | RewindRequest | RewindResponse | Takes the active session back to one of its prompts: files, conversation or both, or summarizes either side of it (SESSION_BUSY, NOT_REWIND_POINT, CANT_REWIND_CONVERSATION, UNDO_CONFLICT unless force). |
| StartBackground | StartBackgroundRequest | StartBackgroundResponse | Background runs (blitz –bg, agents, attach, logs, stop): turns the service runs in sessions of their own, with no client attached. Their approval requests and questions wait until a client watching the run answers them with Approve and Answer. Starts a turn in a new session of the workspace, without making it the active one, and returns at once. |
| ListBackground | ListBackgroundRequest | ListBackgroundResponse | Returns the service’s background runs in every workspace, newest first: those running or waiting, and the latest that ended. |
| WatchBackground | WatchBackgroundRequest | Stream<WatchBackgroundResponse> | Streams a background run’s events so far (the requests still waiting among them) and, with follow, those to come, ending with TurnFinished once it has ended (UNKNOWN_RUN). |
| StopBackground | StopBackgroundRequest | StopBackgroundResponse | Stops a background run (UNKNOWN_RUN). |
classDiagram
direction LR
%% SessionInfo describes a saved session.
class SessionInfo {
+ string id
+ string title
+ string agent
+ string workspace
+ string snapshot
+ string from
+ int32 message_count
+ google.protobuf.Timestamp created
+ google.protobuf.Timestamp updated
+ List~Message~ messages
+ string moved_from
+ int32 moved_at
+ string origin
+ string model
}
SessionInfo --> `Message`
classDiagram
direction LR
%% Message is one message in a transcript.
class Message {
+ string role
+ string text
+ google.protobuf.Timestamp time
+ string kind
}
classDiagram
direction LR
%% Request message for SessionService.ListSessions.
class ListSessionsRequest {
+ string workspace
+ bool all
}
classDiagram
direction LR
%% Response message for SessionService.ListSessions.
class ListSessionsResponse {
+ List~SessionInfo~ sessions
}
ListSessionsResponse --> `SessionInfo`
classDiagram
direction LR
%% Request message for SessionService.GetActiveSession.
class GetActiveSessionRequest {
+ string workspace
}
classDiagram
direction LR
%% Response message for SessionService.GetActiveSession.
class GetActiveSessionResponse {
+ SessionInfo session
}
GetActiveSessionResponse --> `SessionInfo`
classDiagram
direction LR
%% Request message for SessionService.NewSession.
class NewSessionRequest {
+ string workspace
}
classDiagram
direction LR
%% Response message for SessionService.NewSession.
class NewSessionResponse {
+ SessionInfo session
}
NewSessionResponse --> `SessionInfo`
classDiagram
direction LR
%% Request message for SessionService.OpenSession.
class OpenSessionRequest {
+ string workspace
+ string resume
+ bool continue_latest
}
classDiagram
direction LR
%% Response message for SessionService.OpenSession.
class OpenSessionResponse {
+ SessionInfo session
+ bool resumed
}
OpenSessionResponse --> `SessionInfo`
classDiagram
direction LR
%% Request message for SessionService.LoadSession.
class LoadSessionRequest {
+ string workspace
+ string ref
}
classDiagram
direction LR
%% Response message for SessionService.LoadSession.
class LoadSessionResponse {
+ SessionInfo session
+ bool branched
}
LoadSessionResponse --> `SessionInfo`
classDiagram
direction LR
%% Request message for SessionService.SaveSnapshot.
class SaveSnapshotRequest {
+ string workspace
+ string name
+ bool force
}
classDiagram
direction LR
%% Response message for SessionService.SaveSnapshot.
class SaveSnapshotResponse {
+ SessionInfo snapshot
}
SaveSnapshotResponse --> `SessionInfo`
classDiagram
direction LR
%% Request message for SessionService.RenameSession.
class RenameSessionRequest {
+ string workspace
+ string title
}
classDiagram
direction LR
%% Response message for SessionService.RenameSession.
class RenameSessionResponse {
+ SessionInfo session
}
RenameSessionResponse --> `SessionInfo`
classDiagram
direction LR
%% What moving a conversation to a model means (spec_056 CA-101).
class ModelPreview {
+ string model
+ int64 tokens
+ double cost_usd
+ bool priced
+ bool compacts
+ List~string~ unseen
+ bool no_tools
+ string active_pin
}
classDiagram
direction LR
%% A conversation's prompt and context optimizer settings (.agents/specs/008 OPT-01).
class OptimizerSettings {
+ bool enabled
+ string mode
+ int32 max_tool_tokens
+ bool strip_filler
}
classDiagram
direction LR
%% Request message for SessionService.GetSessionOptimizer.
class GetSessionOptimizerRequest {
+ string workspace
+ string session_id
}
classDiagram
direction LR
%% Response message for SessionService.GetSessionOptimizer.
class GetSessionOptimizerResponse {
+ OptimizerSettings settings
}
GetSessionOptimizerResponse --> `OptimizerSettings`
classDiagram
direction LR
%% Request message for SessionService.SetSessionOptimizer.
class SetSessionOptimizerRequest {
+ string workspace
+ string session_id
+ OptimizerSettings settings
}
SetSessionOptimizerRequest --> `OptimizerSettings`
classDiagram
direction LR
%% Response message for SessionService.SetSessionOptimizer.
class SetSessionOptimizerResponse {
+ OptimizerSettings settings
}
SetSessionOptimizerResponse --> `OptimizerSettings`
classDiagram
direction LR
%% A conversation's resolved model tiering settings (.agents/specs/009 TIER-01, TIER-10).
class TierSettings {
+ bool enabled
+ string lightweight
+ string mid
+ string frontier
+ bool escalate
+ int32 escalate_after_failures
+ int32 escalate_budget_pct
+ bool edge_compress
+ int32 edge_compress_bytes
+ bool verify_diff
+ bool dynamic_effort
}
classDiagram
direction LR
%% Request message for SessionService.GetSessionTiers.
class GetSessionTiersRequest {
+ string workspace
+ string session_id
}
classDiagram
direction LR
%% Response message for SessionService.GetSessionTiers.
class GetSessionTiersResponse {
+ TierSettings settings
}
GetSessionTiersResponse --> `TierSettings`
classDiagram
direction LR
%% Request message for SessionService.SetSessionTiers.
class SetSessionTiersRequest {
+ string workspace
+ string session_id
+ TierSettings settings
}
SetSessionTiersRequest --> `TierSettings`
classDiagram
direction LR
%% Response message for SessionService.SetSessionTiers.
class SetSessionTiersResponse {
+ TierSettings settings
}
SetSessionTiersResponse --> `TierSettings`
classDiagram
direction LR
%% Request message for SessionService.SetSessionModel.
class SetSessionModelRequest {
+ string workspace
+ string session_id
+ string model
}
classDiagram
direction LR
%% Response message for SessionService.SetSessionModel.
class SetSessionModelResponse {
+ ModelPreview preview
}
SetSessionModelResponse --> `ModelPreview`
classDiagram
direction LR
%% Request message for SessionService.PreviewSessionModel.
class PreviewSessionModelRequest {
+ string workspace
+ string session_id
+ string model
}
classDiagram
direction LR
%% Response message for SessionService.PreviewSessionModel.
class PreviewSessionModelResponse {
+ ModelPreview preview
}
PreviewSessionModelResponse --> `ModelPreview`
classDiagram
direction LR
%% Request message for SessionService.DeleteSession.
class DeleteSessionRequest {
+ string workspace
+ string session_id
}
classDiagram
direction LR
%% Response message for SessionService.DeleteSession.
class DeleteSessionResponse {
}
classDiagram
direction LR
%% Request message for SessionService.ForkSession.
class ForkSessionRequest {
+ string workspace
+ int32 turn
}
classDiagram
direction LR
%% Response message for SessionService.ForkSession.
class ForkSessionResponse {
+ SessionInfo session
}
ForkSessionResponse --> `SessionInfo`
classDiagram
direction LR
%% Request message for SessionService.ExportSession.
class ExportSessionRequest {
+ string workspace
+ string session_id
}
classDiagram
direction LR
%% Response message for SessionService.ExportSession.
class ExportSessionResponse {
+ string markdown
}
classDiagram
direction LR
%% Request message for SessionService.MoveSession.
class MoveSessionRequest {
+ string workspace
+ string session_id
}
classDiagram
direction LR
%% Response message for SessionService.MoveSession.
class MoveSessionResponse {
+ SessionInfo session
}
MoveSessionResponse --> `SessionInfo`
classDiagram
direction LR
%% Request message for SessionService.RunTurn.
class RunTurnRequest {
+ string workspace
+ string session_id
+ Turn turn
+ string turn_id
+ uint64 after_seq
}
RunTurnRequest --> `Turn`
classDiagram
direction LR
%% Response message for SessionService.RunTurn.
class RunTurnResponse {
+ TurnEvent event
+ uint64 seq
}
RunTurnResponse --> `TurnEvent`
classDiagram
direction LR
%% Request message for SessionService.StopTurn.
class StopTurnRequest {
+ string workspace
+ string turn_id
}
classDiagram
direction LR
%% Response message for SessionService.StopTurn.
class StopTurnResponse {
}
classDiagram
direction LR
%% Request message for SessionService.Steer.
class SteerRequest {
+ string workspace
+ string session_id
+ string text
}
classDiagram
direction LR
%% Response message for SessionService.Steer.
class SteerResponse {
}
classDiagram
direction LR
%% Request message for SessionService.Approve.
class ApproveRequest {
+ string workspace
+ string request_id
+ Decision decision
}
ApproveRequest --> `Decision`
classDiagram
direction LR
%% Response message for SessionService.Approve.
class ApproveResponse {
}
classDiagram
direction LR
%% Request message for SessionService.Answer.
class AnswerRequest {
+ string workspace
+ string request_id
+ string answer
}
classDiagram
direction LR
%% Response message for SessionService.Answer.
class AnswerResponse {
}
classDiagram
direction LR
%% Request message for SessionService.GetUsage.
class GetUsageRequest {
+ string workspace
+ bool parts
+ bool calls
+ string session_id
}
classDiagram
direction LR
%% Response message for SessionService.GetUsage.
class GetUsageResponse {
+ Usage usage
+ bool auto_compact
+ int32 threshold
+ int32 keep
+ List~ContextPart~ parts
+ List~UsageGroup~ by_model
+ List~UsageGroup~ by_purpose
+ List~UsageCall~ calls
}
GetUsageResponse --> `Usage`
GetUsageResponse --> `ContextPart`
GetUsageResponse --> `UsageGroup`
GetUsageResponse --> `UsageGroup`
GetUsageResponse --> `UsageCall`
classDiagram
direction LR
%% UsageGroup is the usage of one model, or one purpose, in a session.
class UsageGroup {
+ string name
+ Usage usage
}
UsageGroup --> `Usage`
classDiagram
direction LR
%% UsageCall is one entry of a session's ledger: a model call, a speech call or a search's billed queries (spec_056 CA-120).
class UsageCall {
+ google.protobuf.Timestamp time
+ string api
+ string provider
+ string model
+ string purpose
+ string task
+ Usage usage
+ Price price
}
UsageCall --> `Usage`
UsageCall --> `Price`
classDiagram
direction LR
%% Price is a model's, in dollars per million tokens.
class Price {
+ double input
+ double cached_input
+ double cache_write
+ double output
}
classDiagram
direction LR
%% ContextPart is one category of what a prompt carries.
class ContextPart {
+ string name
+ int64 tokens
}
classDiagram
direction LR
%% Goal is what a session works toward.
class Goal {
+ string condition
+ int32 continues
+ int32 max
+ string last
}
classDiagram
direction LR
%% Request message for SessionService.SetGoal.
class SetGoalRequest {
+ string workspace
+ string condition
}
classDiagram
direction LR
%% Response message for SessionService.SetGoal.
class SetGoalResponse {
+ Goal goal
}
SetGoalResponse --> `Goal`
classDiagram
direction LR
%% Request message for SessionService.GetGoal.
class GetGoalRequest {
+ string workspace
}
classDiagram
direction LR
%% Response message for SessionService.GetGoal.
class GetGoalResponse {
+ Goal goal
}
GetGoalResponse --> `Goal`
classDiagram
direction LR
%% Request message for SessionService.ClearGoal.
class ClearGoalRequest {
+ string workspace
}
classDiagram
direction LR
%% Response message for SessionService.ClearGoal.
class ClearGoalResponse {
}
classDiagram
direction LR
%% Request message for SessionService.Compact.
class CompactRequest {
+ string workspace
+ string focus
}
classDiagram
direction LR
%% Response message for SessionService.Compact.
class CompactResponse {
+ int32 events_compacted
+ int32 summary_chars
+ Usage before
+ Usage after
}
CompactResponse --> `Usage`
CompactResponse --> `Usage`
classDiagram
direction LR
%% A prompt the conversation can be rewound to: its place in the transcript, its text and time, the files the agent changed from it on, and whether the conversation can go back to it.
class RewindPoint {
+ int32 index
+ string text
+ google.protobuf.Timestamp time
+ List~string~ files
+ bool conversation
}
classDiagram
direction LR
%% Request message for SessionService.ListRewindPoints.
class ListRewindPointsRequest {
+ string workspace
}
classDiagram
direction LR
%% Response message for SessionService.ListRewindPoints.
class ListRewindPointsResponse {
+ List~RewindPoint~ points
}
ListRewindPointsResponse --> `RewindPoint`
classDiagram
direction LR
%% Request message for SessionService.Rewind.
class RewindRequest {
+ string workspace
+ int32 index
+ string mode
+ bool force
}
classDiagram
direction LR
%% Response message for SessionService.Rewind.
class RewindResponse {
+ string mode
+ List~string~ restored
+ string prompt
+ CompactResponse compacted
}
RewindResponse --> `CompactResponse`
classDiagram
direction LR
%% Request message for SessionService.SearchSession.
class SearchSessionRequest {
+ string workspace
+ string terms
}
classDiagram
direction LR
%% Response message for SessionService.SearchSession.
class SearchSessionResponse {
+ int32 found
+ string prompt
}
classDiagram
direction LR
%% BackgroundRun is a turn the service runs with no client attached.
class BackgroundRun {
+ string id
+ string workspace
+ string session_id
+ string prompt
+ string state
+ google.protobuf.Timestamp started
+ google.protobuf.Timestamp ended
+ double cost_usd
+ int32 waiting
+ string error
+ string workflow_run
}
classDiagram
direction LR
%% Request message for SessionService.StartBackground.
class StartBackgroundRequest {
+ string workspace
+ Turn turn
}
StartBackgroundRequest --> `Turn`
classDiagram
direction LR
%% Response message for SessionService.StartBackground.
class StartBackgroundResponse {
+ BackgroundRun run
}
StartBackgroundResponse --> `BackgroundRun`
classDiagram
direction LR
%% Request message for SessionService.ListBackground.
class ListBackgroundRequest {
}
classDiagram
direction LR
%% Response message for SessionService.ListBackground.
class ListBackgroundResponse {
+ List~BackgroundRun~ runs
}
ListBackgroundResponse --> `BackgroundRun`
classDiagram
direction LR
%% Request message for SessionService.WatchBackground.
class WatchBackgroundRequest {
+ string id
+ bool follow
}
classDiagram
direction LR
%% Response message for SessionService.WatchBackground.
class WatchBackgroundResponse {
+ TurnEvent event
}
WatchBackgroundResponse --> `TurnEvent`
classDiagram
direction LR
%% Request message for SessionService.StopBackground.
class StopBackgroundRequest {
+ string id
}
classDiagram
direction LR
%% Response message for SessionService.StopBackground.
class StopBackgroundResponse {
+ BackgroundRun run
}
StopBackgroundResponse --> `BackgroundRun`
classDiagram
direction LR
%% Request message for SessionService.ListSessionTools.
class ListSessionToolsRequest {
+ string workspace
+ string session_id
}
classDiagram
direction LR
%% One tool call of a saved session: its call, its result, and the prompt it ran under (turn: the session's n-th prompt, 0 first; prompt: its start).
class SessionTool {
+ int32 turn
+ string prompt
+ ToolCall call
+ ToolResult result
}
SessionTool --> `ToolCall`
SessionTool --> `ToolResult`
classDiagram
direction LR
%% Response message for SessionService.ListSessionTools.
class ListSessionToolsResponse {
+ List~SessionTool~ tools
}
ListSessionToolsResponse --> `SessionTool`
classDiagram
direction LR
%% Request message for SessionService.GetReasoning.
class GetReasoningRequest {
+ string workspace
+ string session_id
+ Optional~int32~ turn
}
classDiagram
direction LR
%% One node of a turn's reasoning graph: parent is the ID of the node it hangs from ("" for the turn).
class ReasoningNode {
+ string id
+ string parent
+ string kind
+ string title
+ string text
+ string author
+ string provider
+ string model
+ string tool
+ google.protobuf.Struct args
+ google.protobuf.Struct result
+ string status
+ google.protobuf.Timestamp start
+ int64 duration_ms
+ Usage usage
+ bool hidden
}
ReasoningNode --> `Usage`
classDiagram
direction LR
%% One turn of a session, summed up for the turn picker.
class ReasoningTurn {
+ int32 index
+ string prompt
+ google.protobuf.Timestamp start
+ int32 calls
+ int32 thoughts
+ Usage usage
}
ReasoningTurn --> `Usage`
classDiagram
direction LR
%% Response message for SessionService.GetReasoning.
class GetReasoningResponse {
+ List~ReasoningTurn~ turns
+ int32 turn
+ List~ReasoningNode~ nodes
+ bool cut
}
GetReasoningResponse --> `ReasoningTurn`
GetReasoningResponse --> `ReasoningNode`
FQN: blitz.v1.SessionInfo
SessionInfo describes a saved session.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| id | 1 | string | ||
| title | 2 | string | Empty until the first prompt names it. | |
| agent | 3 | string | ||
| workspace | 4 | string | The workspace directory it belongs to (empty for old sessions). | |
| snapshot | 5 | string | The snapshot name, for a snapshot. | |
| from | 6 | string | The session this one was copied from. | |
| message_count | 7 | int32 | ||
| created | 8 | google.protobuf.Timestamp | ||
| updated | 9 | google.protobuf.Timestamp | ||
| messages | 10 | Message | Repeated | Filled in only where noted. |
| moved_from | 11 | string | The workspace /cd moved the session from, and how many messages it had then: earlier prompts were there (empty and 0 if never moved). | |
| moved_at | 12 | int32 | ||
| origin | 13 | string | What started it: “worker” (a worker’s run), “background” (a detached run, blitz –bg), or "" for a chat. | |
| model | 14 | string | The conversation’s own model (a model reference), "" when it runs on the workspace’s (spec_056_conversation_adapters CA-100). |
FQN: blitz.v1.Message
Message is one message in a transcript.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| role | 1 | string | “user” or “model”. | |
| text | 2 | string | ||
| time | 3 | google.protobuf.Timestamp | ||
| kind | 4 | string | For user messages: "" for a prompt (a rewind point), “steer”, “hook” (a stop hook’s request) or “plan” (an approved plan’s go-ahead). |
FQN: blitz.v1.ListSessionsRequest
Request message for SessionService.ListSessions.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| all | 2 | bool | Every saved session, not only this workspace’s. |
FQN: blitz.v1.ListSessionsResponse
Response message for SessionService.ListSessions.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| sessions | 1 | SessionInfo | Repeated |
FQN: blitz.v1.GetActiveSessionRequest
Request message for SessionService.GetActiveSession.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string |
FQN: blitz.v1.GetActiveSessionResponse
Response message for SessionService.GetActiveSession.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| session | 1 | SessionInfo | Unset when no session is active. |
FQN: blitz.v1.NewSessionRequest
Request message for SessionService.NewSession.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string |
FQN: blitz.v1.NewSessionResponse
Response message for SessionService.NewSession.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| session | 1 | SessionInfo |
FQN: blitz.v1.OpenSessionRequest
Request message for SessionService.OpenSession.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| resume | 2 | string | A session ID, a snapshot name, or “latest”; empty for a new session unless continue_latest. | |
| continue_latest | 3 | bool |
FQN: blitz.v1.OpenSessionResponse
Response message for SessionService.OpenSession.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| session | 1 | SessionInfo | ||
| resumed | 2 | bool | An existing session was resumed. |
FQN: blitz.v1.LoadSessionRequest
Request message for SessionService.LoadSession.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| ref | 2 | string | A session ID or snapshot name. |
FQN: blitz.v1.LoadSessionResponse
Response message for SessionService.LoadSession.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| session | 1 | SessionInfo | With its messages. | |
| branched | 2 | bool | A new session started from a snapshot. |
FQN: blitz.v1.SaveSnapshotRequest
Request message for SessionService.SaveSnapshot.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| name | 2 | string | ||
| force | 3 | bool |
FQN: blitz.v1.SaveSnapshotResponse
Response message for SessionService.SaveSnapshot.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| snapshot | 1 | SessionInfo |
FQN: blitz.v1.RenameSessionRequest
Request message for SessionService.RenameSession.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| title | 2 | string |
FQN: blitz.v1.RenameSessionResponse
Response message for SessionService.RenameSession.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| session | 1 | SessionInfo |
FQN: blitz.v1.ModelPreview
What moving a conversation to a model means (spec_056 CA-101).
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| model | 1 | string | The model reference ("" for the workspace’s model). | |
| tokens | 2 | int64 | About how many tokens the next turn reads again, with none cached. | |
| cost_usd | 3 | double | What reading them costs, when priced. | |
| priced | 4 | bool | ||
| compacts | 5 | bool | Whether the conversation is compacted first, to fit the model. | |
| unseen | 6 | string | Repeated | The attachments the model can’t see, described to it instead. |
| no_tools | 7 | bool | Whether the model can’t call tools (the agent only answers on it). | |
| active_pin | 8 | string | The active agent’s pinned model, which it keeps. |
FQN: blitz.v1.OptimizerSettings
A conversation's prompt and context optimizer settings (.agents/specs/008 OPT-01).
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| enabled | 1 | bool | The master switch (opt:enabled). | |
| mode | 2 | string | “general” or “coding” (opt:mode); "" for the default. | |
| max_tool_tokens | 3 | int32 | The estimated-token budget of one tool output value (opt:max_tool_tokens); 0 for the default. | |
| strip_filler | 4 | bool | Strip conversational filler from prompts (opt:strip_filler). |
FQN: blitz.v1.GetSessionOptimizerRequest
Request message for SessionService.GetSessionOptimizer.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| session_id | 2 | string |
FQN: blitz.v1.GetSessionOptimizerResponse
Response message for SessionService.GetSessionOptimizer.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| settings | 1 | OptimizerSettings |
FQN: blitz.v1.SetSessionOptimizerRequest
Request message for SessionService.SetSessionOptimizer.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| session_id | 2 | string | ||
| settings | 3 | OptimizerSettings |
FQN: blitz.v1.SetSessionOptimizerResponse
Response message for SessionService.SetSessionOptimizer.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| settings | 1 | OptimizerSettings |
FQN: blitz.v1.TierSettings
A conversation's resolved model tiering settings (.agents/specs/009 TIER-01, TIER-10).
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| enabled | 1 | bool | Master opt-in switch (tier:enabled). | |
| lightweight | 2 | string | Optional model override for the Lightweight tier (tier:lightweight). | |
| mid | 3 | string | Optional model override for the Mid-Tier (tier:mid). | |
| frontier | 4 | string | Optional model override for the Frontier tier (tier:frontier). | |
| escalate | 5 | bool | Enable waterfall and budget-cap escalation (tier:escalate). | |
| escalate_after_failures | 6 | int32 | Deterministic failures before escalating to Frontier (tier:escalate_after_failures). | |
| escalate_budget_pct | 7 | int32 | Budget percentage (1-100) burned with failures before escalating (tier:escalate_budget_pct). | |
| edge_compress | 8 | bool | Route oversized noisy tool outputs through Lightweight tier (tier:edge_compress). | |
| edge_compress_bytes | 9 | int32 | Byte threshold above which eligible tool outputs are edge-compressed (tier:edge_compress_bytes). | |
| verify_diff | 10 | bool | Run Frontier diff review after Mid-Tier coder modifies files (tier:verify_diff). | |
| dynamic_effort | 11 | bool | Dial reasoning effort dynamically by tier, failures, and prompt size when tiering is enabled (tier:dynamic_effort). |
FQN: blitz.v1.GetSessionTiersRequest
Request message for SessionService.GetSessionTiers.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| session_id | 2 | string |
FQN: blitz.v1.GetSessionTiersResponse
Response message for SessionService.GetSessionTiers.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| settings | 1 | TierSettings |
FQN: blitz.v1.SetSessionTiersRequest
Request message for SessionService.SetSessionTiers.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| session_id | 2 | string | ||
| settings | 3 | TierSettings |
FQN: blitz.v1.SetSessionTiersResponse
Response message for SessionService.SetSessionTiers.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| settings | 1 | TierSettings |
FQN: blitz.v1.SetSessionModelRequest
Request message for SessionService.SetSessionModel.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| session_id | 2 | string | ||
| model | 3 | string | A model reference (“provider/model” or a name); "" for the workspace’s model. |
FQN: blitz.v1.SetSessionModelResponse
Response message for SessionService.SetSessionModel.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| preview | 1 | ModelPreview |
FQN: blitz.v1.PreviewSessionModelRequest
Request message for SessionService.PreviewSessionModel.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| session_id | 2 | string | ||
| model | 3 | string |
FQN: blitz.v1.PreviewSessionModelResponse
Response message for SessionService.PreviewSessionModel.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| preview | 1 | ModelPreview |
FQN: blitz.v1.DeleteSessionRequest
Request message for SessionService.DeleteSession.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| session_id | 2 | string |
FQN: blitz.v1.DeleteSessionResponse
Response message for SessionService.DeleteSession.
| Field | Ordinal | Type | Label | Description |
|---|
FQN: blitz.v1.ForkSessionRequest
Request message for SessionService.ForkSession.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| turn | 2 | int32 | The last prompt turn to keep: 1 the first; 0 all of them. |
FQN: blitz.v1.ForkSessionResponse
Response message for SessionService.ForkSession.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| session | 1 | SessionInfo |
FQN: blitz.v1.ExportSessionRequest
Request message for SessionService.ExportSession.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| session_id | 2 | string | The session; empty for the active one. |
FQN: blitz.v1.ExportSessionResponse
Response message for SessionService.ExportSession.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| markdown | 1 | string |
FQN: blitz.v1.MoveSessionRequest
Request message for SessionService.MoveSession.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | The workspace it moves to. | |
| session_id | 2 | string |
FQN: blitz.v1.MoveSessionResponse
Response message for SessionService.MoveSession.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| session | 1 | SessionInfo |
FQN: blitz.v1.RunTurnRequest
Request message for SessionService.RunTurn.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| session_id | 2 | string | ||
| turn | 3 | Turn | ||
| turn_id | 4 | string | The caller’s name for this turn (letters, digits, - and _, up to 64; a UUID): the turn then outlives the call, and a request with the same turn_id joins it rather than starting another. Empty: the turn ends with the call. | |
| after_seq | 5 | uint64 | With a turn_id: the seq of the last event received, to be sent those after it (0: from the first kept). A turn the service doesn’t know is started only when this is 0. |
FQN: blitz.v1.RunTurnResponse
Response message for SessionService.RunTurn.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| event | 1 | TurnEvent | ||
| seq | 2 | uint64 | The event’s place in a turn started with a turn_id, from 1 (0 without one): what after_seq names. |
FQN: blitz.v1.StopTurnRequest
Request message for SessionService.StopTurn.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| turn_id | 2 | string |
FQN: blitz.v1.StopTurnResponse
Response message for SessionService.StopTurn.
| Field | Ordinal | Type | Label | Description |
|---|
FQN: blitz.v1.SteerRequest
Request message for SessionService.Steer.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| session_id | 2 | string | ||
| text | 3 | string |
FQN: blitz.v1.SteerResponse
Response message for SessionService.Steer.
| Field | Ordinal | Type | Label | Description |
|---|
FQN: blitz.v1.ApproveRequest
Request message for SessionService.Approve.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| request_id | 2 | string | ||
| decision | 3 | Decision |
FQN: blitz.v1.ApproveResponse
Response message for SessionService.Approve.
| Field | Ordinal | Type | Label | Description |
|---|
FQN: blitz.v1.AnswerRequest
Request message for SessionService.Answer.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| request_id | 2 | string | ||
| answer | 3 | string |
FQN: blitz.v1.AnswerResponse
Response message for SessionService.Answer.
| Field | Ordinal | Type | Label | Description |
|---|
FQN: blitz.v1.GetUsageRequest
Request message for SessionService.GetUsage.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| parts | 2 | bool | Also estimate what the context is made of (parts). | |
| calls | 3 | bool | Also list the session’s calls, oldest first (spec_056 CA-125). | |
| session_id | 4 | string | Another saved session’s usage, not the active one’s ("": the active session). Its context and parts aren’t given. |
FQN: blitz.v1.GetUsageResponse
Response message for SessionService.GetUsage.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| usage | 1 | Usage | ||
| auto_compact | 2 | bool | The context is compacted when it passes threshold tokens, keeping the last keep events. | |
| threshold | 3 | int32 | ||
| keep | 4 | int32 | ||
| parts | 5 | ContextPart | Repeated | What the context is made of, estimated by category, when asked for. |
| by_model | 6 | UsageGroup | Repeated | The session’s usage by model and by purpose (turn, compaction, review, task, speech, search, before), costliest first (spec_056 CA-125). |
| by_purpose | 7 | UsageGroup | Repeated | |
| calls | 8 | UsageCall | Repeated | Its calls, oldest first, when asked for. |
FQN: blitz.v1.UsageGroup
UsageGroup is the usage of one model, or one purpose, in a session.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| name | 1 | string | ||
| usage | 2 | Usage |
FQN: blitz.v1.UsageCall
UsageCall is one entry of a session's ledger: a model call, a speech call or a search's billed queries (spec_056 CA-120).
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| time | 1 | google.protobuf.Timestamp | ||
| api | 2 | string | Who answered: the wire API, the provider as configured and the model. | |
| provider | 3 | string | ||
| model | 4 | string | ||
| purpose | 5 | string | What it was for: turn, compaction, review, task, speech, search, or before (what was spent before the ledger was kept). | |
| task | 6 | string | The background task it ran for, if any. | |
| usage | 7 | Usage | ||
| price | 8 | Price | What it was charged per million tokens; unset with no price. |
FQN: blitz.v1.Price
Price is a model's, in dollars per million tokens.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| input | 1 | double | ||
| cached_input | 2 | double | ||
| cache_write | 3 | double | ||
| output | 4 | double |
FQN: blitz.v1.ContextPart
ContextPart is one category of what a prompt carries.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| name | 1 | string | system prompt, instructions and notes, tool declarations, your messages, replies, tool calls, tool results, images, earlier conversation (summary). | |
| tokens | 2 | int64 |
FQN: blitz.v1.Goal
Goal is what a session works toward.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| condition | 1 | string | ||
| continues | 2 | int32 | How often the agent was sent on, and the limit. | |
| max | 3 | int32 | ||
| last | 4 | string | The judge’s latest reason. |
FQN: blitz.v1.SetGoalRequest
Request message for SessionService.SetGoal.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| condition | 2 | string |
FQN: blitz.v1.SetGoalResponse
Response message for SessionService.SetGoal.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| goal | 1 | Goal |
FQN: blitz.v1.GetGoalRequest
Request message for SessionService.GetGoal.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string |
FQN: blitz.v1.GetGoalResponse
Response message for SessionService.GetGoal.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| goal | 1 | Goal |
FQN: blitz.v1.ClearGoalRequest
Request message for SessionService.ClearGoal.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string |
FQN: blitz.v1.ClearGoalResponse
Response message for SessionService.ClearGoal.
| Field | Ordinal | Type | Label | Description |
|---|
FQN: blitz.v1.CompactRequest
Request message for SessionService.Compact.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| focus | 2 | string | What the summary should keep. |
FQN: blitz.v1.CompactResponse
Response message for SessionService.Compact.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| events_compacted | 1 | int32 | ||
| summary_chars | 2 | int32 | ||
| before | 3 | Usage | ||
| after | 4 | Usage |
FQN: blitz.v1.RewindPoint
A prompt the conversation can be rewound to: its place in the transcript, its text and time, the files the agent changed from it on, and whether the conversation can go back to it.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| index | 1 | int32 | The prompt’s position in the transcript. | |
| text | 2 | string | ||
| time | 3 | google.protobuf.Timestamp | ||
| files | 4 | string | Repeated | Files the agent changed from this prompt until the next. |
| conversation | 5 | bool | Whether the conversation can be rewound to it. |
FQN: blitz.v1.ListRewindPointsRequest
Request message for SessionService.ListRewindPoints.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string |
FQN: blitz.v1.ListRewindPointsResponse
Response message for SessionService.ListRewindPoints.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| points | 1 | RewindPoint | Repeated |
FQN: blitz.v1.RewindRequest
Request message for SessionService.Rewind.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| index | 2 | int32 | ||
| mode | 3 | string | both, conversation, code, summarize_from or summarize_up_to. | |
| force | 4 | bool | Restore files even if they changed since the agent’s edits. |
FQN: blitz.v1.RewindResponse
Response message for SessionService.Rewind.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| mode | 1 | string | ||
| restored | 2 | string | Repeated | |
| prompt | 3 | string | The prompt’s text, to edit and send again. | |
| compacted | 4 | CompactResponse |
FQN: blitz.v1.SearchSessionRequest
Request message for SessionService.SearchSession.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| terms | 2 | string |
FQN: blitz.v1.SearchSessionResponse
Response message for SessionService.SearchSession.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| found | 1 | int32 | How many passages matched. | |
| prompt | 2 | string |
FQN: blitz.v1.BackgroundRun
BackgroundRun is a turn the service runs with no client attached.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| id | 1 | string | bg-1, bg-2, … for the service’s lifetime. | |
| workspace | 2 | string | ||
| session_id | 3 | string | ||
| prompt | 4 | string | The prompt’s first line. | |
| state | 5 | string | running, waiting (for an answer), done, failed or stopped. | |
| started | 6 | google.protobuf.Timestamp | ||
| ended | 7 | google.protobuf.Timestamp | Unset while it runs. | |
| cost_usd | 8 | double | ||
| waiting | 9 | int32 | Requests waiting for an answer. | |
| error | 10 | string | ||
| workflow_run | 11 | string | The workflow run it runs, when it runs one (GetWorkflowRun). |
FQN: blitz.v1.StartBackgroundRequest
Request message for SessionService.StartBackground.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| turn | 2 | Turn |
FQN: blitz.v1.StartBackgroundResponse
Response message for SessionService.StartBackground.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| run | 1 | BackgroundRun |
FQN: blitz.v1.ListBackgroundRequest
Request message for SessionService.ListBackground.
| Field | Ordinal | Type | Label | Description |
|---|
FQN: blitz.v1.ListBackgroundResponse
Response message for SessionService.ListBackground.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| runs | 1 | BackgroundRun | Repeated |
FQN: blitz.v1.WatchBackgroundRequest
Request message for SessionService.WatchBackground.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| id | 1 | string | ||
| follow | 2 | bool | Keep streaming until the run ends; otherwise stop after what has happened so far. |
FQN: blitz.v1.WatchBackgroundResponse
Response message for SessionService.WatchBackground.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| event | 1 | TurnEvent |
FQN: blitz.v1.StopBackgroundRequest
Request message for SessionService.StopBackground.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| id | 1 | string |
FQN: blitz.v1.StopBackgroundResponse
Response message for SessionService.StopBackground.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| run | 1 | BackgroundRun |
FQN: blitz.v1.ListSessionToolsRequest
Request message for SessionService.ListSessionTools.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| session_id | 2 | string |
FQN: blitz.v1.SessionTool
One tool call of a saved session: its call, its result, and the prompt it ran under (turn: the session's n-th prompt, 0 first; prompt: its start).
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| turn | 1 | int32 | ||
| prompt | 2 | string | ||
| call | 3 | ToolCall | ||
| result | 4 | ToolResult |
FQN: blitz.v1.ListSessionToolsResponse
Response message for SessionService.ListSessionTools.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| tools | 1 | SessionTool | Repeated |
FQN: blitz.v1.GetReasoningRequest
Request message for SessionService.GetReasoning.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| session_id | 2 | string | ||
| turn | 3 | int32 | Optional | The turn to draw, from 0; unset (or past the end) is the last. |
FQN: blitz.v1.ReasoningNode
One node of a turn's reasoning graph: parent is the ID of the node it hangs from ("" for the turn).
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| id | 1 | string | ||
| parent | 2 | string | ||
| kind | 3 | string | turn, call, thought, tool, agent or text. | |
| title | 4 | string | Its short label, and its whole text (a step of reasoning, an answer, the prompt; cut at 16 KiB). | |
| text | 5 | string | ||
| author | 6 | string | The agent whose call it is (a sub-agent’s name inside one). | |
| provider | 7 | string | Who answered a call. | |
| model | 8 | string | ||
| tool | 9 | string | A tool’s name, its arguments and what it returned. | |
| args | 10 | google.protobuf.Struct | ||
| result | 11 | google.protobuf.Struct | ||
| status | 12 | string | ok, failed or running. | |
| start | 13 | google.protobuf.Timestamp | ||
| duration_ms | 14 | int64 | ||
| usage | 15 | Usage | A call’s tokens and estimated cost, or a turn’s or a sub-agent’s total; unset for the others. | |
| hidden | 16 | bool | A call that reasoned without sharing its reasoning: the provider keeps it. |
FQN: blitz.v1.ReasoningTurn
One turn of a session, summed up for the turn picker.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| index | 1 | int32 | ||
| prompt | 2 | string | ||
| start | 3 | google.protobuf.Timestamp | ||
| calls | 4 | int32 | ||
| thoughts | 5 | int32 | The steps of reasoning the model shared. | |
| usage | 6 | Usage |
FQN: blitz.v1.GetReasoningResponse
Response message for SessionService.GetReasoning.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| turns | 1 | ReasoningTurn | Repeated | |
| turn | 2 | int32 | The turn nodes draw (-1 with no turns). | |
| nodes | 3 | ReasoningNode | Repeated | |
| cut | 4 | bool | The turn had more nodes than are drawn. |