pub struct RubricRunConfig {
pub codex_acp_binary: PathBuf,
pub acp_args: Vec<String>,
pub url: Option<String>,
pub api_model: Option<String>,
pub extra_env: Vec<(OsString, OsString)>,
pub cwd: Option<PathBuf>,
}Expand description
Runtime configuration for rubric evaluation.
Supports two backends:
- HTTP (via
url): calls an OpenAI-compatible text model endpoint. - ACP (via
codex_acp_binary): spawns an ACP child process.
When url is Some, the pipeline uses the HTTP backend and ignores ACP
fields. When url is None, the pipeline falls back to ACP.
Fields§
§codex_acp_binary: PathBufPath to the ACP binary (e.g. codex-acp or opencode).
acp_args: Vec<String>Extra CLI arguments for the ACP binary.
Defaults to an empty list. ACP v1 session configuration carries model
and reasoning settings after session/new; legacy adapters may still
be given explicit arguments here.
url: Option<String>HTTP rubric API base URL (e.g. "http://127.0.0.1:8013").
When set, the pipeline calls an OpenAI-compatible text model
directly instead of spawning an ACP child process.
api_model: Option<String>Model name for the HTTP rubric backend (ignored when url is None).
extra_env: Vec<(OsString, OsString)>Extra environment variables for the child process.
cwd: Option<PathBuf>Working directory passed to ACP.
Implementations§
Source§impl RubricRunConfig
impl RubricRunConfig
Sourcepub fn from_config_toml(path: Option<&Path>) -> Self
pub fn from_config_toml(path: Option<&Path>) -> Self
Build a RubricRunConfig from the Home-Manager-managed TOML file.
Reads ~/.config/visual-rubric/config.toml (or an explicit
path) and extracts the [rubric] section: backend becomes
codex_acp_binary, args becomes acp_args.
In pipeline mode the vision config is ignored — this method only
populates the rubric/ACP fields. When the file is missing or
unreadable, returns the library Default.
Trait Implementations§
Source§impl Clone for RubricRunConfig
impl Clone for RubricRunConfig
Source§impl Debug for RubricRunConfig
impl Debug for RubricRunConfig
Source§impl Default for RubricRunConfig
impl Default for RubricRunConfig
impl Eq for RubricRunConfig
Source§impl PartialEq for RubricRunConfig
impl PartialEq for RubricRunConfig
impl StructuralPartialEq for RubricRunConfig
Auto Trait Implementations§
impl Forget for RubricRunConfig
impl Freeze for RubricRunConfig
impl Move for RubricRunConfig
impl RefUnwindSafe for RubricRunConfig
impl Send for RubricRunConfig
impl Sync for RubricRunConfig
impl Unpin for RubricRunConfig
impl UnsafeUnpin for RubricRunConfig
impl UnwindSafe for RubricRunConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.