pub struct Profile {
pub id: String,
pub name: String,
pub base_url: String,
pub model: String,
pub description: String,
pub api: Option<ApiKind>,
pub tool_mode: Option<ToolMode>,
pub subagents: bool,
pub max_parallel: Option<u16>,
pub context: Option<u32>,
pub params: Params,
pub extra: Map<String, Value>,
}Expand description
A saved model. Its key is in secrets.json profile_keys.<id>.
Fields§
§id: StringStable id ([a-z0-9][a-z0-9._-]*); levels and roles point at it. In settings.json
the map key is authoritative.
name: StringWhat the user calls it.
base_url: String§model: String§description: StringFree text: what it is good at (“fast, good at code”).
api: Option<ApiKind>The API it speaks; None decides from the URL (see InferenceConfig::api_kind).
tool_mode: Option<ToolMode>How tools are passed to this model; when set it beats the levels’ tool mode.
subagents: boolOffered to the main model as a delegate model choice (its description says when).
max_parallel: Option<u16>Most subagents running on this model at once (besides the global cap and the server’s free slots).
context: Option<u32>Context window, overriding what the probe found (budgeting and compaction).
params: ParamsRequest parameters, sent with every chat request made with it.
extra: Map<String, Value>Fields this build doesn’t know (a newer byob’s, or hand edits); preserved.
Implementations§
Source§impl Profile
impl Profile
Sourcepub fn config(&self, key: Option<String>) -> InferenceConfig
pub fn config(&self, key: Option<String>) -> InferenceConfig
The endpoint, with key.
Sourcepub fn anthropic(&self) -> bool
pub fn anthropic(&self) -> bool
Does it speak Anthropic’s Messages API (set, or decided from the URL)?