ISessionGrain Type
Orleans grain interface for a user session. Grain key format: "userId/sessionId" The grain resolves agents/tools from the workspace registry.
Instance members
| Instance member |
Description
|
|
Clear the current conversation context
|
|
Clear all memories
|
|
Permanently destroy the session and all its data
|
|
Get the current conversation history
|
|
Get the session metadata
|
|
Id of the most recently processed turn (empty if none). Use to attach feedback.
|
|
Snapshot of the steps of the turn currently being processed, for live progress UIs. Returns an empty array when no turn is running. Marked reentrant (`AlwaysInterleave`) so it can be polled while a turn is still in flight.
|
|
List all conversation contexts in this session
|
|
|
|
Pause the session (marks inactive, keeps state)
|
|
Process user input — grain resolves workspace, builds agent, runs ETCLOVG harness.
|
Full Usage:
this.ProcessWithContextAsync
Parameters:
string
displayText : string
attachmentNames : string[]
Returns: Task<string>
Modifiers: abstract |
Process user input where the LLM prompt and the persisted/display text differ: `llmInput` (with embedded attachment content) is what the agent sees, while only `displayText` plus `attachmentNames` are stored in the transcript.
|
Full Usage:
this.RecallMemoryAsync
Parameters:
string
Returns: Task<MemoryEntry array>
Modifiers: abstract |
|
|
Resume a paused session
|
Full Usage:
this.SaveMemoryAsync
Parameters:
string
value : string
Returns: Task
Modifiers: abstract |
|
Full Usage:
this.StartAsync
Parameters:
SessionStartOptions
Returns: Task<bool>
Modifiers: abstract |
Initialize the session with a specific agent, workspace, and optional tool overrides.
|
Full Usage:
this.SubmitFeedbackAsync
Parameters:
string
comment : string
Returns: Task<string array>
Modifiers: abstract |
Submit feedback for the most recently processed turn. `sentiment` is "positive" / "negative" / "neutral". Returns the rationales of any tool adjustments that were proposed and stored.
|
Full Usage:
this.SwitchAgentAsync
Parameters:
string
Returns: Task<bool>
Modifiers: abstract |
|
Full Usage:
this.SwitchConversationAsync
Parameters:
string
Returns: Task
Modifiers: abstract |
|
Full Usage:
this.SwitchWorkspaceAsync
Parameters:
string
Returns: Task<bool>
Modifiers: abstract |
Switch to a different workspace (re-validates agent exists in new workspace)
|
|
Nao