Maintains state for a Co-STORM session: multi-agent dialog, mind map, provisional scientific evidence, and report state.
Internal implementation
TempestSession is an unexported mutable implementation returned by
tempest_session(). Its supported product state is the correlated research
manifest, workspace, transcript, mind map, experts, progress events, and
canonical report. Process-local execution members are internal and are not
part of the persistence or public API contract.
Active bindings
session_idStable session identifier.
topicResearch topic.
statusCurrent product status.
expertsRead-only expert roster.
transcriptRead-only conversation transcript.
mindmapRead-only mind-map projection.
Methods
TempestSession$new()
Internal constructor. Use tempest_session() for the supported API.
Usage
TempestSession$new(
topic,
config = tempest_config(),
n_experts = 3,
experts = NULL,
retriever = NULL,
progress = NULL,
session_id = NULL,
program_set = NULL,
.restore_manifest = NULL,
.restore_token = NULL,
.admit_knowledge = NULL,
.artifact_selection = NULL
)Arguments
topicThe research topic.
configA
TempestConfigobject.n_expertsNumber of expert agents.
expertsOptional list of validated expert profiles. If
NULL, experts are generated automatically usingtempest_generate_experts().retrieverOptional
TempestRetrieveror compatible retriever object with a ResearchWorkspace at$workspaceandsearch(query, k)andfetch(url)methods.search()returns a data frame withtitleand HTTP/HTTPSurlcolumns;snippetis optional and Tempest derives or verifiessource_id. Create the workspace withtempest_research_workspace()and source IDs withtempest_source_id().progressOptional function called with
tempest_progress_eventobjects as the session makes progress.session_idOptional stable session identifier. If
NULL, a new identifier is generated.program_setA TempestProgramSet used for every structured Co-STORM stage.
.restore_manifestInternal research manifest supplied only by Tempest's bundle-restoration seam.
.restore_tokenInternal authorization token for bundle restoration.
.admit_knowledgeInternal callback receiving the validated workspace for fresh knowledge admission.
.artifact_selectionInternal selection retained in a fresh manifest before accepted records are inserted after successful construction.
TempestSession$suggest_questions()
Suggest follow-up questions for the user based on the conversation so far.
TempestSession$warmup()
Run a warmup phase where each expert researches their initial questions. This primes the knowledge base with foundational research before interactive Q&A.
TempestSession$publish()
Verify claims, create and commit the canonical report, move the
manifest to succeeded, and seal the workspace.
Usage
TempestSession$publish(
style = c("technical", "executive"),
include_references = TRUE
)Arguments
styleReport style: "technical" or "executive".
include_referencesInclude references section.
Returns
The committed Markdown report. Use tempest_report() to read
the exact committed bytes later.
