All files / core/blong-gogo/src/adapter/server/engine engineStepRun.ts

58.82% Statements 10/17
100% Branches 0/0
100% Functions 0/0
58.82% Lines 10/17

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 181x 1x 1x 1x 1x 1x 1x 1x 1x 1x                
import type {IAgentStepRequest, IAgentStepResult} from '@feasibleone/blong/types';
import {handler} from '@feasibleone/blong/types';
 
/**
 * `engine.step.run` — one model turn (`@@D-708`).
 *
 * The work is the adapter's, because the SDK client is: this names the method and hands the request
 * over, so a realm sees one vocabulary whichever engine answers.
 */
export default handler(() => ({
    async engineStepRun(params: IAgentStepRequest, _$meta: unknown): Promise<IAgentStepResult> {
        const self = this as unknown as {
            engineStep: (request: IAgentStepRequest) => Promise<IAgentStepResult>;
        };
        return self.engineStep(params);
    },
}));