Skip to content

Commit e6fa1f0

Browse files
fix(harness): assert skills via prompt turn options after @ai-sdk/harness 1.0.100 (#132)
1 parent 73ef0ce commit e6fa1f0

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

packages/harness/test/support/fakes.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import type {
22
HarnessV1,
33
HarnessV1NetworkSandboxSession,
44
HarnessV1PromptTurnOptions,
5-
HarnessV1Skill,
65
HarnessV1StartOptions,
76
HarnessV1StreamPart,
87
} from '@ai-sdk/harness'
@@ -203,7 +202,3 @@ export function createFakeSandboxProvider() {
203202
}
204203

205204
export const skillSource = (name: string, body = '# Instructions\n\nUse the package API.\n'): string => `---\nname: ${name}\ndescription: Use ${name} when working with its public API.\n---\n\n${body}`
206-
207-
export function skillFromStart(skills: ReadonlyArray<HarnessV1Skill> | undefined, name: string): HarnessV1Skill | undefined {
208-
return skills?.find(skill => skill.name === name)
209-
}

0 commit comments

Comments
 (0)