microsoft / microsoft/WindowsAppSDK

Issue using WinAppSDK Phi Silica Features in a DLL Build

Open
#5,188 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-WCR Status: Investigating
Dominant language
C++
Stars
4.7k
Forks
471
Avg merge
3d 13h
Merged PRs (30d)
28

Description

Describe the bug

I am trying to create an AI Shell agent to use the phi silica model using the WinAppSDK but running into an issue when I try to load the DLL i build with AI Shell.

Image

I tried this work around https://github.com/CommunityToolkit/dotnet/issues/923#issuecomment-2314444048 but all it does is change the version from 2.2.0.0 to 2.1.0.0 in the error message.

Steps to reproduce the bug
  1. Build the code at https://github.com/StevenBucher98/phisilicaagent
  2. Install AI Shell
  3. Put the built dll in the .aish\agents\phisilicaconsole folder, you will need to create the phisilicaconsole folder, the naming has to match the name of the dll.
  4. Start AI Shell by running aish
  5. Choose the phiconsole agent and try to type a command
Expected behavior

Able to call the phi silica model from AI Shell

Screenshots

No response

NuGet package version

Windows App SDK 1.7 Experimental 3: 1.7.250127003-experimental3

Packaging type

Unpackaged

Windows version

Windows 11 version 24H2 (22621, October 2024 Update)

IDE

Visual Studio 2022

Additional context

I am on Copilot+ PC and was able to call phi silica agent using a test console app so confirm the model is there an working.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by building the linked phisilicaagent project, placing its DLL in the specified .aish\agents\phisilicaconsole folder, and reproducing the failure through aish. Compare the DLL-loaded agent with the working test console app while checking the Windows App SDK 1.7 Experimental 3 packaging and dependency behavior. Done means the Phi Silica agent loads in AI Shell and can invoke the model.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, powershell
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
34/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.