> ## Documentation Index > Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt > Use this file to discover all available pages before exploring further. # State The content to evaluate: a plain string, or a JSON object or array of related context. ## Supported Types ### ```go theme={null} state := components.CreateStateStr(string{/* values here */}) ``` ### ```go theme={null} state := components.CreateStateMapOfAny(map[string]any{/* values here */}) ``` ### ```go theme={null} state := components.CreateStateArrayOfAny([]any{/* values here */}) ``` ## Union Discrimination Use the `Type` field to determine which variant is active, then access the corresponding field: ```go theme={null} switch state.Type { case components.StateTypeStr: // state.Str is populated case components.StateTypeMapOfAny: // state.MapOfAny is populated case components.StateTypeArrayOfAny: // state.ArrayOfAny is populated } ```