Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[.NET] Return ChatCompletions instead of ChatResponseMessage for token usage. #2545

Merged
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
254 commits
Select commit Hold shift + click to select a range
0b265a3
update
LittleLittleCloud Dec 6, 2023
c6bc251
update
LittleLittleCloud Dec 7, 2023
1befc88
update
LittleLittleCloud Dec 7, 2023
47900f8
update
LittleLittleCloud Dec 8, 2023
521b76a
update
LittleLittleCloud Dec 8, 2023
5ad414c
add sample project
LittleLittleCloud Dec 9, 2023
75e4e69
revert notebook change back
LittleLittleCloud Dec 9, 2023
56e5741
update
LittleLittleCloud Dec 12, 2023
cc254b4
Merge branch 'main' into dotnet
LittleLittleCloud Dec 14, 2023
ddb2d69
update interactive version
LittleLittleCloud Dec 14, 2023
e6b7417
Merge branch 'dotnet' of https://github.com/microsoft/autogen into do…
LittleLittleCloud Dec 14, 2023
72f1778
add nuget package
LittleLittleCloud Dec 15, 2023
cebc2ed
refactor Message
LittleLittleCloud Dec 15, 2023
0744f0e
update example
LittleLittleCloud Dec 19, 2023
a1d98ab
Merge branch 'main' into dotnet
LittleLittleCloud Dec 30, 2023
9538a0b
Merge branch 'main' into dotnet
LittleLittleCloud Jan 1, 2024
cb198ac
add azure nightly build pipeline
LittleLittleCloud Jan 1, 2024
36f09b1
Merge branch 'dotnet' of https://github.com/microsoft/autogen into do…
LittleLittleCloud Jan 1, 2024
0177888
Set up CI with Azure Pipelines
LittleLittleCloud Jan 1, 2024
048ee55
Update nightly-build.yml for Azure Pipelines
LittleLittleCloud Jan 1, 2024
3bbfee1
add dotnet interactive package
LittleLittleCloud Jan 2, 2024
b27012c
add dotnet interactive package
LittleLittleCloud Jan 2, 2024
d33066d
Merge branch 'dotnet' of https://github.com/microsoft/autogen into do…
LittleLittleCloud Jan 2, 2024
2f558af
update pipeline
LittleLittleCloud Jan 2, 2024
b22c55b
add nuget feed back
LittleLittleCloud Jan 2, 2024
9556c3e
remove dotnet-tool feed
LittleLittleCloud Jan 2, 2024
970c6f1
remove dotnet-tool feed comment
LittleLittleCloud Jan 2, 2024
63eec7d
update pipeline
LittleLittleCloud Jan 2, 2024
638f37e
update build name
LittleLittleCloud Jan 2, 2024
0b5c1ad
Update nightly-build.yml
LittleLittleCloud Jan 2, 2024
37da646
Delete .github/workflows/dotnet-ci.yml
LittleLittleCloud Jan 2, 2024
c05a1dd
update
LittleLittleCloud Jan 2, 2024
bc6f3ab
Merge branch 'dotnet' of https://github.com/microsoft/autogen into do…
LittleLittleCloud Jan 2, 2024
b011bbb
Merge branch 'main' into dotnet
LittleLittleCloud Jan 2, 2024
0f9fb74
add working_dir to use step
LittleLittleCloud Jan 2, 2024
c2b33c6
add initateChat api
LittleLittleCloud Jan 2, 2024
508f0ac
update oai package
LittleLittleCloud Jan 2, 2024
4bdd229
Update dotnet-build.yml
LittleLittleCloud Jan 2, 2024
72e7ffd
Update dotnet-run-openai-test-and-notebooks.yml
LittleLittleCloud Jan 2, 2024
7ce258a
update build workflow
LittleLittleCloud Jan 2, 2024
c00ad1e
update build workflow
LittleLittleCloud Jan 2, 2024
a371809
update nuget feed
LittleLittleCloud Jan 2, 2024
997c11e
update nuget feed
LittleLittleCloud Jan 2, 2024
e8000bb
Merge branch 'main' into dotnet
LittleLittleCloud Jan 3, 2024
2484916
update aoai and sk version
LittleLittleCloud Jan 3, 2024
2683bf8
Merge branch 'dotnet' of https://github.com/microsoft/autogen into do…
LittleLittleCloud Jan 3, 2024
9fe94df
Update InteractiveService.cs
LittleLittleCloud Jan 3, 2024
4996384
add support for GPT 4V
LittleLittleCloud Jan 4, 2024
ced9aa9
add DalleAndGPT4V example
LittleLittleCloud Jan 4, 2024
70134ff
update example
LittleLittleCloud Jan 4, 2024
68151e7
Merge branch 'main' into dotnet
LittleLittleCloud Jan 4, 2024
79fe89f
add user proxy agent
LittleLittleCloud Jan 4, 2024
44c1909
Merge branch 'dotnet' of https://github.com/microsoft/autogen into do…
LittleLittleCloud Jan 4, 2024
77bc229
add readme
LittleLittleCloud Jan 4, 2024
3a30558
bump version
LittleLittleCloud Jan 4, 2024
e58ffe3
Merge branch 'main' into dotnet
LittleLittleCloud Jan 4, 2024
ecc3d5f
update example
LittleLittleCloud Jan 5, 2024
21c558d
Merge branch 'dotnet' of https://github.com/microsoft/autogen into do…
LittleLittleCloud Jan 5, 2024
bd1bb55
add dotnet interactive hook
LittleLittleCloud Jan 5, 2024
be28b7f
update
LittleLittleCloud Jan 6, 2024
aeb4d5d
udpate tests
LittleLittleCloud Jan 6, 2024
3af11a9
add website
LittleLittleCloud Jan 8, 2024
e63fce1
update index.md
LittleLittleCloud Jan 8, 2024
25fcd44
add docs
LittleLittleCloud Jan 8, 2024
6c3cae2
update doc
LittleLittleCloud Jan 9, 2024
0200371
move sk dependency out of core package
LittleLittleCloud Jan 9, 2024
f92f2c5
udpate doc
LittleLittleCloud Jan 9, 2024
72bee7a
Update Use-function-call.md
LittleLittleCloud Jan 9, 2024
65beb33
add type safe function call document
LittleLittleCloud Jan 9, 2024
0f6ff32
update doc
LittleLittleCloud Jan 9, 2024
35cc2db
update doc
LittleLittleCloud Jan 9, 2024
b7f406f
add dock
LittleLittleCloud Jan 9, 2024
d3e089c
Update Use-function-call.md
LittleLittleCloud Jan 10, 2024
b46f9ae
add GenerateReplyOptions
LittleLittleCloud Jan 10, 2024
a962863
remove IChatLLM
LittleLittleCloud Jan 10, 2024
fabf047
Merge branch 'dotnet' of https://github.com/microsoft/autogen into do…
LittleLittleCloud Jan 10, 2024
1b8e042
update version
LittleLittleCloud Jan 10, 2024
a161fa1
Merge branch 'main' into dotnet
LittleLittleCloud Jan 10, 2024
5b25261
update doc
LittleLittleCloud Jan 10, 2024
5986659
Merge branch 'dotnet' of https://github.com/microsoft/autogen into do…
LittleLittleCloud Jan 10, 2024
0828b08
update website
LittleLittleCloud Jan 10, 2024
d2427f8
add sample
LittleLittleCloud Jan 11, 2024
16ec7ce
fix link
LittleLittleCloud Jan 11, 2024
46f081c
add middleware agent
LittleLittleCloud Jan 24, 2024
b5a79cd
clean up doc
LittleLittleCloud Jan 24, 2024
6d5c22a
bump version
LittleLittleCloud Jan 24, 2024
0d592b2
update doc
LittleLittleCloud Jan 24, 2024
9d31909
Merge branch 'main' into dotnet
LittleLittleCloud Jan 24, 2024
0693702
update
LittleLittleCloud Jan 24, 2024
c349aa4
Merge branch 'dotnet' of https://github.com/microsoft/autogen into do…
LittleLittleCloud Jan 24, 2024
b90ca63
add Other Language
LittleLittleCloud Jan 24, 2024
06c3cf5
remove warnings
LittleLittleCloud Jan 26, 2024
8e93a28
add sign.props
LittleLittleCloud Jan 26, 2024
e1f1674
add sign step
LittleLittleCloud Jan 26, 2024
aa01ffb
fix pipelien
LittleLittleCloud Jan 26, 2024
fde4369
auth
LittleLittleCloud Jan 26, 2024
feda84f
real sign
LittleLittleCloud Jan 26, 2024
e175e0a
disable PR trigger
LittleLittleCloud Jan 26, 2024
674dee8
update
LittleLittleCloud Jan 26, 2024
0e7efba
disable PR trigger
LittleLittleCloud Jan 26, 2024
fb0dd72
use microbuild machine
LittleLittleCloud Jan 26, 2024
2cf0768
update build pipeline to add publish to internal feed
LittleLittleCloud Feb 1, 2024
d0387ec
add internal feed
LittleLittleCloud Feb 1, 2024
7a113e5
fix build pipeline
LittleLittleCloud Feb 1, 2024
b6a68eb
add dotnet prefix
LittleLittleCloud Feb 1, 2024
bf4fa7a
update ci
LittleLittleCloud Feb 1, 2024
37be1f4
add build number
LittleLittleCloud Feb 1, 2024
f9d1f2e
update run number
LittleLittleCloud Feb 1, 2024
43892f0
update source
LittleLittleCloud Feb 1, 2024
01b15c4
update token
LittleLittleCloud Feb 1, 2024
4bb63f5
update
LittleLittleCloud Feb 1, 2024
1ca29af
remove adding source
LittleLittleCloud Feb 1, 2024
aa96c44
add publish to github package
LittleLittleCloud Feb 1, 2024
f24d36b
try again
LittleLittleCloud Feb 1, 2024
d3ae10e
Merge branch 'main' into dotnet
LittleLittleCloud Feb 1, 2024
067386f
try again
LittleLittleCloud Feb 1, 2024
b742403
Merge branch 'dotnet' of https://github.com/microsoft/autogen into do…
LittleLittleCloud Feb 1, 2024
75ecb8a
ask for write pacakge
LittleLittleCloud Feb 1, 2024
cb3a430
disable package when branch is not main
LittleLittleCloud Feb 1, 2024
f7b5062
update
LittleLittleCloud Feb 8, 2024
a4ee32c
implement streaming agent
LittleLittleCloud Feb 8, 2024
2005552
add test for streaming function call
LittleLittleCloud Feb 8, 2024
f23ca73
update
LittleLittleCloud Feb 9, 2024
221bb8f
fix #1588
LittleLittleCloud Feb 10, 2024
becc618
enable PR check for dotnet branch
LittleLittleCloud Feb 10, 2024
71651c1
add website readme
LittleLittleCloud Feb 10, 2024
058947d
only publish to dotnet feed when pushing to dotnet branch
LittleLittleCloud Feb 10, 2024
6b9d61e
remove openai-test-and-notebooks workflow
LittleLittleCloud Feb 10, 2024
64b1fbf
update readme
LittleLittleCloud Feb 10, 2024
6c933ac
update readme
LittleLittleCloud Feb 10, 2024
f17601c
update workflow
LittleLittleCloud Feb 10, 2024
1007e44
update getting-start
LittleLittleCloud Feb 10, 2024
243fa40
upgrade test and sample proejct to use .net 8
LittleLittleCloud Feb 10, 2024
c3fc32c
fix global.json format && make loadFromConfig API internal only befor…
LittleLittleCloud Feb 10, 2024
3064f95
update
LittleLittleCloud Feb 11, 2024
d49cbfa
add support for LM studio
LittleLittleCloud Feb 11, 2024
30abd24
add doc
LittleLittleCloud Feb 12, 2024
1fe8fb7
Merge pull request #1634 from microsoft/u/xiaoyun/dotnet/LMStudio
LittleLittleCloud Feb 12, 2024
8f233b0
Merge pull request #1620 from microsoft/u/xiaoyun/dotnet/updateToNet8
LittleLittleCloud Feb 12, 2024
5ba675b
Merge branch 'dotnet' into u/xiaoyun/dotnet/#1588
LittleLittleCloud Feb 12, 2024
9d8d721
Merge pull request #1614 from microsoft/u/xiaoyun/dotnet/#1588
LittleLittleCloud Feb 12, 2024
a71ebcb
Merge branch 'dotnet' into u/xiaoyun/dotnet-publish
LittleLittleCloud Feb 12, 2024
2546a5f
Update README.md
LittleLittleCloud Feb 12, 2024
fe2400e
Merge pull request #1619 from microsoft/u/xiaoyun/dotnet-publish
LittleLittleCloud Feb 12, 2024
43fe148
Merge branch 'main' into dotnet
LittleLittleCloud Feb 12, 2024
2c6914a
add push and workflow_dispatch trigger
LittleLittleCloud Feb 12, 2024
2ea68f9
disable PR for main
LittleLittleCloud Feb 12, 2024
b94c81b
add dotnet env
LittleLittleCloud Feb 12, 2024
634dee8
Merge pull request #1649 from microsoft/u/xiaoyun/dotnet/0212
LittleLittleCloud Feb 12, 2024
72272b6
Update Installation.md
LittleLittleCloud Feb 12, 2024
4137d87
add nuget
LittleLittleCloud Feb 12, 2024
283878a
refer to newtonsoft 13
LittleLittleCloud Feb 12, 2024
0235b99
update branch to dotnet in docfx
LittleLittleCloud Feb 12, 2024
bfb59d6
Update Installation.md
LittleLittleCloud Feb 12, 2024
38f4102
Merge branch 'dotnet' into u/xiaoyun/dotnet/middleware
LittleLittleCloud Feb 12, 2024
b95652f
pull out HumanInputMiddleware and FunctionCallMiddleware
LittleLittleCloud Feb 13, 2024
ce81c76
fix tests
LittleLittleCloud Feb 13, 2024
f47e0cc
add link to sample folder
LittleLittleCloud Feb 13, 2024
ef92c1c
Merge branch 'dotnet' of https://github.com/microsoft/autogen into do…
LittleLittleCloud Feb 13, 2024
1486f4b
refactor message
LittleLittleCloud Feb 13, 2024
02997dc
Merge branch 'main' into dotnet
LittleLittleCloud Feb 13, 2024
df54732
Merge branch 'dotnet' into u/xiaoyun/dotnet/middleware
LittleLittleCloud Feb 13, 2024
f876431
refactor over IMessage
LittleLittleCloud Feb 14, 2024
e9a472f
add more tests
LittleLittleCloud Feb 14, 2024
8919058
add more test
LittleLittleCloud Feb 14, 2024
f99659e
fix build error
LittleLittleCloud Feb 14, 2024
1e3364b
rename header
LittleLittleCloud Feb 14, 2024
01e492e
add semantic kernel project
LittleLittleCloud Feb 14, 2024
bccfbc5
update sk example
LittleLittleCloud Feb 14, 2024
a4e592c
Merge branch 'dotnet' into u/xiaoyun/dotnet/message
LittleLittleCloud Feb 14, 2024
1935f70
update dotnet version
LittleLittleCloud Feb 14, 2024
33056d1
add LMStudio function call example
LittleLittleCloud Feb 18, 2024
b0f1693
Merge branch 'main' into dotnet
LittleLittleCloud Feb 18, 2024
a272413
rename LLaMAFunctin
LittleLittleCloud Feb 18, 2024
3875645
remove dotnet run openai test and notebook workflow
LittleLittleCloud Feb 18, 2024
58e27f2
Merge branch 'dotnet' of https://github.com/microsoft/autogen into do…
LittleLittleCloud Feb 18, 2024
5903c9c
Merge branch 'dotnet' into u/xiaoyun/dotnet/addLMStudioFunctionCallEx…
LittleLittleCloud Feb 18, 2024
4dfe314
Merge pull request #1717 from microsoft/u/xiaoyun/dotnet/addLMStudioF…
LittleLittleCloud Feb 18, 2024
4d24b68
Merge branch 'dotnet' into u/xiaoyun/dotnet/message
LittleLittleCloud Feb 20, 2024
3f7c648
Merge branch 'dotnet' into u/xiaoyun/dotnet/middleware
LittleLittleCloud Feb 20, 2024
1fa15a4
add FunctionContract and test
LittleLittleCloud Feb 20, 2024
1e07f47
Merge pull request #1736 from microsoft/u/xiaoyun/FunctionContract
LittleLittleCloud Feb 21, 2024
60356a7
Merge branch 'dotnet' into u/xiaoyun/dotnet/middleware
LittleLittleCloud Feb 21, 2024
4adec32
update doc
LittleLittleCloud Feb 21, 2024
417be15
add documents
LittleLittleCloud Feb 21, 2024
49b2a65
add workflow
LittleLittleCloud Feb 22, 2024
c81ea6f
update
LittleLittleCloud Feb 22, 2024
7a85f58
update sample
LittleLittleCloud Feb 22, 2024
f3570cf
fix warning in test
LittleLittleCloud Feb 22, 2024
7e97604
Merge pull request #1742 from microsoft/u/xiaoyun/updateDoc
LittleLittleCloud Feb 23, 2024
d5b127b
Merge branch 'dotnet' into u/xiaoyun/dotnet-workflow
LittleLittleCloud Feb 23, 2024
70c7dbd
Merge pull request #1761 from microsoft/u/xiaoyun/dotnet-workflow
LittleLittleCloud Feb 23, 2024
ef055b3
Merge branch 'dotnet' into u/xiaoyun/dotnet/middleware
LittleLittleCloud Feb 27, 2024
0cfbf2f
reult length can be less then maximumOutputToKeep (#1804)
mhensen Feb 28, 2024
87a745e
Merge branch 'dotnet' into u/xiaoyun/dotnet/middleware
LittleLittleCloud Feb 28, 2024
e422329
merge with main
LittleLittleCloud Feb 28, 2024
c28b0cc
Merge pull request #1656 from microsoft/u/xiaoyun/dotnet/middleware
LittleLittleCloud Feb 28, 2024
53a481d
Merge branch 'dotnet' into u/xiaoyun/dotnet/message
LittleLittleCloud Feb 28, 2024
3682e8e
Merge branch 'dotnet' into u/xiaoyun/dotnet/message
LittleLittleCloud Feb 29, 2024
979575a
add option to retrieve inner agent and middlewares from MiddlewareAgent
LittleLittleCloud Feb 29, 2024
85f7469
update doc
LittleLittleCloud Feb 29, 2024
138879b
adjust namespace
LittleLittleCloud Feb 29, 2024
463de1e
update readme
LittleLittleCloud Feb 29, 2024
077cb46
fix test
LittleLittleCloud Feb 29, 2024
25498f6
Merge pull request #1821 from microsoft/u/xiaoyun/refactorMiddleware
LittleLittleCloud Feb 29, 2024
4068373
Merge branch 'dotnet' into u/xiaoyun/dotnet/message
LittleLittleCloud Feb 29, 2024
f079405
use IMessage
LittleLittleCloud Feb 29, 2024
5194e23
more updates
LittleLittleCloud Feb 29, 2024
da89fb0
update
LittleLittleCloud Mar 1, 2024
fb36566
fix test
LittleLittleCloud Mar 1, 2024
bc3e1df
add comments
LittleLittleCloud Mar 1, 2024
0d5fdac
use FunctionContract to replace FunctionDefinition
LittleLittleCloud Mar 1, 2024
4a1e288
move AutoGen contrac to AutoGen.Core
LittleLittleCloud Mar 1, 2024
5ed491d
update installation
LittleLittleCloud Mar 1, 2024
273b283
refactor streamingAgent by adding StreamingMessage type
LittleLittleCloud Mar 1, 2024
40265e6
update sample
LittleLittleCloud Mar 1, 2024
a392b23
update samples
LittleLittleCloud Mar 2, 2024
6a268a7
update
LittleLittleCloud Mar 2, 2024
d301ea3
update
LittleLittleCloud Mar 2, 2024
f9ff7e6
add test
LittleLittleCloud Mar 3, 2024
b32f5b5
fix test
LittleLittleCloud Mar 3, 2024
9bb9fd9
bump version
LittleLittleCloud Mar 3, 2024
cbacdc7
add openaichat test
LittleLittleCloud Mar 3, 2024
222a57c
update
LittleLittleCloud Mar 3, 2024
e12a824
Merge pull request #1676 from microsoft/u/xiaoyun/dotnet/message
LittleLittleCloud Mar 3, 2024
14bb413
Update Example03_Agent_FunctionCall.cs
LittleLittleCloud Mar 8, 2024
9f9b380
[.Net] improve docs (#1862)
LittleLittleCloud Mar 8, 2024
2319b7c
[.Net] Add fill form example (#1911)
LittleLittleCloud Mar 12, 2024
44e2aac
[.Net] Add using AutoGen.Core in source generator (#1983)
LittleLittleCloud Mar 12, 2024
c1ba016
disable PR test
LittleLittleCloud Mar 12, 2024
b93c6a3
Add .idea to .gitignore (#1988)
Krzysztof318 Mar 13, 2024
d58f2c8
Merge branch 'main' into dotnet
LittleLittleCloud Mar 13, 2024
0369ec7
[.Net] publish to nuget.org feed (#1987)
LittleLittleCloud Mar 13, 2024
b2d3474
[.Net] Rename some classes && APIs based on doc review (#1980)
LittleLittleCloud Mar 13, 2024
025684d
[.Net] Improve package description (#2161)
LittleLittleCloud Mar 27, 2024
8214a21
[.Net] Fix document comment from the most recent AutoGen.Net engineer…
LittleLittleCloud Apr 2, 2024
27f172f
[.Net] Enable JsonMode and deterministic output in AutoGen.OpenAI Ope…
LittleLittleCloud Apr 11, 2024
ebb4c8c
[.Net] Add AutoGen.Mistral package (#2330)
LittleLittleCloud Apr 20, 2024
e650cf0
Merge branch 'main' into dotnet
LittleLittleCloud Apr 21, 2024
1a60660
track (#2471)
LittleLittleCloud Apr 22, 2024
7cce072
[.Net] add mistral example (#2482)
LittleLittleCloud Apr 23, 2024
7cadfb0
Merge branch 'main' into dotnet
LittleLittleCloud Apr 23, 2024
09de3cc
Update dotnet-release.yml (#2488)
LittleLittleCloud Apr 23, 2024
de2b3a6
Merge branch 'main' into dotnet
LittleLittleCloud Apr 24, 2024
cc4564f
Merge branch 'main' into dotnet
LittleLittleCloud Apr 25, 2024
f34feb6
update
LittleLittleCloud Apr 25, 2024
999371a
revert gitattributes
LittleLittleCloud Apr 25, 2024
3c61969
Merge branch 'main' into dotnet
LittleLittleCloud Apr 25, 2024
5064387
Return ChatCompletions instead of ChatResponseMessage for token usage.
Apr 29, 2024
d6f0404
Merge main
Apr 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/dotnet-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,4 @@ jobs:
ls -R ./output/nightly
dotnet nuget push --api-key ${{ secrets.MYGET_TOKEN }} --source "https://www.myget.org/F/agentchat/api/v3/index.json" ./output/nightly/*.nupkg --skip-duplicate
env:
MYGET_TOKEN: ${{ secrets.MYGET_TOKEN }}

MYGET_TOKEN: ${{ secrets.MYGET_TOKEN }}
14 changes: 4 additions & 10 deletions .github/workflows/dotnet-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
workflow_dispatch:
push:
branches:
- dotnet/release/**
- dotnet/release

concurrency:
Expand Down Expand Up @@ -59,13 +60,6 @@ jobs:
echo "Publish package to Nuget"
echo "ls output directory"
ls -R ./output/release
dotnet nuget push --api-key AzureArtifacts ./output/release/*.nupkg --skip-duplicate --api-key ${{ secrets.AUTOGEN_NUGET_API_KEY }}
- name: Tag commit
run: |
Write-Host "Tag commit"
# version = eng/MetaInfo.props.Project.PropertyGroup.VersionPrefix
$metaInfoContent = cat ./eng/MetaInfo.props
$version = $metaInfoContent | Select-String -Pattern "<VersionPrefix>(.*)</VersionPrefix>" | ForEach-Object { $_.Matches.Groups[1].Value }
git tag -a "$version" -m "AutoGen.Net release $version"
git push origin --tags
shell: pwsh
# remove AutoGen.SourceGenerator.snupkg because it's an empty package
rm ./output/release/AutoGen.SourceGenerator.*.snupkg
dotnet nuget push --api-key ${{ secrets.AUTOGEN_NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json ./output/release/*.nupkg --skip-duplicate
26 changes: 16 additions & 10 deletions dotnet/.config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
{
"version": 1,
"isRoot": true,
"tools": {
"dotnet-repl": {
"version": "0.1.205",
"commands": [
"dotnet-repl"
]
}
"version": 1,
"isRoot": true,
"tools": {
"dotnet-repl": {
"version": "0.1.205",
"commands": [
"dotnet-repl"
]
},
"docfx": {
"version": "2.67.5",
"commands": [
"docfx"
]
}
}
}
}
178 changes: 178 additions & 0 deletions dotnet/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
# EditorConfig is awesome:http://EditorConfig.org

# top-most EditorConfig file
root = true

# Don't use tabs for indentation.
[*]
indent_style = space
# (Please don't specify an indent_size here; that has too many unintended consequences.)

# Code files
[*.{cs,csx,vb,vbx}]
indent_size = 4
insert_final_newline = true
charset = utf-8-bom

[*.xaml]
indent_size = 4

[*.ps1]
indent_size = 2

# Xml project files
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
indent_size = 2

# Xml config files
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
indent_size = 2

# JSON files
[*.json]
indent_size = 2

[*.groovy]
indent_size = 2

# Dotnet code style settings:
[*.{cs,vb}]
# Sort using and Import directives with System.* appearing first
dotnet_sort_system_directives_first = true
dotnet_style_require_accessibility_modifiers = always:warning

# No blank line between System.* and Microsoft.*
dotnet_separate_import_directive_groups = false

# Suggest more modern language features when available
dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_coalesce_expression = true:error
dotnet_style_null_propagation = true:error
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
dotnet_style_prefer_conditional_expression_over_return = false
dotnet_style_prefer_conditional_expression_over_assignment = false
dotnet_style_prefer_auto_properties = false

# Use language keywords instead of framework type names for type references
dotnet_style_predefined_type_for_locals_parameters_members = true:error
dotnet_style_predefined_type_for_member_access = true:error

# Prefer read-only on fields
dotnet_style_readonly_field = false

# CSharp code style settings:
[*.cs]

# Prefer "var" only when the type is apparent
csharp_style_var_for_built_in_types = false:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = false:suggestion

# Prefer method-like constructs to have a block body
csharp_style_expression_bodied_methods = false:none
csharp_style_expression_bodied_constructors = false:none
csharp_style_expression_bodied_operators = false:none

# Prefer property-like constructs to have an expression-body
csharp_style_expression_bodied_properties = true:none
csharp_style_expression_bodied_indexers = true:none
csharp_style_expression_bodied_accessors = true:none

# Use block body for local functions
csharp_style_expression_bodied_local_functions = when_on_single_line:silent

# Suggest more modern language features when available
csharp_style_pattern_matching_over_is_with_cast_check = true:error
csharp_style_pattern_matching_over_as_with_null_check = true:error
csharp_style_inlined_variable_declaration = true:error
csharp_style_throw_expression = true:suggestion
csharp_style_conditional_delegate_call = true:suggestion
csharp_style_deconstructed_variable_declaration = true:suggestion

# Newline settings
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true

# Identation options
csharp_indent_case_contents = true
csharp_indent_case_contents_when_block = true
csharp_indent_switch_labels = true
csharp_indent_labels = no_change
csharp_indent_block_contents = true
csharp_indent_braces = false

# Spacing options
csharp_space_after_cast = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_between_method_call_empty_parameter_list_parentheses = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_method_declaration_name_and_open_parenthesis = false
csharp_space_between_parentheses = false
csharp_space_between_square_brackets = false
csharp_space_between_empty_square_brackets = false
csharp_space_before_open_square_brackets = false
csharp_space_around_declaration_statements = false
csharp_space_around_binary_operators = before_and_after
csharp_space_after_cast = false
csharp_space_before_semicolon_in_for_statement = false
csharp_space_before_dot = false
csharp_space_after_dot = false
csharp_space_before_comma = false
csharp_space_after_comma = true
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_after_semicolon_in_for_statement = true

# Wrapping
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_blocks = true

# Code block
csharp_prefer_braces = false:none

# Using statements
csharp_using_directive_placement = outside_namespace:error

# Modifier settings
csharp_prefer_static_local_function = true:warning
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:warning

# Header template
file_header_template = Copyright (c) Microsoft Corporation. All rights reserved.\n{fileName}
dotnet_diagnostic.IDE0073.severity = error

# enable format error
dotnet_diagnostic.IDE0055.severity = error

# IDE0035: Remove unreachable code
dotnet_diagnostic.IDE0035.severity = error

# IDE0005: Remove unncecessary usings
dotnet_diagnostic.CS8019.severity = error
dotnet_diagnostic.IDE0005.severity = error

# IDE0069: Remove unused local variable
dotnet_diagnostic.IDE0069.severity = error

# disable CS1573: Parameter has no matching param tag in the XML comment for
dotnet_diagnostic.CS1573.severity = none

# disable CS1570: XML comment has badly formed XML
dotnet_diagnostic.CS1570.severity = none

# disable check for generated code
[*.generated.cs]
generated_code = true
30 changes: 30 additions & 0 deletions dotnet/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# gitignore file for C#/VS

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
build/
bld/
[Bb]in/
[Oo]bj/

# vs cache
.vs/

# vs code cache
.vscode/

# Properties
Properties/

artifacts/
output/

*.binlog

# JetBrains Rider
.idea/
111 changes: 111 additions & 0 deletions dotnet/AutoGen.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.8.34322.80
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen", "src\AutoGen\AutoGen.csproj", "{B2B27ACB-AA50-4FED-A06C-3AD6B4218188}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{18BF8DD7-0585-48BF-8F97-AD333080CE06}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{F823671B-3ECA-4AE6-86DA-25E920D3FE64}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.Tests", "test\AutoGen.Tests\AutoGen.Tests.csproj", "{FDD99AEC-4C57-4020-B23F-650612856102}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.SourceGenerator", "src\AutoGen.SourceGenerator\AutoGen.SourceGenerator.csproj", "{3FFD14E3-D6BC-4EA7-97A2-D21733060FD6}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.SourceGenerator.Tests", "test\AutoGen.SourceGenerator.Tests\AutoGen.SourceGenerator.Tests.csproj", "{05A2FAD8-03B0-4B2F-82AF-2F6BF0F050E5}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.BasicSample", "sample\AutoGen.BasicSamples\AutoGen.BasicSample.csproj", "{7EBF916A-A7B1-4B74-AF10-D705B7A18F58}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sample", "sample", "{FBFEAD1F-29EB-4D99-A672-0CD8473E10B9}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.DotnetInteractive", "src\AutoGen.DotnetInteractive\AutoGen.DotnetInteractive.csproj", "{B61D8008-7FB7-4C0E-8044-3A74AA63A596}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.LMStudio", "src\AutoGen.LMStudio\AutoGen.LMStudio.csproj", "{F98BDA9B-8657-4BA8-9B03-BAEA454CAE60}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.SemanticKernel", "src\AutoGen.SemanticKernel\AutoGen.SemanticKernel.csproj", "{45D6FC80-36F3-4967-9663-E20B63824621}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.Core", "src\AutoGen.Core\AutoGen.Core.csproj", "{D58D43D1-0617-4A3D-9932-C773E6398535}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.OpenAI", "src\AutoGen.OpenAI\AutoGen.OpenAI.csproj", "{63445BB7-DBB9-4AEF-9D6F-98BBE75EE1EC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AutoGen.Mistral", "src\AutoGen.Mistral\AutoGen.Mistral.csproj", "{6585D1A4-3D97-4D76-A688-1933B61AEB19}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AutoGen.Mistral.Tests", "test\AutoGen.Mistral.Tests\AutoGen.Mistral.Tests.csproj", "{15441693-3659-4868-B6C1-B106F52FF3BA}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B2B27ACB-AA50-4FED-A06C-3AD6B4218188}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B2B27ACB-AA50-4FED-A06C-3AD6B4218188}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B2B27ACB-AA50-4FED-A06C-3AD6B4218188}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B2B27ACB-AA50-4FED-A06C-3AD6B4218188}.Release|Any CPU.Build.0 = Release|Any CPU
{FDD99AEC-4C57-4020-B23F-650612856102}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FDD99AEC-4C57-4020-B23F-650612856102}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FDD99AEC-4C57-4020-B23F-650612856102}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FDD99AEC-4C57-4020-B23F-650612856102}.Release|Any CPU.Build.0 = Release|Any CPU
{3FFD14E3-D6BC-4EA7-97A2-D21733060FD6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3FFD14E3-D6BC-4EA7-97A2-D21733060FD6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3FFD14E3-D6BC-4EA7-97A2-D21733060FD6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3FFD14E3-D6BC-4EA7-97A2-D21733060FD6}.Release|Any CPU.Build.0 = Release|Any CPU
{05A2FAD8-03B0-4B2F-82AF-2F6BF0F050E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{05A2FAD8-03B0-4B2F-82AF-2F6BF0F050E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{05A2FAD8-03B0-4B2F-82AF-2F6BF0F050E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{05A2FAD8-03B0-4B2F-82AF-2F6BF0F050E5}.Release|Any CPU.Build.0 = Release|Any CPU
{7EBF916A-A7B1-4B74-AF10-D705B7A18F58}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7EBF916A-A7B1-4B74-AF10-D705B7A18F58}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7EBF916A-A7B1-4B74-AF10-D705B7A18F58}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7EBF916A-A7B1-4B74-AF10-D705B7A18F58}.Release|Any CPU.Build.0 = Release|Any CPU
{B61D8008-7FB7-4C0E-8044-3A74AA63A596}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B61D8008-7FB7-4C0E-8044-3A74AA63A596}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B61D8008-7FB7-4C0E-8044-3A74AA63A596}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B61D8008-7FB7-4C0E-8044-3A74AA63A596}.Release|Any CPU.Build.0 = Release|Any CPU
{F98BDA9B-8657-4BA8-9B03-BAEA454CAE60}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F98BDA9B-8657-4BA8-9B03-BAEA454CAE60}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F98BDA9B-8657-4BA8-9B03-BAEA454CAE60}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F98BDA9B-8657-4BA8-9B03-BAEA454CAE60}.Release|Any CPU.Build.0 = Release|Any CPU
{45D6FC80-36F3-4967-9663-E20B63824621}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{45D6FC80-36F3-4967-9663-E20B63824621}.Debug|Any CPU.Build.0 = Debug|Any CPU
{45D6FC80-36F3-4967-9663-E20B63824621}.Release|Any CPU.ActiveCfg = Release|Any CPU
{45D6FC80-36F3-4967-9663-E20B63824621}.Release|Any CPU.Build.0 = Release|Any CPU
{D58D43D1-0617-4A3D-9932-C773E6398535}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D58D43D1-0617-4A3D-9932-C773E6398535}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D58D43D1-0617-4A3D-9932-C773E6398535}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D58D43D1-0617-4A3D-9932-C773E6398535}.Release|Any CPU.Build.0 = Release|Any CPU
{63445BB7-DBB9-4AEF-9D6F-98BBE75EE1EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{63445BB7-DBB9-4AEF-9D6F-98BBE75EE1EC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{63445BB7-DBB9-4AEF-9D6F-98BBE75EE1EC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{63445BB7-DBB9-4AEF-9D6F-98BBE75EE1EC}.Release|Any CPU.Build.0 = Release|Any CPU
{6585D1A4-3D97-4D76-A688-1933B61AEB19}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6585D1A4-3D97-4D76-A688-1933B61AEB19}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6585D1A4-3D97-4D76-A688-1933B61AEB19}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6585D1A4-3D97-4D76-A688-1933B61AEB19}.Release|Any CPU.Build.0 = Release|Any CPU
{15441693-3659-4868-B6C1-B106F52FF3BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{15441693-3659-4868-B6C1-B106F52FF3BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{15441693-3659-4868-B6C1-B106F52FF3BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{15441693-3659-4868-B6C1-B106F52FF3BA}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{B2B27ACB-AA50-4FED-A06C-3AD6B4218188} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
{FDD99AEC-4C57-4020-B23F-650612856102} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64}
{3FFD14E3-D6BC-4EA7-97A2-D21733060FD6} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
{05A2FAD8-03B0-4B2F-82AF-2F6BF0F050E5} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64}
{7EBF916A-A7B1-4B74-AF10-D705B7A18F58} = {FBFEAD1F-29EB-4D99-A672-0CD8473E10B9}
{B61D8008-7FB7-4C0E-8044-3A74AA63A596} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
{F98BDA9B-8657-4BA8-9B03-BAEA454CAE60} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
{45D6FC80-36F3-4967-9663-E20B63824621} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
{D58D43D1-0617-4A3D-9932-C773E6398535} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
{63445BB7-DBB9-4AEF-9D6F-98BBE75EE1EC} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
{6585D1A4-3D97-4D76-A688-1933B61AEB19} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
{15441693-3659-4868-B6C1-B106F52FF3BA} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {93384647-528D-46C8-922C-8DB36A382F0B}
EndGlobalSection
EndGlobal
Loading
Loading