Miosa.Computer.Osa (Miosa v1.0.1)

Copy Markdown View Source

Task dispatch to the in-VM OSA agent.

Wraps:

  • POST /computers/:id/osa/task — submit_task/3
  • DELETE /computers/:id/osa/task — cancel_task/2
  • GET /computers/:id/osa/status — status/2
  • POST /computers/:id/osa/configure — configure/3

Summary

Functions

Cancel the currently-running OSA task, if any (DELETE /computers/:computer_id/osa/task).

Update OSA runtime configuration — model, tools, secrets, etc. (POST /computers/:computer_id/osa/configure).

Return OSA's current task, configuration, and health snapshot (GET /computers/:computer_id/osa/status).

Submit a free-form task to the in-VM OSA agent (POST /computers/:computer_id/osa/task).

Functions

cancel_task(client, computer_id)

@spec cancel_task(Miosa.Client.t(), String.t()) :: Miosa.Client.result(map())

Cancel the currently-running OSA task, if any (DELETE /computers/:computer_id/osa/task).

configure(client, computer_id, config)

@spec configure(Miosa.Client.t(), String.t(), map()) :: Miosa.Client.result(map())

Update OSA runtime configuration — model, tools, secrets, etc. (POST /computers/:computer_id/osa/configure).

status(client, computer_id)

@spec status(Miosa.Client.t(), String.t()) :: Miosa.Client.result(map())

Return OSA's current task, configuration, and health snapshot (GET /computers/:computer_id/osa/status).

submit_task(client, computer_id, task, params \\ %{})

@spec submit_task(Miosa.Client.t(), String.t(), String.t(), map()) ::
  Miosa.Client.result(map())

Submit a free-form task to the in-VM OSA agent (POST /computers/:computer_id/osa/task).

Additional params are merged into the request body.