Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

style(assistant): format the blind-call hint

Maurice0cde099c7f47
diff --git a/server/src/nest/assistant/assistant-tools.service.ts b/server/src/nest/assistant/assistant-tools.service.ts
index f2b9a3ea8..598d28f3e 100644
--- a/server/src/nest/assistant/assistant-tools.service.ts
+++ b/server/src/nest/assistant/assistant-tools.service.ts
@@ -364,8 +364,11 @@ export class AssistantToolSession {
const blind = this.calledBlind.get(name);
if (!run.ok && blind) {
const hint = `${name} was called before the "${blind}" tools were loaded in this turn, so its arguments were written without its schema. They are loaded now and the schema is in your tools: send the call again with the arguments exactly as it describes them.`;
- return { ok: false, value: `${typeof run.value === 'string' ? run.value : JSON.stringify(run.value)}
-${hint}` };
+ return {
+ ok: false,
+ value: `${typeof run.value === 'string' ? run.value : JSON.stringify(run.value)}
+${hint}`,
+ };
}
if (name === TRANSIT_SEARCH_TOOL && run.ok) this.itineraries.keep(run.value);
return run;