// Force strict mode and setup for ESM
"use strict";
import {
  init_esbuild_shims
} from "./chunk-A4BMJM77.js";
import {
  __name
} from "./chunk-J2S4EL5Y.js";

// packages/core/src/agents/runtime/agent-types.ts
init_esbuild_shims();
var AgentTerminateMode = /* @__PURE__ */ ((AgentTerminateMode2) => {
  AgentTerminateMode2["ERROR"] = "ERROR";
  AgentTerminateMode2["TIMEOUT"] = "TIMEOUT";
  AgentTerminateMode2["GOAL"] = "GOAL";
  AgentTerminateMode2["MAX_TURNS"] = "MAX_TURNS";
  AgentTerminateMode2["CANCELLED"] = "CANCELLED";
  AgentTerminateMode2["SHUTDOWN"] = "SHUTDOWN";
  return AgentTerminateMode2;
})(AgentTerminateMode || {});
var AgentStatus = /* @__PURE__ */ ((AgentStatus2) => {
  AgentStatus2["INITIALIZING"] = "initializing";
  AgentStatus2["RUNNING"] = "running";
  AgentStatus2["IDLE"] = "idle";
  AgentStatus2["COMPLETED"] = "completed";
  AgentStatus2["FAILED"] = "failed";
  AgentStatus2["CANCELLED"] = "cancelled";
  return AgentStatus2;
})(AgentStatus || {});
var isTerminalStatus = /* @__PURE__ */ __name((s) => s === "completed" /* COMPLETED */ || s === "failed" /* FAILED */ || s === "cancelled" /* CANCELLED */, "isTerminalStatus");
var isSuccessStatus = /* @__PURE__ */ __name((s) => s === "idle" /* IDLE */ || s === "completed" /* COMPLETED */, "isSuccessStatus");
var isSettledStatus = /* @__PURE__ */ __name((s) => s === "idle" /* IDLE */ || isTerminalStatus(s), "isSettledStatus");

export {
  AgentTerminateMode,
  AgentStatus,
  isTerminalStatus,
  isSuccessStatus,
  isSettledStatus
};
/**
 * @license
 * Copyright 2025 Qwen
 * SPDX-License-Identifier: Apache-2.0
 */
