Skip to content

Commit 9853d23

Browse files
committed
Remove projects that belong elsewhere
1 parent ce605fc commit 9853d23

33 files changed

+15
-2681
lines changed

Extensions.AI.sln

Lines changed: 13 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AI", "src\AI\AI.csproj", "{
77
EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AI.Tests", "src\AI.Tests\AI.Tests.csproj", "{3553B2FB-B06C-4766-93FD-1B7004761080}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dotnet-meai", "src\dotnet-meai\dotnet-meai.csproj", "{58FC11CF-7D61-48B9-B95F-0EAA889D6DED}"
11-
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Weaving", "src\Weaving\Weaving.csproj", "{0DA390D2-2953-4CB6-8939-02E142B11733}"
13-
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Samples", "src\Samples\Samples.csproj", "{4B78F0E3-E03B-4283-AB0B-B1D76CAEF1BC}"
15-
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AI.CodeAnalysis", "src\AI.CodeAnalysis\AI.CodeAnalysis.csproj", "{F6A9F74B-5C63-4C53-9745-F00BE40AF8C8}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AI.CodeAnalysis", "src\AI.CodeAnalysis\AI.CodeAnalysis.csproj", "{EEBAD5E8-1C76-0F75-7DD2-8A97BD31567B}"
1711
EndProject
1812
Global
1913
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -49,54 +43,18 @@ Global
4943
{3553B2FB-B06C-4766-93FD-1B7004761080}.Release|x64.Build.0 = Release|Any CPU
5044
{3553B2FB-B06C-4766-93FD-1B7004761080}.Release|x86.ActiveCfg = Release|Any CPU
5145
{3553B2FB-B06C-4766-93FD-1B7004761080}.Release|x86.Build.0 = Release|Any CPU
52-
{58FC11CF-7D61-48B9-B95F-0EAA889D6DED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
53-
{58FC11CF-7D61-48B9-B95F-0EAA889D6DED}.Debug|Any CPU.Build.0 = Debug|Any CPU
54-
{58FC11CF-7D61-48B9-B95F-0EAA889D6DED}.Debug|x64.ActiveCfg = Debug|Any CPU
55-
{58FC11CF-7D61-48B9-B95F-0EAA889D6DED}.Debug|x64.Build.0 = Debug|Any CPU
56-
{58FC11CF-7D61-48B9-B95F-0EAA889D6DED}.Debug|x86.ActiveCfg = Debug|Any CPU
57-
{58FC11CF-7D61-48B9-B95F-0EAA889D6DED}.Debug|x86.Build.0 = Debug|Any CPU
58-
{58FC11CF-7D61-48B9-B95F-0EAA889D6DED}.Release|Any CPU.ActiveCfg = Release|Any CPU
59-
{58FC11CF-7D61-48B9-B95F-0EAA889D6DED}.Release|Any CPU.Build.0 = Release|Any CPU
60-
{58FC11CF-7D61-48B9-B95F-0EAA889D6DED}.Release|x64.ActiveCfg = Release|Any CPU
61-
{58FC11CF-7D61-48B9-B95F-0EAA889D6DED}.Release|x64.Build.0 = Release|Any CPU
62-
{58FC11CF-7D61-48B9-B95F-0EAA889D6DED}.Release|x86.ActiveCfg = Release|Any CPU
63-
{58FC11CF-7D61-48B9-B95F-0EAA889D6DED}.Release|x86.Build.0 = Release|Any CPU
64-
{0DA390D2-2953-4CB6-8939-02E142B11733}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
65-
{0DA390D2-2953-4CB6-8939-02E142B11733}.Debug|Any CPU.Build.0 = Debug|Any CPU
66-
{0DA390D2-2953-4CB6-8939-02E142B11733}.Debug|x64.ActiveCfg = Debug|Any CPU
67-
{0DA390D2-2953-4CB6-8939-02E142B11733}.Debug|x64.Build.0 = Debug|Any CPU
68-
{0DA390D2-2953-4CB6-8939-02E142B11733}.Debug|x86.ActiveCfg = Debug|Any CPU
69-
{0DA390D2-2953-4CB6-8939-02E142B11733}.Debug|x86.Build.0 = Debug|Any CPU
70-
{0DA390D2-2953-4CB6-8939-02E142B11733}.Release|Any CPU.ActiveCfg = Release|Any CPU
71-
{0DA390D2-2953-4CB6-8939-02E142B11733}.Release|Any CPU.Build.0 = Release|Any CPU
72-
{0DA390D2-2953-4CB6-8939-02E142B11733}.Release|x64.ActiveCfg = Release|Any CPU
73-
{0DA390D2-2953-4CB6-8939-02E142B11733}.Release|x64.Build.0 = Release|Any CPU
74-
{0DA390D2-2953-4CB6-8939-02E142B11733}.Release|x86.ActiveCfg = Release|Any CPU
75-
{0DA390D2-2953-4CB6-8939-02E142B11733}.Release|x86.Build.0 = Release|Any CPU
76-
{4B78F0E3-E03B-4283-AB0B-B1D76CAEF1BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
77-
{4B78F0E3-E03B-4283-AB0B-B1D76CAEF1BC}.Debug|Any CPU.Build.0 = Debug|Any CPU
78-
{4B78F0E3-E03B-4283-AB0B-B1D76CAEF1BC}.Debug|x64.ActiveCfg = Debug|Any CPU
79-
{4B78F0E3-E03B-4283-AB0B-B1D76CAEF1BC}.Debug|x64.Build.0 = Debug|Any CPU
80-
{4B78F0E3-E03B-4283-AB0B-B1D76CAEF1BC}.Debug|x86.ActiveCfg = Debug|Any CPU
81-
{4B78F0E3-E03B-4283-AB0B-B1D76CAEF1BC}.Debug|x86.Build.0 = Debug|Any CPU
82-
{4B78F0E3-E03B-4283-AB0B-B1D76CAEF1BC}.Release|Any CPU.ActiveCfg = Release|Any CPU
83-
{4B78F0E3-E03B-4283-AB0B-B1D76CAEF1BC}.Release|Any CPU.Build.0 = Release|Any CPU
84-
{4B78F0E3-E03B-4283-AB0B-B1D76CAEF1BC}.Release|x64.ActiveCfg = Release|Any CPU
85-
{4B78F0E3-E03B-4283-AB0B-B1D76CAEF1BC}.Release|x64.Build.0 = Release|Any CPU
86-
{4B78F0E3-E03B-4283-AB0B-B1D76CAEF1BC}.Release|x86.ActiveCfg = Release|Any CPU
87-
{4B78F0E3-E03B-4283-AB0B-B1D76CAEF1BC}.Release|x86.Build.0 = Release|Any CPU
88-
{F6A9F74B-5C63-4C53-9745-F00BE40AF8C8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
89-
{F6A9F74B-5C63-4C53-9745-F00BE40AF8C8}.Debug|Any CPU.Build.0 = Debug|Any CPU
90-
{F6A9F74B-5C63-4C53-9745-F00BE40AF8C8}.Debug|x64.ActiveCfg = Debug|Any CPU
91-
{F6A9F74B-5C63-4C53-9745-F00BE40AF8C8}.Debug|x64.Build.0 = Debug|Any CPU
92-
{F6A9F74B-5C63-4C53-9745-F00BE40AF8C8}.Debug|x86.ActiveCfg = Debug|Any CPU
93-
{F6A9F74B-5C63-4C53-9745-F00BE40AF8C8}.Debug|x86.Build.0 = Debug|Any CPU
94-
{F6A9F74B-5C63-4C53-9745-F00BE40AF8C8}.Release|Any CPU.ActiveCfg = Release|Any CPU
95-
{F6A9F74B-5C63-4C53-9745-F00BE40AF8C8}.Release|Any CPU.Build.0 = Release|Any CPU
96-
{F6A9F74B-5C63-4C53-9745-F00BE40AF8C8}.Release|x64.ActiveCfg = Release|Any CPU
97-
{F6A9F74B-5C63-4C53-9745-F00BE40AF8C8}.Release|x64.Build.0 = Release|Any CPU
98-
{F6A9F74B-5C63-4C53-9745-F00BE40AF8C8}.Release|x86.ActiveCfg = Release|Any CPU
99-
{F6A9F74B-5C63-4C53-9745-F00BE40AF8C8}.Release|x86.Build.0 = Release|Any CPU
46+
{EEBAD5E8-1C76-0F75-7DD2-8A97BD31567B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
47+
{EEBAD5E8-1C76-0F75-7DD2-8A97BD31567B}.Debug|Any CPU.Build.0 = Debug|Any CPU
48+
{EEBAD5E8-1C76-0F75-7DD2-8A97BD31567B}.Debug|x64.ActiveCfg = Debug|Any CPU
49+
{EEBAD5E8-1C76-0F75-7DD2-8A97BD31567B}.Debug|x64.Build.0 = Debug|Any CPU
50+
{EEBAD5E8-1C76-0F75-7DD2-8A97BD31567B}.Debug|x86.ActiveCfg = Debug|Any CPU
51+
{EEBAD5E8-1C76-0F75-7DD2-8A97BD31567B}.Debug|x86.Build.0 = Debug|Any CPU
52+
{EEBAD5E8-1C76-0F75-7DD2-8A97BD31567B}.Release|Any CPU.ActiveCfg = Release|Any CPU
53+
{EEBAD5E8-1C76-0F75-7DD2-8A97BD31567B}.Release|Any CPU.Build.0 = Release|Any CPU
54+
{EEBAD5E8-1C76-0F75-7DD2-8A97BD31567B}.Release|x64.ActiveCfg = Release|Any CPU
55+
{EEBAD5E8-1C76-0F75-7DD2-8A97BD31567B}.Release|x64.Build.0 = Release|Any CPU
56+
{EEBAD5E8-1C76-0F75-7DD2-8A97BD31567B}.Release|x86.ActiveCfg = Release|Any CPU
57+
{EEBAD5E8-1C76-0F75-7DD2-8A97BD31567B}.Release|x86.Build.0 = Release|Any CPU
10058
EndGlobalSection
10159
GlobalSection(SolutionProperties) = preSolution
10260
HideSolutionNode = FALSE

readme.md

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
[![License](https://img.shields.io/github/license/devlooped/Extensions.AI.svg?color=blue)](https://github.com//devlooped/Extensions.AI/blob/main/license.txt)
77
[![Build](https://github.com/devlooped/Extensions.AI/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/devlooped/Extensions.AI/actions/workflows/build.yml)
88

9-
# Extensions
10-
11-
<!-- include src/AI/readme.md#content -->
129
<!-- #content -->
1310
Extensions for Microsoft.Extensions.AI
1411

@@ -110,62 +107,7 @@ IChatClient client = new GrokClient(Env.Get("XAI_API_KEY")!)
110107
})
111108
.Build();
112109
```
113-
114-
<!-- #content -->
115-
<!-- src/AI/readme.md#content -->
116-
117-
# Weaving
118-
119-
<!-- include src/Weaving/readme.md#content -->
120-
<!-- #content -->
121-
Run AI-powered C# files with the power of Microsoft.Extensions.AI and Devlooped.Extensions.AI
122-
123-
```csharp
124-
#:package Weaving@0.*
125-
126-
// Sample X.AI client usage with .NET
127-
var messages = new Chat()
128-
{
129-
{ "system", "You are a highly intelligent AI assistant." },
130-
{ "user", "What is 101*3?" },
131-
};
132-
133-
IChatClient grok = new GrokClient(Throw.IfNullOrEmpty(Env.Get("XAI_API_KEY")))
134-
.GetChatClient("grok-3-mini") // or "grok-3-mini-fast"
135-
.AsIChatClient();
136-
137-
var options = new GrokChatOptions
138-
{
139-
ReasoningEffort = ReasoningEffort.High, // or ReasoningEffort.Low
140-
Search = GrokSearch.Auto, // or GrokSearch.On or GrokSearch.Off
141-
};
142-
143-
var response = await grok.GetResponseAsync(messages, options);
144-
145-
AnsiConsole.MarkupLine($":robot: {response.Text}");
146-
```
147-
148-
> [!NOTE]
149-
> The most useful namespaces and dependencies for developing Microsoft.Extensions.AI-powered
150-
> applications are automatically referenced and imported when using this package.
151-
152-
## Configuration / Environment Variables
153-
154-
The `Env` class provides access to the following variables/configuration automatically:
155-
156-
* `.env` files: in local and parent directories
157-
* `~/.env` file: in the user's home directory (`%userprofile%\.env` on Windows)
158-
* All default configuration sources from [App Builder](https://learn.microsoft.com/en-us/dotnet/core/extensions/generic-host?tabs=appbuilder#host-builder-settings):
159-
* Environment variables prefixed with DOTNET_.
160-
* Command-line arguments.
161-
* appsettings.json.
162-
* appsettings.{Environment}.json.
163-
* Secret Manager when the app runs in the Development environment.
164-
* Environment variables.
165-
* Command-line arguments.
166-
167110
<!-- #content -->
168-
<!-- src/Weaving/readme.md#content -->
169111

170112
<!-- include https://github.com/devlooped/sponsors/raw/main/footer.md -->
171113
# Sponsors

src/AI.Tests/AI.Tests.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
77
</PropertyGroup>
88

9-
<ItemGroup>
10-
<Compile Include="..\AI\ChatClientExtensions.cs" Link="ChatClientExtensions.cs" />
11-
</ItemGroup>
12-
139
<ItemGroup>
1410
<PackageReference Include="coverlet.collector" Version="6.0.4" />
1511
<PackageReference Include="Microsoft.Extensions.AI.OpenAI" Version="9.6.0-preview.1.25310.2" />
@@ -29,6 +25,7 @@
2925
</ItemGroup>
3026

3127
<ItemGroup>
28+
<ProjectReference Include="..\AI.CodeAnalysis\AI.CodeAnalysis.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
3229
<ProjectReference Include="..\AI\AI.csproj" />
3330
</ItemGroup>
3431

src/AI/readme.md

Lines changed: 1 addition & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,4 @@
11
<!-- #content -->
2-
Extensions for Microsoft.Extensions.AI
3-
4-
## Grok
5-
6-
Full support for Grok [Live Search](https://docs.x.ai/docs/guides/live-search)
7-
and [Reasoning](https://docs.x.ai/docs/guides/reasoning) model options.
8-
9-
```csharp
10-
// Sample X.AI client usage with .NET
11-
var messages = new Chat()
12-
{
13-
{ "system", "You are a highly intelligent AI assistant." },
14-
{ "user", "What is 101*3?" },
15-
};
16-
17-
IChatClient grok = new GrokClient(Env.Get("XAI_API_KEY")!)
18-
.GetChatClient("grok-3-mini")
19-
.AsIChatClient();
20-
21-
var options = new GrokChatOptions
22-
{
23-
ModelId = "grok-3-mini-fast", // can override the model on the client
24-
Temperature = 0.7f,
25-
ReasoningEffort = ReasoningEffort.High, // or ReasoningEffort.Low
26-
Search = GrokSearch.Auto, // or GrokSearch.On or GrokSearch.Off
27-
};
28-
29-
var response = await grok.GetResponseAsync(messages, options);
30-
```
31-
32-
Search can alternatively be configured using a regular `ChatOptions`
33-
and adding the `HostedWebSearchTool` to the tools collection, which
34-
sets the live search mode to `auto` like above:
35-
36-
```csharp
37-
var messages = new Chat()
38-
{
39-
{ "system", "You are an AI assistant that knows how to search the web." },
40-
{ "user", "What's Tesla stock worth today? Search X and the news for latest info." },
41-
};
42-
43-
var grok = new GrokClient(Env.Get("XAI_API_KEY")!)
44-
.GetChatClient("grok-3")
45-
.AsIChatClient();
46-
47-
var options = new ChatOptions
48-
{
49-
Tools = [new HostedWebSearchTool()]
50-
};
51-
52-
var response = await grok.GetResponseAsync(messages, options);
53-
```
54-
55-
## Console Logging
56-
57-
Additional `UseJsonConsoleLogging` extension for rich JSON-formatted console logging of AI requests
58-
are provided at two levels:
59-
60-
* Chat pipeline: similar to `UseLogging`.
61-
* HTTP pipeline: lowest possible layer before the request is sent to the AI service,
62-
can capture all requests and responses. Can also be used with other Azure SDK-based
63-
clients that leverage `ClientPipelineOptions`.
64-
65-
> [!NOTE]
66-
> Rich JSON formatting is provided by [Spectre.Console](https://spectreconsole.net/)
67-
68-
The HTTP pipeline logging can be enabled by calling `UseJsonConsoleLogging` on the
69-
client options passed to the client constructor:
70-
71-
```csharp
72-
var openai = new OpenAIClient(
73-
Env.Get("OPENAI_API_KEY")!,
74-
new OpenAIClientOptions().UseJsonConsoleLogging());
75-
```
76-
77-
For a Grok client with search-enabled, a request would look like the following:
78-
79-
![](https://raw.githubusercontent.com/devlooped/Extensions.AI/main/assets/img/chatmessage.png)
80-
81-
Both alternatives receive an optional `JsonConsoleOptions` instance to configure
82-
the output, including truncating or wrapping long messages, setting panel style,
83-
and more.
84-
85-
The chat pipeline logging is added similar to other pipeline extensions:
86-
87-
```csharp
88-
IChatClient client = new GrokClient(Env.Get("XAI_API_KEY")!)
89-
.GetChatClient("grok-3-mini")
90-
.AsIChatClient()
91-
.AsBuilder()
92-
.UseOpenTelemetry()
93-
// other extensions...
94-
.UseJsonConsoleLogging(new JsonConsoleOptions()
95-
{
96-
// Formatting options...
97-
Border = BoxBorder.None,
98-
WrapLength = 80,
99-
})
100-
.Build();
101-
```
102-
103-
<!-- #content -->
2+
<!-- include ../../readme.md#content -->
1043
<!-- include https://github.com/devlooped/sponsors/raw/main/footer.md -->
1054
<!-- exclude -->

src/Samples/.env

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Samples/Program.cs

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/Samples/Properties/launchSettings.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/Samples/Samples.csproj

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/Samples/appsettings.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/Weaving/AppInitializer.cs

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)