Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-ai-task-tool-error-typo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@trigger.dev/sdk": patch
---

Fix duplicated word in `assertTaskUsableAsTool` error message: "to to a tool" → "to a tool".
2 changes: 1 addition & 1 deletion docs/tasks/schemaTask.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const myTask = schemaTask({
});
```

`schemaTask` takes all the same options as [task](/tasks/overview), with the addition of a `schema` field. The `schema` field is a schema parser function from a schema library or or a custom parser function.
`schemaTask` takes all the same options as [task](/tasks/overview), with the addition of a `schema` field. The `schema` field is a schema parser function from a schema library or a custom parser function.

<Note>
We will probably eventually combine `task` and `schemaTask` into a single function, but because
Expand Down
2 changes: 1 addition & 1 deletion internal-packages/run-engine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ Wait for a future time, then continue. We should add the option to pass an `idem

```ts
//Note if the idempotency key is a string, it will get prefixed with the run id.
//you can explicitly pass in an idempotency key created with the the global scope.
//you can explicitly pass in an idempotency key created with the global scope.
await wait.until(new Date("2022-01-01T00:00:00Z"), { idempotencyKey: "first-wait" });
await wait.until(new Date("2022-01-01T00:00:00Z"), { idempotencyKey: "second-wait" });
```
Expand Down
2 changes: 1 addition & 1 deletion internal-packages/run-engine/src/engine/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1584,7 +1584,7 @@ export class RunEngine {
}

/**
Send a heartbeat to signal the the run is still executing.
Send a heartbeat to signal the run is still executing.
If a heartbeat isn't received, after a while the run is considered "stalled"
and some logic will be run to try recover it.
@returns The ExecutionResult, which could be a different snapshot.
Expand Down
2 changes: 1 addition & 1 deletion packages/trigger-sdk/src/v3/ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ type ToolSetCompatible<T extends Tool<any, any>> = T & NonNullable<ToolSet[strin
function assertTaskUsableAsTool(task: AnyTask): void {
if (("schema" in task && !task.schema) || ("jsonSchema" in task && !task.jsonSchema)) {
throw new Error(
"Cannot convert this task to to a tool because the task has no schema. Make sure to either use schemaTask or a task with an input jsonSchema."
"Cannot convert this task to a tool because the task has no schema. Make sure to either use schemaTask or a task with an input jsonSchema."
);
}
}
Expand Down