agentOS API Reference - v0.2.0-rc.3
    Preparing search index...

    Type Alias SerializableCronAction

    SerializableCronAction:
        | {
            agentType: string;
            options?: CreateSessionOptions;
            prompt: string;
            type: "session";
        }
        | { args?: string[]; command: string; type: "exec" }

    Type Declaration

    • {
          agentType: string;
          options?: CreateSessionOptions;
          prompt: string;
          type: "session";
      }
      • agentType: string
      • Optionaloptions?: CreateSessionOptions

        Session options applied when the cron fires (cwd, env, etc.).

      • prompt: string
      • type: "session"
    • { args?: string[]; command: string; type: "exec" }