Optional inference service. Providers own their registration and revoke before destruction. @thread Owner thread only; no reentry, provider unload or external callbacks during inference. @ownership Inputs are borrowed only for the call. Outputs own all data. Core resolves the capability anew for each inference; it never retains a provider across environment callbacks.
更多...
#include <Agent.h>
Optional inference service. Providers own their registration and revoke before destruction. @thread Owner thread only; no reentry, provider unload or external callbacks during inference. @ownership Inputs are borrowed only for the call. Outputs own all data. Core resolves the capability anew for each inference; it never retains a provider across environment callbacks.
在文件 Agent.h 第 114 行定义.
◆ ~IPolicyBackend()
| virtual eve::agent::IPolicyBackend::~IPolicyBackend |
( |
| ) |
|
|
virtualdefault |
◆ evaluate()
| virtual Result< std::vector< double > > eve::agent::IPolicyBackend::evaluate |
( |
const Policy & |
policy, |
|
|
const Observation & |
observation |
|
) |
| |
|
pure virtual |
Evaluate inputs validated by agent::infer; return masked probabilities or structured failure.
◆ name()
| virtual std::string eve::agent::IPolicyBackend::name |
( |
| ) |
const |
|
pure virtual |
Owning device/backend label; must describe the actual execution path.
◆ capabilityName
| constexpr const char* eve::agent::IPolicyBackend::capabilityName = "agent.IPolicyBackend" |
|
staticconstexpr |
该类的文档由以下文件生成: