feat: default tool calls to early dispatch
This commit is contained in:
@@ -2228,7 +2228,7 @@ max_tokens = 3333
|
||||
&[("reviewer", "reviewer.toml", REVIEWER_PROFILE)],
|
||||
);
|
||||
let mut parent = parent_manifest(&parent_root, Some(&parent_root.join("deny")));
|
||||
parent.engine.tool_call_dispatch = manifest::ToolCallDispatchMode::OnToolCallComplete;
|
||||
parent.engine.tool_call_dispatch = manifest::ToolCallDispatchMode::AfterResponse;
|
||||
let scope = vec![abs_rule(&delegated, Permission::Read)];
|
||||
|
||||
let profile_config = child_config_from_profile(
|
||||
@@ -2252,7 +2252,7 @@ max_tokens = 3333
|
||||
|
||||
assert_eq!(
|
||||
inherit_config.engine.tool_call_dispatch,
|
||||
Some(manifest::ToolCallDispatchMode::OnToolCallComplete)
|
||||
Some(manifest::ToolCallDispatchMode::AfterResponse)
|
||||
);
|
||||
for config in [profile_config, inherit_config] {
|
||||
assert_eq!(config.scope.allow, scope);
|
||||
|
||||
@@ -8726,7 +8726,7 @@ mod build_summary_prompt_tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn engine_manifest_generation_settings_become_request_config() {
|
||||
fn engine_manifest_generation_and_dispatch_settings_are_applied() {
|
||||
let manifest = manifest::EngineManifest {
|
||||
instruction: "unused".into(),
|
||||
language: manifest::defaults::WORKER_LANGUAGE.into(),
|
||||
@@ -8756,6 +8756,14 @@ mod build_summary_prompt_tests {
|
||||
engine.tool_call_dispatch_mode(),
|
||||
agen::ToolCallDispatchMode::OnToolCallComplete
|
||||
);
|
||||
|
||||
let mut explicit_after_response = manifest;
|
||||
explicit_after_response.tool_call_dispatch = manifest::ToolCallDispatchMode::AfterResponse;
|
||||
apply_worker_manifest(&mut engine, &explicit_after_response);
|
||||
assert_eq!(
|
||||
engine.tool_call_dispatch_mode(),
|
||||
agen::ToolCallDispatchMode::AfterResponse
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user