DClare.Runtime.Integration 0.1.1

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package DClare.Runtime.Integration --version 0.1.1
                    
NuGet\Install-Package DClare.Runtime.Integration -Version 0.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DClare.Runtime.Integration" Version="0.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DClare.Runtime.Integration" Version="0.1.1" />
                    
Directory.Packages.props
<PackageReference Include="DClare.Runtime.Integration" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DClare.Runtime.Integration --version 0.1.1
                    
#r "nuget: DClare.Runtime.Integration, 0.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=DClare.Runtime.Integration&version=0.1.1
                    
Install DClare.Runtime.Integration as a Cake Addin
#tool nuget:?package=DClare.Runtime.Integration&version=0.1.1
                    
Install DClare.Runtime.Integration as a Cake Tool

DClare Runtime

DClare Runtime is the official, open-source, and modular runtime for executing agentic workflows defined using the DClare specification.

License Build Status Release NuGet <img src="http://img.shields.io/badge/Website-blue?style=flat&logo=google-chrome&logoColor=white"> <img src="https://img.shields.io/badge/LinkedIn-blue?logo=linkedin&logoColor=white">


✨ Features

  • βš™οΈ Declarative configuration of agents, kernels, and processes
  • 🀝 Pluggable communication protocols (e.g. A2A)
  • 🧠 Hosted and remote agent execution via kernel-driven logic
  • πŸ” Process convergence and synthesis logic for multi-agent workflows
  • πŸ“¦ Designed for integration in ASP.NET Core and other .NET environments

πŸ“‚ Structure

The runtime interprets a declarative component manifest (in YAML or JSON), defining:

  • Kernels β€” underlying reasoning engines (e.g. Azure OpenAI, OpenAI)
  • KernelFunctions β€” reusable prompt/function templates executable by kernels
  • Authentications β€” credentials and authorization details used to access external services
  • Toolsets β€” collections of tools that agents can invoke at runtime
  • Memories β€” external or local memory providers used to persist or retrieve contextual data
  • Agents β€” hosted or remote capabilities, built atop kernels
  • Processes β€” orchestration of agents through convergence/synthesis strategies

πŸ› οΈ Runtime Component Example

Below is an example structure used by the runtime to define an application:

components:
  kernels:
    openai:
      reasoning:
        provider: openai
        model: gpt-4o
  agents:
    openai:
      hosted:
        description: A general-purpose assistant capable of performing a wide range of reasoning, generation, and analysis tasks
        instructions: >
          You are an advanced AI assistant.

          Your purpose is to provide high-quality, context-aware responses to a wide variety of prompts. You may be asked to:
          - Answer questions accurately and clearly
          - Generate or edit structured and unstructured text
          - Analyze input for correctness, clarity, or quality
          - Help decompose or synthesize information
          - Assist with reasoning, summarization, or evaluation
          
          Always respond with clarity, precision, and relevance. If the prompt is ambiguous or lacks sufficient context, respond by asking for clarification.
          
          You are expected to behave in a neutral, helpful, and objective manner at all times.
        kernel:
          use: openai
  processes:
    reviewQuestion:
      convergence:
        strategy:
          decomposition:
            promptVariableName: prompt
            agentsVariableName: agents
            kernel:
              use: openai
            function:
              template:
                content: |
                  You are a task planner responsible for distributing a complex instruction to multiple specialized agents.

                  Your task:
                  1. Carefully analyze the user's original prompt.
                  2. Determine how each agent listed below (based on name and description) can contribute meaningfully.
                  3. For each agent, generate a standalone subprompt tailored to their specific function.
                  4. Each subprompt must:
                     - Be fully self-contained.
                     - Include all necessary context, including a restatement of the original user prompt.
                     - Be phrased as a direct and actionable instruction for that specific agent.
                     - Not assume the agent has access to any external context.
                  
                  ---
                  
                  **Original User Prompt:**
                  {{ $prompt }}
                  
                  ---
                  
                  **Available Agents:**
                  {{ $agents }}
                  
                  ---
                  
                  **Output Instructions:**
                  - Return only a raw, unformatted JSON object as your full output.
                    - Do NOT wrap the JSON in triple backticks (```).
                    - Do NOT add any explanation, comment, or formatting.
                    - Do NOT prepend or append any extra text.
                    - Your response MUST be a plain JSON object only β€” nothing else.
                  - Use the agent names as keys.
                  - Use the generated subprompts as values.
                  - Do **not** include any explanation, markdown, or formatting around the JSON.
                  
                  ---
                  
                  **Example Output:**
                  ```json
                  {
                    "Grammar": "Analyze the following prompt for grammar and spelling issues: What is the name of the King of Belgium?",
                    "Technical": "Evaluate the technical accuracy of the following networking question: What is the name of the King of Belgium?",
                    "Didactics": "Review the didactic quality of the following exam question: What is the name of the King of Belgium? Ensure it aligns with educational assessment standards."
                  }
          synthesis:
            responsesVariableName: responses
            kernel:
              use: openai
            function:
              template:
                content: |
                  You are an expert synthesizer responsible for combining multiple specialized insights into a single, cohesive response.

                  Your task:
                  1. Read the responses provided by various specialized agents.
                  2. Understand each response’s purpose and point of view based on the agent’s role.
                  3. Synthesize their content into a single, well-structured and informative answer.
                  4. Ensure that the final output is clear, non-redundant, and preserves all relevant contributions from each agent.
                  
                  ---
                  
                  **Agent Responses (as a JSON object):**
                  {{ $responses }}
                  
                  ---
                  
                  **Instructions:**
                  - Do not copy responses verbatim β€” blend them naturally into a single narrative.
                  - Do not refer to the agents by name.
                  - The final output should sound as if written by a single, knowledgeable expert.
        agents:
          GrammarAgent:
            hosted:
              description: Ensuring clarity, correctness, and readability through proper grammar, spelling, vocabulary, and concise phrasing
              instructions: |
                Your task is to refine text for clarity, correctness, and readability by ensuring proper grammar, spelling, vocabulary, and concise phrasing. Avoid ambiguity, redundant wording, and complex structures while maintaining the intended meaning and tone
              kernel:
                use: openai
          DidacticsAgent:
            hosted:
              description: Designing educational assessments that align with learning objectives, cognitive levels, and fair evaluation principles to ensure effective knowledge measurement
              instructions: |
                Your task is to design and refine educational assessments that align with learning objectives, cognitive levels, and fair evaluation principles. Ensure that each question effectively measures knowledge, maintains validity, and avoids bias while promoting clear and meaningful assessment.
              kernel:
                use: openai
          ExpertiseAgent:
            hosted:
              description: Ensuring content accuracy, relevance, and domain-specific validity by leveraging expert knowledge in the subject matter
              instructions: |
                Your task is to design and refine educational assessments that align with learning objectives, cognitive levels, and fair evaluation principles. Ensure that each question effectively measures knowledge, maintains validity, and avoids bias while promoting clear and meaningful assessment.
              kernel:
                use: openai

πŸ“– Documentation

Comprehensive documentation is available in the DClare specification repository, including:

  • Component schemas
  • Runtime behavior
  • Integration guides
  • Protocol support (e.g. A2A)

πŸ§‘β€πŸ’» Contributing

We welcome contributions! See CONTRIBUTING.md for instructions on how to get started.


πŸ“« Contact

For questions, suggestions, or collaboration: πŸ“§ contact@d-clare.ai


πŸͺͺ License

Licensed under the Apache License 2.0.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.7.0 0 5/10/2025
0.6.0 78 5/2/2025
0.5.0 135 4/30/2025
0.4.0 142 4/28/2025
0.1.1 136 4/18/2025
0.1.0 183 4/17/2025