pub struct NativeBindingProfile {
pub runtime: RuntimeConfig,
pub provider_values: BTreeMap<String, String>,
pub tool_environment: BTreeMap<String, String>,
pub shell_path: PathBuf,
pub tools: NativeToolPolicy,
pub thinking: ThinkingLevel,
pub stream_options: AgentHarnessStreamOptions,
pub instruction_resources: Option<Arc<NativeBindingResources>>,
}Expand description
Per-Agent private inputs. Deliberately not Debug/Serialize: runtime and value maps can contain secrets. Provider values and tool environment are separate; provider credentials are never copied into a shell baseline.
Fields§
§runtime: RuntimeConfig§provider_values: BTreeMap<String, String>Closed value source, including any proxy/header/key variables. Missing values and secret commands do not fall back to process env or shell.
tool_environment: BTreeMap<String, String>Complete tool baseline, including an absolute HOME (USERPROFILE on Windows). The trusted host chooses what a granted local shell may see.
shell_path: PathBuf§tools: NativeToolPolicy§thinking: ThinkingLevel§stream_options: AgentHarnessStreamOptions§instruction_resources: Option<Arc<NativeBindingResources>>Closed frozen resources. The historical field name also covers explicitly approved native hook resources; it never enables ambient discovery.
Implementations§
Source§impl NativeBindingProfile
impl NativeBindingProfile
Sourcepub async fn bind(&self, expected: AgentSpec) -> BackendResult<OrdinaryBinding>
pub async fn bind(&self, expected: AgentSpec) -> BackendResult<OrdinaryBinding>
Prepare one fresh execution environment per Agent; never share process cleanup ownership across Agents, even if they use the same workspace. The immutable trusted inputs remain reusable. Resolve closed Provider inputs here, before callers may create a Session or register metadata; persisted resource authority is checked later against readonly facts.
Sourcepub async fn bind_mini_agent(
&self,
expected: AgentSpec,
catalog: HostCatalog,
custody: Arc<NativeExtensionCustody>,
) -> BackendResult<NativeMiniAgent>
pub async fn bind_mini_agent( &self, expected: AgentSpec, catalog: HostCatalog, custody: Arc<NativeExtensionCustody>, ) -> BackendResult<NativeMiniAgent>
Build the existing raw Agent loop with no Harness/Session construction.
Caller must already retain custody in the owning Host entry before
awaiting this method; dropping the request waiter is not cleanup.