InstructionCultureResolver
AgentPrism.Core.dllResolves the instructions text a run should use from an AgentDefinition’s culture dictionary.
public static class InstructionCultureResolverInheritance
Section titled “Inheritance”object ← InstructionCultureResolver
Inherited Members
Section titled “Inherited Members”object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”Resolution order: the requested culture -> its parent subtag ("tr-TR" ->
"tr") -> AgentDefinition.Instructions. An unmatched culture
never fails compilation; it silently falls back to the default text.
Matching is case-insensitive: BCP-47 tags are conventionally lowercase, but a
definition authored by hand may not be.
Methods
Section titled “Methods”Resolve(AgentDefinition, string?)
Section titled “ Resolve(AgentDefinition, string?)”Resolves the instructions text for a definition and a requested culture.
public static string? Resolve(AgentDefinition definition, string? culture)Parameters
Section titled “Parameters”definition AgentDefinition
The definition being compiled.
culture string?
The requested culture; null or empty uses the default.
Returns
Section titled “Returns”The matched culture’s text, or AgentDefinition.Instructions when no entry matches (or the definition carries no culture dictionary).