| 1343 | * @category Schemas |
| 1344 | */ |
| 1345 | export class PromptFromSelf extends Schema.declare( |
| 1346 | (u) => isPrompt(u), |
| 1347 | { |
| 1348 | typeConstructor: { _tag: "effect/ai/Prompt" }, |
| 1349 | identifier: "PromptFromSelf", |
| 1350 | description: "a Prompt instance", |
| 1351 | arbitrary: (): Arbitrary.LazyArbitrary<Prompt> => (fc) => |
| 1352 | fc.array( |
| 1353 | Arbitrary.makeLazy(Message)(fc) |
| 1354 | ).map(makePrompt) |
| 1355 | } |
| 1356 | ) {} |
| 1357 | |
| 1358 | /** |
| 1359 | * Schema for validation and encoding of prompts. |