<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/i-kept-my-semantic-kernel-plugin-s-state-in-memory----on-purpose--hryomfzyd" -->

---
title: I kept my Semantic Kernel plugin's state in memory -- on...
description: A walkthrough of building a Semantic Kernel plugin using an in-memory state example called the 'lights plugin'. The tutorial demonstrates how plugin state can...
canonical: https://daily.dev/posts/i-kept-my-semantic-kernel-plugin-s-state-in-memory----on-purpose--hryomfzyd
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: I kept my Semantic Kernel plugin's state in memory -- on purpose. | daily.dev
og:description: A walkthrough of building a Semantic Kernel plugin using an in-memory state example called the 'lights plugin'. The tutorial demonstrates how plugin state can...
og:url: https://daily.dev/posts/i-kept-my-semantic-kernel-plugin-s-state-in-memory----on-purpose--hryomfzyd
og:image: https://api.daily.dev/og/posts/HRyOmfZYD.png
og:image:alt: I kept my Semantic Kernel plugin's state in memory -- on purpose.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# I kept my Semantic Kernel plugin's state in memory -- on purpose.

**[We Are .NET](https://daily.dev/sources/wearedotnet)** · 1 min read · 1 upvotes · 0 comments

## Summary

A walkthrough of building a Semantic Kernel plugin using an in-memory state example called the 'lights plugin'. The tutorial demonstrates how plugin state can be stored in memory for simplicity, while noting that real-world implementations could persist state in a database, file, or external service. The example is borrowed from Microsoft's documentation and serves as a foundation for building more complex plugins.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/shorts/UsLqNpyo3yI>

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#semantic-kernel](https://daily.dev/tags/semantic-kernel)

[View this post on daily.dev](https://daily.dev/posts/i-kept-my-semantic-kernel-plugin-s-state-in-memory----on-purpose--hryomfzyd)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"I kept my Semantic Kernel plugin's state in memory -- on purpose.","url":"https://daily.dev/posts/i-kept-my-semantic-kernel-plugin-s-state-in-memory----on-purpose--hryomfzyd","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/i-kept-my-semantic-kernel-plugin-s-state-in-memory----on-purpose--hryomfzyd"},"datePublished":"2026-08-03T17:49:12.830Z","dateModified":"2026-09-14T06:52:36.506Z","description":"A walkthrough of building a Semantic Kernel plugin using an in-memory state example called the 'lights plugin'. The tutorial demonstrates how plugin state can...","image":"https://i.ytimg.com/vi/UsLqNpyo3yI/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/UsLqNpyo3yI/sddefault.jpg","isAccessibleForFree":true,"articleSection":"We Are .NET","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"We Are .NET","logo":"https://media.daily.dev/image/upload/s--BsnVOa3i--/f_auto/v1718347410/logos/wearedotnet","url":"https://daily.dev/sources/wearedotnet"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/i-kept-my-semantic-kernel-plugin-s-state-in-memory----on-purpose--hryomfzyd","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,semantic-kernel","timeRequired":"PT1M","video":{"@type":"VideoObject","name":"I kept my Semantic Kernel plugin's state in memory -- on purpose.","description":"A walkthrough of building a Semantic Kernel plugin using an in-memory state example called the 'lights plugin'. The tutorial demonstrates how plugin state can...","thumbnailUrl":"https://i.ytimg.com/vi/UsLqNpyo3yI/sddefault.jpg","uploadDate":"2026-08-03T17:49:12.830Z","duration":"PT1M","url":"https://api.daily.dev/r/HRyOmfZYD","embedUrl":"https://www.youtube.com/embed/UsLqNpyo3yI"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"We Are .NET","item":"https://daily.dev/sources/wearedotnet"},{"@type":"ListItem","position":3,"name":"I kept my Semantic Kernel plugin's state in memory -- on purpose."}]}
```

