Skip to content

πŸ™Œ OpenHands: AI-Driven Development

802 B
Raw Blame
export const REQUEST_SECRET_TOOL_NAME = "request_secret";

/**
 * Action discriminator generated by the SDK for the client-defined secret
 * request tool (`ClientAction_<tool-name>`). Keep the SDK naming convention
 * contained here instead of repeating its generated class name.
 */
export const REQUEST_SECRET_ACTION_KIND =
  `ClientAction_${REQUEST_SECRET_TOOL_NAME}` as const;

/**
 * Prefix of the message the frontend posts back once the user answers the
 * secret request card. Client tools are acknowledged before the user acts, so
 * this message is the only way to tell the agent whether the secret is now
 * available. It carries the outcome only, never the value, and the chat hides
 * it (see `should-render-event.ts`).
 */
export const SECRET_REQUEST_RESULT_PREFIX = "[secret-request] ";