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>
Public 成员函数 | |
| virtual | ~IPolicyBackend ()=default |
| Releases IPolicyBackend resources. | |
| virtual std::string | name () const =0 |
| Owning device/backend label; must describe the actual execution path. | |
| virtual Result< std::vector< double > > | evaluate (const Policy &policy, const Observation &observation)=0 |
| Evaluate inputs validated by agent::infer; return masked probabilities or structured failure. | |
静态 Public 属性 | |
| static constexpr const char * | capabilityName = "agent.IPolicyBackend" |
详细描述
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.
构造及析构函数说明
◆ ~IPolicyBackend()
|
virtualdefault |
Releases IPolicyBackend resources.
成员函数说明
◆ evaluate()
|
pure virtual |
Evaluate inputs validated by agent::infer; return masked probabilities or structured failure.
被这些函数引用 eve::agent::infer().
◆ name()
|
pure virtual |
Owning device/backend label; must describe the actual execution path.
类成员变量说明
◆ capabilityName
|
staticconstexpr |
该类的文档由以下文件生成:
- src/modules/agent/Agent.h