Skip to content

Secret

Namespace: E2E

public sealed class Secret

A value the model must not see. Prompts, transcripts, reports, and the names and test ids an act records in its replay cache entry receive <secret:name>. The agent fills the real value itself.

Inheritance: object

View source

public const int MinLength = 6

The fewest characters, counted as code points, a secret value may have. Redaction rewrites every occurrence of the value, so a shorter one would take ordinary text with it.

Value: int

View source

public string Name { get; }

Value: string

View source

public string? Purpose { get; }

Value: string

View source

public static Secret Create(string name, string value, string? purpose = null)

Parameters

Name Type Description
name string
value string
purpose string

Returns: Secret

View source

public override string ToString()

Returns a string that represents the current object.

Returns: string — A string that represents the current object.

View source