Skip to content

Commit

Permalink
use resolvedTools info
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Feb 23, 2025
1 parent 0cddad8 commit 58f807a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/systems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function resolveSystems(
if (responseSchema && !responseType) systems.push("system.output_json")

// Include tools-related systems if specified in the script
if (tools.length) {
if (tools.length || resolvedTools?.length) {
systems.push("system.tools")
// Resolve and add each tool's systems based on its definition in the project
tools.forEach((tool) =>
Expand Down

0 comments on commit 58f807a

Please sign in to comment.