载入中...
搜索中...
未找到
eve::dev::AgentDevelopmentSession类 参考final

Process-owned state machine and evidence ledger for Agent game development. 更多...

#include <AgentDevelopmentSession.hpp>

Public 成员函数

AgentDevelopmentResult start (std::string objective, std::vector< AgentAcceptanceCriterion > criteria)
 Start one session; rejects empty objectives, duplicate criteria, or an active session.
 
AgentDevelopmentResult advance (std::string_view sessionId, AgentDevelopmentPhase phase)
 Advance through the declared workflow graph without mutating game state.
 
AgentDevelopmentResult record (std::string_view sessionId, AgentDevelopmentEvidence evidence)
 Append evidence; only pass evidence updates criterion satisfaction.
 
AgentDevelopmentResult complete (std::string_view sessionId, std::string summary)
 Complete only from Verify when every required criterion has passing evidence.
 
AgentDevelopmentResult abort (std::string_view sessionId, std::string reason)
 Abort an active session with an explicit reason.
 
void reset ()
 Clear all process-owned session metadata. Intended for host teardown and tests.
 
bool active () const
 Whether a non-terminal session currently owns the workflow.
 
const std::string & sessionId () const
 Stable process-local session identity, invalidated by reset.
 
AgentDevelopmentPhase phase () const
 Current workflow phase.
 
const std::string & objective () const
 User-supplied objective.
 
const std::string & summary () const
 Terminal summary or abort reason.
 
const std::vector< AgentAcceptanceCriterion > & criteria () const
 Immutable acceptance snapshot owned by this session.
 
const std::vector< AgentDevelopmentEvidence > & evidence () const
 Immutable evidence snapshot owned by this session.
 
bool readyToComplete () const
 Whether all required criteria have passing evidence.
 

静态 Public 成员函数

static AgentDevelopmentSession & instance ()
 Return the process-lifetime session authority.
 

详细描述

Process-owned state machine and evidence ledger for Agent game development.

All methods have main-thread affinity and never invoke callbacks. The singleton owns all strings and snapshots until reset or process shutdown. It does not own game, Editor, renderer, filesystem, or test-runner state; evidence is an immutable receipt that refers to those authoritative systems.

在文件 AgentDevelopmentSession.hpp 第 50 行定义.

成员函数说明

◆ abort()

AgentDevelopmentResult eve::dev::AgentDevelopmentSession::abort ( std::string_view  sessionId,
std::string  reason 
)

Abort an active session with an explicit reason.

在文件 AgentDevelopmentSession.cpp 第 112 行定义.

引用了 eve::dev::Aborted, active() , 以及 sessionId().

◆ active()

bool eve::dev::AgentDevelopmentSession::active ( ) const

Whether a non-terminal session currently owns the workflow.

在文件 AgentDevelopmentSession.cpp 第 132 行定义.

引用了 eve::dev::Aborted , 以及 eve::dev::Complete.

被这些函数引用 abort(), advance(), complete(), record() , 以及 start().

◆ advance()

AgentDevelopmentResult eve::dev::AgentDevelopmentSession::advance ( std::string_view  sessionId,
AgentDevelopmentPhase  phase 
)

Advance through the declared workflow graph without mutating game state.

在文件 AgentDevelopmentSession.cpp 第 59 行定义.

引用了 active(), phase() , 以及 sessionId().

◆ complete()

AgentDevelopmentResult eve::dev::AgentDevelopmentSession::complete ( std::string_view  sessionId,
std::string  summary 
)

Complete only from Verify when every required criterion has passing evidence.

在文件 AgentDevelopmentSession.cpp 第 98 行定义.

引用了 active(), eve::dev::Complete, readyToComplete(), sessionId(), summary() , 以及 eve::dev::Verify.

◆ criteria()

const std::vector< AgentAcceptanceCriterion > & eve::dev::AgentDevelopmentSession::criteria ( ) const
inline

Immutable acceptance snapshot owned by this session.

在文件 AgentDevelopmentSession.hpp 第 80 行定义.

被这些函数引用 start().

◆ evidence()

const std::vector< AgentDevelopmentEvidence > & eve::dev::AgentDevelopmentSession::evidence ( ) const
inline

Immutable evidence snapshot owned by this session.

在文件 AgentDevelopmentSession.hpp 第 82 行定义.

被这些函数引用 record().

◆ instance()

AgentDevelopmentSession & eve::dev::AgentDevelopmentSession::instance ( )
static

Return the process-lifetime session authority.

在文件 AgentDevelopmentSession.cpp 第 34 行定义.

引用了 session.

被这些函数引用 eve::dev::callAgentDevelopmentTool().

◆ objective()

const std::string & eve::dev::AgentDevelopmentSession::objective ( ) const
inline

User-supplied objective.

在文件 AgentDevelopmentSession.hpp 第 76 行定义.

被这些函数引用 start().

◆ phase()

AgentDevelopmentPhase eve::dev::AgentDevelopmentSession::phase ( ) const
inline

Current workflow phase.

在文件 AgentDevelopmentSession.hpp 第 74 行定义.

被这些函数引用 advance().

◆ readyToComplete()

bool eve::dev::AgentDevelopmentSession::readyToComplete ( ) const

Whether all required criteria have passing evidence.

在文件 AgentDevelopmentSession.cpp 第 137 行定义.

被这些函数引用 complete().

◆ record()

AgentDevelopmentResult eve::dev::AgentDevelopmentSession::record ( std::string_view  sessionId,
AgentDevelopmentEvidence  evidence 
)

Append evidence; only pass evidence updates criterion satisfaction.

在文件 AgentDevelopmentSession.cpp 第 69 行定义.

引用了 active(), evidence(), sessionId() , 以及 value.

◆ reset()

void eve::dev::AgentDevelopmentSession::reset ( )

Clear all process-owned session metadata. Intended for host teardown and tests.

在文件 AgentDevelopmentSession.cpp 第 122 行定义.

引用了 eve::dev::Aborted.

被这些函数引用 start().

◆ sessionId()

const std::string & eve::dev::AgentDevelopmentSession::sessionId ( ) const
inline

Stable process-local session identity, invalidated by reset.

在文件 AgentDevelopmentSession.hpp 第 72 行定义.

被这些函数引用 abort(), advance(), complete() , 以及 record().

◆ start()

AgentDevelopmentResult eve::dev::AgentDevelopmentSession::start ( std::string  objective,
std::vector< AgentAcceptanceCriterion >  criteria 
)

Start one session; rejects empty objectives, duplicate criteria, or an active session.

在文件 AgentDevelopmentSession.cpp 第 39 行定义.

引用了 active(), criteria(), eve::dev::Discover, ids, objective() , 以及 reset().

◆ summary()

const std::string & eve::dev::AgentDevelopmentSession::summary ( ) const
inline

Terminal summary or abort reason.

在文件 AgentDevelopmentSession.hpp 第 78 行定义.

被这些函数引用 complete().


该类的文档由以下文件生成: