Skip to content

TaskSecret

Record in Oadm.Sdk.Tasks · Oadm.Sdk.dll

A secret a run of a payload needs that an AI agent never sends (SDK 0.13.0, ITaskPlugin.SecretsOf): the person enters it, and the host puts it into the payload at TaskSecret.Field for the run only.

public sealed record TaskSecret(string Name, string Label, string Field)

Parameters

  • Name: Lower case words with underscores, unique in the payload (“password”, “setting_2”).
  • Label: What the person is asked for, in lower case (“password”, “passphrase”, “PKCS#12 password”).
  • Field: Where the value goes in the payload: its JSON names with dots and list positions (“password”, “settings[2].value”), the same names as PayloadError.Field. The host sets a text there.
string Field { get; init; }

Where the value goes in the payload: its JSON names with dots and list positions (“password”, “settings[2].value”), the same names as PayloadError.Field. The host sets a text there.

string Label { get; init; }

What the person is asked for, in lower case (“password”, “passphrase”, “PKCS#12 password”).

string Name { get; init; }

Lower case words with underscores, unique in the payload (“password”, “setting_2”).