INNER CODE UNIT · TypeScript

agentChat

kagent-dev/kagent · ui/playwright/helpers/app.ts:102

export const agentChat = (id: string) =>
  `/agents/${id}/chat`;

/** Where one agent's record lives. */
export const agentDetail = (id: string) =>
  `/agents/${id}`;

/**
 * How the mock backend should behave for a navigation.
 *
 * The app reads this from the query string on every request (see
 * `src/mocks/scenario.ts`), which is what makes the loading, empty and failure
 * paths drivable from a test without a second build or a stubbed module.
 */
export type MockScenario = "ok" | "empty" | "error" | "slow";

/**
 * Adds the scenario to a path.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…