.NET Agent Framework: How an AI agent renames a file in a harness with Ollama
Authorised Territory demonstrates a .NET AI agent setup where an agent is allowed to rename a file inside a confined folder using the .NET Agent Framework harness, with a local Ollama-hosted LLM (gpt-oss) driving the agent’s decisions.
Overview
This tutorial shows how to wire up a constrained “harness” so an AI agent can perform a file operation (renaming a file) only within an allowed directory.
Key points covered:
- Using the .NET Agent Framework harness to constrain what the agent can do and where it can do it (a confined folder).
- Running the model locally with Ollama.
- Using an LLM identified as gpt-oss to interpret the request (“rename a file”) and drive the agent’s action.
Related starting point:
- Starting solution referenced by the author: https://youtu.be/1srTLjiLo_0