FsAgent 0.1.0
dotnet add package FsAgent --version 0.1.0
NuGet\Install-Package FsAgent -Version 0.1.0
<PackageReference Include="FsAgent" Version="0.1.0" />
<PackageVersion Include="FsAgent" Version="0.1.0" />
<PackageReference Include="FsAgent" />
paket add FsAgent --version 0.1.0
#r "nuget: FsAgent, 0.1.0"
#:package FsAgent@0.1.0
#addin nuget:?package=FsAgent&version=0.1.0
#tool nuget:?package=FsAgent&version=0.1.0
fsagent
A small DSL and library for generating custom agent files for popular agent tools
DSL
The library provides a top-level F# computation expression for authoring agents.
Example
open FsAgent.DSL
let agent = agent {
meta (meta {
kv "description" "A helpful assistant"
kv "model" "gpt-4"
kvList "tools" ["grep"; "bash"]
})
role "You are a helpful assistant"
objective "Assist users with coding tasks"
instructions "Follow these steps..."
examples [
example "How to build?" "Run dotnet build"
]
}
let markdown = MarkdownWriter.writeMarkdown agent id
For lower-level usage using the AST directly, see Using the AST.
Options
OutputFormat:Opencode(default) orCopilotOutputType:Md(default),Json, orYamlImportInclusion:None(default) orRawRenameMap: Map for renaming section headingsHeadingFormatter: Optional function to format headingsGeneratedFooter: Optional function to generate footer contentIncludeFrontmatter: Whether to include frontmatter (default true)CustomWriter: Optional custom writer function
See knowledge/import-data.md for an example of generated output with imported data rules from knowledge/import-data.rules.json.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- FSharp.Core (>= 10.0.101)
- YamlDotNet (>= 16.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0 | 121 | 12/17/2025 |
Constructors for `instructions`, `context`, `result`, `example`, `examples`; Markdown writer with configurable options for output format, type, import inclusion, heading renames, and custom writers; Agent DSL: Top-level F# computation expression `agent { ... }` for ergonomic agent authoring; Frontmatter helpers: `fmStr`, `fmNum`, `fmBool`, `fmList`, `fmMap` for generic metadata; Import inference: `importRef` infers format from file extensions (.yml/.yaml/.json/.toon)