Method ToJson NamespaceLMKit.Agents.Runs AssemblyLM-Kit.NET.dll ToJson() Writes the state as JSON. public string ToJson() Returns string The JSON text.