Skip to content

Commit a221d21

Browse files
committed
chore: format
1 parent ba9b86a commit a221d21

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

js/plugins/anthropic/src/runner/beta.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,9 @@ export class BetaRunner extends BaseRunner<BetaRunnerTypes> {
547547
}
548548
}
549549

550-
private isStructuredOutputEnabled(request: GenerateRequest<typeof AnthropicConfigSchema>): boolean {
550+
private isStructuredOutputEnabled(
551+
request: GenerateRequest<typeof AnthropicConfigSchema>
552+
): boolean {
551553
return !!(
552554
request.output?.schema &&
553555
request.output.constrained &&

js/plugins/anthropic/tests/live_test.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ describe('Anthropic Live Tests', { skip: SKIP_LIVE_TESTS }, () => {
4040

4141
const result = await ai.generate({
4242
model: 'anthropic/claude-sonnet-4-5',
43-
prompt: 'Generate a fictional person with name "Alice", age 30, and city "New York". Return only the JSON.',
43+
prompt:
44+
'Generate a fictional person with name "Alice", age 30, and city "New York". Return only the JSON.',
4445
output: { schema, format: 'json', constrained: true },
4546
});
4647

@@ -52,7 +53,13 @@ describe('Anthropic Live Tests', { skip: SKIP_LIVE_TESTS }, () => {
5253
);
5354

5455
// Check that boolean fields are present and are actually booleans
55-
for (const key of ['isStudent', 'isEmployee', 'isRetired', 'isUnemployed', 'isDisabled']) {
56+
for (const key of [
57+
'isStudent',
58+
'isEmployee',
59+
'isRetired',
60+
'isUnemployed',
61+
'isDisabled',
62+
]) {
5663
assert.strictEqual(
5764
typeof parsed[key],
5865
'boolean',

0 commit comments

Comments
 (0)