Loading...
Searching...
No Matches
EngineRegistry.h File Reference
#include <future>
#include <memory>
#include <string>
#include <vector>
#include "EnginePotential.h"

Go to the source code of this file.

Classes

struct  pot::EngineRequest
 What a driver knows when it asks for a potential by name. More...
struct  pot::EngineBinding
 A name resolved to an engine library and the capnp params message it takes. More...
struct  pot::OraclePathChoice
 Which route a run takes to its potential, and why. More...
struct  pot::EngineReport
 What a run needs to state about the engine that answered it. More...

Namespaces

namespace  pot
 Potential wrappers and the batched oracle interface.

Functions

bool pot::engineIsGeneric (const std::string &potential)
bool pot::engineRequestIsPlugin (const EngineRequest &request)
OraclePathChoice pot::selectOraclePath (const std::string &requested, const std::string &potential)
OraclePathChoice pot::selectOraclePath (const std::string &requested, const std::string &potential, bool plugin)
std::string pot::formatOraclePath (const OraclePathChoice &choice, const std::string &potential)
bool pot::recordOraclePath (const OraclePathChoice &choice)
 Record the choice on the active tracking run as oracle.path.
std::vector< std::string > pot::engineSearchDirectories (const EngineRequest &request, const std::string &potential)
bool pot::engineRegistryKnows (const std::string &potential)
 True when the registry maps potential to an engine params arm.
bool pot::resolveEngine (const EngineRequest &request, EngineBinding &binding, std::string &err)
std::unique_ptr< EnginePotential > pot::openEngine (const EngineRequest &request, std::string &err, EngineBinding *binding=nullptr, int oracle_threads=1)
 resolveEngine followed by EnginePotential::open.
EngineReport pot::reportEngine (const EnginePotential &engine, const EngineBinding &binding)
EngineReport pot::reportEngine (const EnginePotential &engine, const EngineBinding &binding, const std::string &model_sha256)
std::shared_future< std::string > pot::startModelDigest (const std::string &model_path)
std::string pot::formatEngineReport (const EngineReport &report)
bool pot::recordEngineProvenance (const EngineReport &report)