mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 01:12:16 +00:00
style(server): format the assistant proposal guard
The Server lint formatting check rejected the assistant agent and its regression test. Apply the repository Prettier configuration to those two files.
This commit is contained in:
@@ -34,6 +34,7 @@ import {
|
||||
type AssistantWeatherDay,
|
||||
type TrekCard,
|
||||
} from '@trek/shared';
|
||||
|
||||
import { isDeepStrictEqual } from 'node:util';
|
||||
|
||||
type ToolArgs = Record<string, unknown>;
|
||||
|
||||
@@ -288,9 +288,18 @@ describe('runAgentLoop', () => {
|
||||
it('holds one proposal when the model repeats the same packing item change in a step', async () => {
|
||||
const t = setup([
|
||||
[
|
||||
{ type: 'tool-call', call: { id: 'first', name: 'create_packing_item', args: { name: 'Adapter', quantity: 2 } } },
|
||||
{ type: 'tool-call', call: { id: 'repeat', name: 'create_packing_item', args: { quantity: 2, name: 'Adapter' } } },
|
||||
{ type: 'tool-call', call: { id: 'other', name: 'create_packing_item', args: { name: 'Adapter', quantity: 3 } } },
|
||||
{
|
||||
type: 'tool-call',
|
||||
call: { id: 'first', name: 'create_packing_item', args: { name: 'Adapter', quantity: 2 } },
|
||||
},
|
||||
{
|
||||
type: 'tool-call',
|
||||
call: { id: 'repeat', name: 'create_packing_item', args: { quantity: 2, name: 'Adapter' } },
|
||||
},
|
||||
{
|
||||
type: 'tool-call',
|
||||
call: { id: 'other', name: 'create_packing_item', args: { name: 'Adapter', quantity: 3 } },
|
||||
},
|
||||
],
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user