Secret
Namespace: E2E
public sealed class SecretA 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
Fields
Section titled “Fields”MinLength
Section titled “MinLength”public const int MinLength = 6The 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
Properties
Section titled “Properties”public string Name { get; }Value: string
Purpose
Section titled “Purpose”public string? Purpose { get; }Value: string
Methods
Section titled “Methods”Create(string, string, string?)
Section titled “Create(string, string, string?)”public static Secret Create(string name, string value, string? purpose = null)Parameters
| Name | Type | Description |
|---|---|---|
name |
string | |
value |
string | |
purpose |
string |
Returns: Secret
ToString()
Section titled “ToString()”public override string ToString()Returns a string that represents the current object.
Returns: string — A string that represents the current object.