Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

style(session-host): reformat tool dispatcher match arms

Steven Enamakel6c6576fd8c37
diff --git a/crates/openhuman-core/src/agent/session_host/builder/factory.rs b/crates/openhuman-core/src/agent/session_host/builder/factory.rs
index 6d9a494c8b..b65046ea6b 100644
--- a/crates/openhuman-core/src/agent/session_host/builder/factory.rs
+++ b/crates/openhuman-core/src/agent/session_host/builder/factory.rs
@@ -639,18 +639,19 @@ impl OpenHumanSessionHost {
.chain(delegation_tools.iter())
.map(|tool| (tool.name(), tool.parameters_schema())),
);
- let dispatcher_kind =
- ToolCallFormat::resolve(&dispatcher_choice, supports_native);
+ let dispatcher_kind = ToolCallFormat::resolve(&dispatcher_choice, supports_native);
let tool_dispatcher: Box<dyn ToolDialect> = match dispatcher_kind {
ToolCallFormat::Native => Box::new(NativeDialect),
ToolCallFormat::Json => Box::new(XmlDialect),
ToolCallFormat::PFormat => Box::new(PFormatDialect::new(pformat_registry.clone())),
- ToolCallFormat::Python => {
- Box::new(CodeDialect::new(CodeStyle::Python, pformat_registry.clone()))
- }
- ToolCallFormat::TypeScript => {
- Box::new(CodeDialect::new(CodeStyle::TypeScript, pformat_registry.clone()))
- }
+ ToolCallFormat::Python => Box::new(CodeDialect::new(
+ CodeStyle::Python,
+ pformat_registry.clone(),
+ )),
+ ToolCallFormat::TypeScript => Box::new(CodeDialect::new(
+ CodeStyle::TypeScript,
+ pformat_registry.clone(),
+ )),
};
log::debug!(