llm 동작 수정
This commit is contained in:
@@ -1738,7 +1738,51 @@ export interface StrategyEvaluationAiVerifyResponse {
|
||||
ta4jDiagnostics?: Record<string, unknown> | null;
|
||||
}
|
||||
|
||||
/** 전략 평가 — LLM 기반 Rule·시그널 일치 검증 */
|
||||
export type StrategyEvaluationAiVerifyJobStatus =
|
||||
| 'QUEUED'
|
||||
| 'RUNNING'
|
||||
| 'COMPLETED'
|
||||
| 'FAILED';
|
||||
|
||||
export interface StrategyEvaluationAiVerifyJobStartResponse {
|
||||
jobId: string;
|
||||
status: StrategyEvaluationAiVerifyJobStatus;
|
||||
}
|
||||
|
||||
export interface StrategyEvaluationAiVerifyJobStatusResponse {
|
||||
jobId: string;
|
||||
status: StrategyEvaluationAiVerifyJobStatus;
|
||||
error?: string | null;
|
||||
result?: StrategyEvaluationAiVerifyResponse | null;
|
||||
createdAtMs: number;
|
||||
completedAtMs?: number | null;
|
||||
}
|
||||
|
||||
/** 전략 평가 — AI 검증 비동기 job 시작 (즉시 jobId 반환) */
|
||||
export async function startStrategyEvaluationAiVerifyJob(
|
||||
context: Record<string, unknown>,
|
||||
): Promise<StrategyEvaluationAiVerifyJobStartResponse> {
|
||||
return requestOrThrow<StrategyEvaluationAiVerifyJobStartResponse>(
|
||||
'/strategy/evaluation/ai-verify/jobs',
|
||||
{
|
||||
method: 'POST',
|
||||
cache: 'no-store',
|
||||
body: JSON.stringify({ context }),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/** AI 검증 job 상태 조회 */
|
||||
export async function fetchStrategyEvaluationAiVerifyJob(
|
||||
jobId: string,
|
||||
): Promise<StrategyEvaluationAiVerifyJobStatusResponse> {
|
||||
return requestOrThrow<StrategyEvaluationAiVerifyJobStatusResponse>(
|
||||
`/strategy/evaluation/ai-verify/jobs/${encodeURIComponent(jobId)}`,
|
||||
{ cache: 'no-store' },
|
||||
);
|
||||
}
|
||||
|
||||
/** 전략 평가 — LLM 기반 Rule·시그널 일치 검증 (레거시 동기) */
|
||||
export async function fetchStrategyEvaluationAiVerify(
|
||||
context: Record<string, unknown>,
|
||||
): Promise<StrategyEvaluationAiVerifyResponse> {
|
||||
|
||||
Reference in New Issue
Block a user