333 Commits

Author SHA1 Message Date
Victor Dibia
7cc7165573
Update docs.yml (#6493)
Bump python version, pin nr-utils

<!-- Thank you for your contribution! Please review
https://microsoft.github.io/autogen/docs/Contribute before opening a
pull request. -->

Fix docs build CI bug.
- pydocmkardown depends on pydocspec 
-[ pydocspec was updated May
6](https://pypi.org/project/docspec-python/#history) (two days ago), and
includes a problematic dependency (`nr.utils` which is specified as
[nr-utils](61d3e38c55/docspec-python/pyproject.toml (L14C5-L14C23)).
This caused imports to fail.
- current fix is fixing the pydocspec version.
- Also using the opportunity to update the python version 3.8 -> 3.9 for
the docs build 0.2

<!-- Please add a reviewer to the assignee section when you create a PR.
If you don't have the access to it, we will shortly find a reviewer and
assign them to your PR. -->

## Why are these changes needed?

<!-- Please give a short summary of the change and the problem this
solves. -->

## Related issue number

<!-- For example: "Closes #1234" -->

## Checks

- [ ] I've included any doc changes needed for
<https://microsoft.github.io/autogen/>. See
<https://github.com/microsoft/autogen/blob/main/CONTRIBUTING.md> to
build and test documentation locally.
- [ ] I've added tests (if relevant) corresponding to the changes
introduced in this PR.
- [ ] I've made sure all auto checks have passed.
2025-05-08 16:54:57 -07:00
Eric Zhu
085ff3dd7d
Update website 0.5.6 (#6454) 2025-05-02 15:57:04 -07:00
Eric Zhu
4eb256d44a
Update website for v0.5.5 (#6401) 2025-04-25 16:43:23 -07:00
Eric Zhu
b6935f913b
update website version (#6364) 2025-04-22 09:51:50 -07:00
Eric Zhu
ca5134d5a8
Update website 0.5.3 (#6320) 2025-04-16 20:40:33 -07:00
Eric Zhu
c75515990e
Update website for 0.5.2 (#6299) 2025-04-14 20:51:45 -07:00
Eric Zhu
3500170be1
update version 0.5.2 (#6296)
Update version
2025-04-14 18:03:44 -07:00
Eric Zhu
b62b12e3e7
Update website verison (#6196) 2025-04-03 15:57:40 -07:00
Eric Zhu
5f9e37dc27
Upgrade llama cpp to 0.3.8 to fix windows related error (#5948)
use the latest version of llama-cpp-python to ensure `uv sync
--all-extras` don't fail on windows.

reference:
https://github.com/microsoft/autogen/pull/5942#issuecomment-2724478534
2025-03-14 12:20:42 -07:00
Eric Zhu
712aba6b4e
update ref for v0.4.9 website (#5914)
Needed to fix the homepage display.
2025-03-12 09:00:48 -07:00
Eric Zhu
2573739111
update website for v0.4.9 (#5906) 2025-03-12 00:05:57 -07:00
PythicCoder
6a3acc4548
Feature add Add LlamaCppChatCompletionClient and llama-cpp (#5326)
This pull request introduces the integration of the `llama-cpp` library
into the `autogen-ext` package, with significant changes to the project
dependencies and the implementation of a new chat completion client. The
most important changes include updating the project dependencies, adding
a new module for the `LlamaCppChatCompletionClient`, and implementing
the client with various functionalities.

### Project Dependencies:

*
[`python/packages/autogen-ext/pyproject.toml`](diffhunk://#diff-095119d4420ff09059557bd25681211d1772c2be0fbe0ff2d551a3726eff1b4bR34-R38):
Added `llama-cpp-python` as a new dependency under the `llama-cpp`
section.

### New Module:

*
[`python/packages/autogen-ext/src/autogen_ext/models/llama_cpp/__init__.py`](diffhunk://#diff-42ae3ba17d51ca917634c4ea3c5969cf930297c288a783f8d9c126f2accef71dR1-R8):
Introduced the `LlamaCppChatCompletionClient` class and handled import
errors with a descriptive message for missing dependencies.

### Implementation of `LlamaCppChatCompletionClient`:

*
`python/packages/autogen-ext/src/autogen_ext/models/llama_cpp/_llama_cpp_completion_client.py`:
- Added the `LlamaCppChatCompletionClient` class with methods to
initialize the client, create chat completions, detect and execute
tools, and handle streaming responses.
- Included detailed logging for debugging purposes and implemented
methods to count tokens, track usage, and provide model information.…d
chat capabilities

<!-- Thank you for your contribution! Please review
https://microsoft.github.io/autogen/docs/Contribute before opening a
pull request. -->

<!-- Please add a reviewer to the assignee section when you create a PR.
If you don't have the access to it, we will shortly find a reviewer and
assign them to your PR. -->

## Why are these changes needed?

<!-- Please give a short summary of the change and the problem this
solves. -->

## Related issue number

<!-- For example: "Closes #1234" -->

## Checks

- [X ] I've included any doc changes needed for
https://microsoft.github.io/autogen/. See
https://microsoft.github.io/autogen/docs/Contribute#documentation to
build and test documentation locally.
- [X ] I've added tests (if relevant) corresponding to the changes
introduced in this PR.
- [ X] I've made sure all auto checks have passed.

---------

Co-authored-by: aribornstein <x@x.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2025-03-10 16:53:53 -07:00
Leonardo Pinheiro
a1858efac9
feat: update local code executor to support powershell (#5884)
To support powershell on the local code executor.
Closes #5518
2025-03-10 14:00:14 -07:00
Eric Zhu
83fb29edd4
Update website for v0.4.8 (#5812) 2025-03-03 22:50:56 -08:00
Jack Gerrits
a54a85e2f8
Update issue templates (#5686) 2025-02-25 01:15:50 +00:00
Eric Zhu
083129045c
feat: enhance issue templates with detailed guidance (#5594) 2025-02-19 01:07:24 +00:00
Eric Zhu
c76a68c780
Update website version (#5561) 2025-02-15 01:30:32 -08:00
Eric Zhu
0355b228ce
fix: update 0.2 deployment workflow to use tag input instead of branch (#5536) 2025-02-13 14:18:49 -08:00
Xiaoyun Zhang
7f0acd78a8
.NET update global.json to use 9.0.100 (#5517)
<!-- Thank you for your contribution! Please review
https://microsoft.github.io/autogen/docs/Contribute before opening a
pull request. -->

<!-- Please add a reviewer to the assignee section when you create a PR.
If you don't have the access to it, we will shortly find a reviewer and
assign them to your PR. -->

## Why are these changes needed?

<!-- Please give a short summary of the change and the problem this
solves. -->

## Related issue number

<!-- For example: "Closes #1234" -->

## Checks

- [ ] I've included any doc changes needed for
https://microsoft.github.io/autogen/. See
https://microsoft.github.io/autogen/docs/Contribute#documentation to
build and test documentation locally.
- [ ] I've added tests (if relevant) corresponding to the changes
introduced in this PR.
- [ ] I've made sure all auto checks have passed.
2025-02-13 00:02:37 +00:00
Jacob Alber
676b611064
fix: Make race condition between channel open and RPC less likely to occur (#5514)
Right now we rely on opening the channel to associate a ClientId with an
entry on the gateway side. This causes a race when the channel is being
opened in the background while an RPC (e.g. MyAgent.register()) is
invoked.

If the RPC is processed first, the gateway rejects it due to "invalid"
clientId.

This fix makes this condition less likely to trigger, but there is still
a piece of the puzzle that needs to be solved on the Gateway side.
2025-02-12 16:40:52 -05:00
Jacob Alber
07fdc4e2da
fix: gRPC Agent Runtime Serialization Registration (#5513)
We were registering the serializers when we already had a concrete type
on the way into Publish or Send on the .NET side. However, in a xLang
scenario, messages could originate from e.g. Python before being
sent/published from .NET, resulting in no serializer being found.

This change adds a second-change registration and lookup when the agent
is instantiated based on the IHandle<T> implementations.
2025-02-12 12:12:07 -05:00
Jack Gerrits
e27f74ee8d
Reduce number of doc jobs for old releases (#5375)
We don't provide links to the dev releases on the site anymore, so let's
save some CI time and clutter

---------

Co-authored-by: Victor Dibia <victordibia@microsoft.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2025-02-11 22:52:12 +00:00
Eric Zhu
f9d4a844df
Update website version v0.4.6 (#5481) 2025-02-10 16:49:00 -08:00
Ryan Sweet
edbd20167b
bring back grpc service (#5377)
Restoring the grpc + Orleans server into the project

## Why are these changes needed?

This is the distributed agent runtime for .NET that can manage routing
messages amongst a fleet of grpc agent runtimes.

## Related issue number

## Checks

- [ ] I've included any doc changes needed for
https://microsoft.github.io/autogen/. See
https://microsoft.github.io/autogen/docs/Contribute#documentation to
build and test documentation locally.
- [x] I've added tests (if relevant) corresponding to the changes
introduced in this PR.
- [x] I've made sure all auto checks have passed.

---------

Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
Co-authored-by: Jacob Alber <jaalber@microsoft.com>
2025-02-07 19:28:55 -05:00
Jack Gerrits
f7f5507c70
Split out GRPC tests (#5431) 2025-02-07 16:57:30 +00:00
Eric Zhu
3b2bf82d15
feat: add integration workflow for testing multiple packages (#5412) 2025-02-06 16:59:31 -08:00
Griffin Bassman
da6f918708
feat: add dotnet code coverage (#5403) 2025-02-06 14:30:15 -05:00
Jack Gerrits
08f9830bf7
Dotnet Grpc worker implementation (#5245)
Co-authored-by: Jacob Alber <jaalber@microsoft.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2025-02-05 08:34:02 -08:00
Griffin Bassman
9af6883fbe
fix: dotnet test CI and standardize test categories (#5286)
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2025-02-03 11:49:08 -05:00
Eric Zhu
227b875f28
Update Python website to v0.4.5 (#5316) 2025-01-31 20:01:51 -08:00
afourney
088a50faa5
Remove old autogen_magentic_one package. (#5305)
This PR removes the older `autogen_magentic_one` package, and directs
people to use the new AgentChat implementation.

Hopefully this eases confusion.

---------

Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2025-01-31 15:14:40 -08:00
Jack Gerrits
3fcb6e6b47
Fix apidoc generation (#5279) 2025-01-30 20:40:09 -05:00
Jack Gerrits
902238fd68
Run metadata stage in addition to build (#5277)
`build` does not run the api doc generation step. The default command
does both.
2025-01-31 00:35:13 +00:00
Jack Gerrits
b05878aa4a
Create and publish documentation site for 0.4 dotnet (#5275)
<img width="1840" alt="Screenshot 2025-01-30 at 6 26 02 PM"
src="https://github.com/user-attachments/assets/5b4c9ebf-0880-4b2e-aa1f-f2b956922b49"
/>
2025-01-30 19:04:26 -05:00
Eric Zhu
8a0daf8285
Update website for v0.4.4 (#5246) 2025-01-28 16:15:24 -08:00
Jack Gerrits
74f411e396
Update website for 0.4.3 (#5139) 2025-01-22 10:33:08 -05:00
Ryan Sweet
11461b75a2
Rysweet fix integration tests and xlang (#5107)
* fix python path

* update HelloAgent to enable grpc

* agents app remove webapplication and add grpc

* add di for client

* adding events types to grpc di

* warnings to information

* improve logging, add some error handling; fix grpc startup

* improve error logging

* cleaning up publishing of messages and message handling.

* WbApplication->HostedApplication

* formatting

* WebApplication -> HostApplication

* ensure correct .NET versions are available for integration test
2025-01-20 18:06:06 +00:00
Leonardo Pinheiro
a1fdbd9692
Use caching to run tests and report coverage (#5086)
* use caching to run tests and report coverage

* fix test step dep name

* try to fix cov fname

* add working dir to mv step

* update artifact download

* fmt

* reduce concurrency on ext test

---------

Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
2025-01-17 14:32:18 +00:00
Jack Gerrits
1a3ac626eb
Update version to 0.4.3 pre-emptively (#5066)
* Update version to 0.4.3

* lock

* update lock

* lock
2025-01-15 19:11:32 -05:00
Jack Gerrits
46ea0ad14c
Pin uv to 0.5.18 (#5067)
* Pin uv to 0.5.18

* pin gen component

* pin
2025-01-15 17:25:28 -05:00
Jack Gerrits
9570e82299
Update website for 0.4.1 (#5031)
* Update website for 0.4.1

* update website dirs

* fix 0.4.0

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2025-01-13 13:50:27 -08:00
Jack Gerrits
6abc70044a
Fix version switcher rendering (#4974)
* Fix docs switcher rendering

* update tag

* use post1
2025-01-09 17:06:35 -05:00
Jack Gerrits
623e0185c7
Update switcher versions and make 0.4.0 stable (#4940)
* Update switcher versions and make 0.4.0 stable

* update versions

* update switcher
2025-01-09 15:58:45 -05:00
afourney
7131dc945d
Added m1 cli package (#4949)
* Added m1 cli package
* update CI, install card, deprecations
* Update python/packages/magentic-one-cli/pyproject.toml
* fix mypy and pyright
* add package
* Suppress 'ResourceWarning: unclosed socket'

---------

Co-authored-by: Jack Gerrits
2025-01-08 14:05:08 -08:00
Jack Gerrits
a427b38000
Add stable website dir, to be updated (#4948)
* Add stable

* stable redirect
2025-01-08 14:48:09 -05:00
Eric Zhu
f113c9a959
Move core samples to /python/samples (#4911)
* Move core samples to /python/samples

* Fix proto check

* Add sample code check workflow

* Update pyright settings; fix types
2025-01-07 23:31:29 +00:00
Jack Gerrits
7ee18c2837
Add setup dotnet to codeql CI (#4916)
Add setup dotnet to codeql CI:
2025-01-07 10:41:48 -05:00
Sachin Joglekar
ecdade3d3e
Add coverage task & integrate with poe check (#4847)
* Add coverage task & integrate with poe check

* Adding workflow

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2025-01-02 09:49:18 -05:00
Jack Gerrits
fb1094d9c3
Update to dev13 (#4862) 2024-12-30 17:12:51 -05:00
Eric Zhu
156c3f16c2
Migration guide for 0.4 (#4765)
* readme start

* Enhance migration guide with organization overview and section breakdown

* update toc

* Update

* wip

* wip

* WIP

* Finished draft

* add statement

* Update migration guide for v0.4: refine language and clarify PyPI package ownership

* wip

* mv

* Update

* wip

* Add lint for markdown files; fix lint errors

* Fix indent

* Fix syntax

* Fix

* Update python/check_md_code_blocks.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* wip

* WIP

* wip

* fix links

* update

* Add 0.4 component config example

* update

* update

* update

* add conversion function

* wip

* Move

* Update

* Update

* update

* Make buttons side by side

* Update

* small edits

* wip

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
2024-12-30 13:33:08 -08:00