3144 Commits

Author SHA1 Message Date
Jack Gerrits
fd6a369422 fix handler selection 2025-01-28 09:24:16 -05:00
Jack Gerrits
2fd6eee080 fix namespace 2025-01-28 09:24:16 -05:00
Jack Gerrits
e15b449c16 fix test agent 2025-01-28 09:24:16 -05:00
Jack Gerrits
b16b94feb8 WIP, moved to base namespace 2025-01-28 09:24:16 -05:00
Griffin Bassman
a75892635b add xml comments for TopicId.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
42703dd79c add xml comments for MessageContext.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
e2082875e2 add xml comments for KVStringParseHelper.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
9a5242b973 add xml comments for AgentExceptions.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
08ff47383e add xml comments for IUnboundSubscriptionDefinition.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
b69af4aedf add xml comments for ISubscriptionDefinition.cs 2025-01-28 09:24:16 -05:00
Jack Gerrits
2ba7732220 add subscriptions to host builder 2025-01-28 09:24:16 -05:00
Jack Gerrits
fe8faa9133 empty line 2025-01-28 09:24:16 -05:00
Jack Gerrits
b19374e81d first tests 2025-01-28 09:24:16 -05:00
Jacob Alber
8a342ad9e6 feat: AppBuilder/Host pattern for AgentApp 2025-01-28 09:24:16 -05:00
Griffin Bassman
a4e585e69e add xml comments for ISaveState.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
f968b7b8b1 add xml comments for IAgentRuntime.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
271accbc0e add dotnet exceptions and IAgent xml docs 2025-01-28 09:24:16 -05:00
Jacob Alber
60b06583eb fix: Get InProcessRuntime building
* Sanitize APIs more
2025-01-28 09:24:16 -05:00
Jack Gerrits
9669f8bcd9 fix header 2025-01-28 09:24:16 -05:00
Jack Gerrits
4720efb75e move file 2025-01-28 09:24:16 -05:00
Jack Gerrits
52217ed69b impl base agent 2025-01-28 09:24:16 -05:00
Jacob Alber
468bb42cf8 feat: Initial implementation of InProcessRuntime 2025-01-28 09:24:16 -05:00
Jack Gerrits
35dd8f0d9e default close 2025-01-28 09:24:16 -05:00
Jack Gerrits
b0d268fae2 Add IUnboundSubscriptionDefinition 2025-01-28 09:24:16 -05:00
Griffin Bassman
f8325e5907 add xml comments for AgentType.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
4e7162e808 add typesubscription.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
e006240676 fix comment and agentProxy -- build succeeds 2025-01-28 09:24:16 -05:00
Jacob Alber
fd2409f5e1 fix: Add missing AgentId in IAgentRuntime methods
* also formatting fix
2025-01-28 09:24:16 -05:00
Griffin Bassman
7543192838 type prefix subscriptions 2025-01-28 09:24:16 -05:00
Griffin Bassman
1a789dfcc4 fix file headers 2025-01-28 09:24:16 -05:00
Jack Gerrits
c5a319e906 nullable return 2025-01-28 09:24:16 -05:00
Jack Gerrits
0497592e8a add python equiv in core 2025-01-28 09:24:16 -05:00
Griffin Bassman
51b992cfd5 add xml comments for AgentProxy.cs 2025-01-28 09:24:16 -05:00
Jacob Alber
51dbe6cd6d feat: Make the python interface more correct 2025-01-28 09:24:16 -05:00
Griffin Bassman
d6a83a2f7c add xml comments for AgentRuntimeExtensions.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
74ad10f341 add xml comments for AgentMetadata.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
c6c0351278 add xml comments for AgentId.cs 2025-01-28 09:24:16 -05:00
Jacob Alber
537277554e test: Add test for topic-based delivery 2025-01-28 09:24:16 -05:00
Jacob Alber
0100201dd4 feat: Python-equivalent Interfaces 2025-01-28 09:24:16 -05:00
Rohan Thacker
d49bf346e0
Updated docs for _azure_ai_client.py (#5199)
Update a minor typo and updated the `response_format` documentation to
the new value

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2025-01-27 23:19:38 +00:00
Eric Zhu
2ceb9dcffe
docs: Update user guide notebooks to enhance clarity and add structured output (#5224)
Resolves #5043
2025-01-27 13:57:29 -08:00
Victor Dibia
6359b6a7be
improve component config, add description support in dump_component (#5203)
<!-- 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?

It is currently hard to add a description to a component (defaults to
None also) .. you have to call super.dump() modify and return. This PR
makes the experience better.

- allows you specify `component_description` and `component_label` as an
optional class var. label is an optional human readable name for the the
component.
- will use component_description if provided int he description field
when dumped if there is no description, will use the first line of class
docstring. Takes advantage of all the good practices we have in writing
good docstrings. label defaults to component type.
 

For example 

```python
model_client=OpenAIChatCompletionClient( model="gpt-4o-2024-08-06" )
config = model_client.dump_component()
print(config.model_dump_json())
```
Note the description field below is no longer None and there is a label
```python
{
  "provider": "autogen_ext.models.openai.OpenAIChatCompletionClient",
  "component_type": "model",
  "version": 1,
  "component_version": 1,
  "description": "Chat completion client for OpenAI hosted models.",
  "label": "OpenAIChatCompletionClient",
  "config": { "model": "gpt-4o-2024-08-06" }
}


```

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

## Related issue number

<!-- For example: "Closes #1234" -->
None, felt faster to fix.

## 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.
2025-01-27 21:41:23 +00:00
Eric Zhu
b441d5b43a
fix: Enhance OpenAI client to handle additional stop reasons and improve tool call validation in tests to address empty tool_calls list. (#5223)
Resolves #5222
2025-01-27 21:16:47 +00:00
Christoph Schittko
8428462513
Update literature-review.ipynb to fix possible copy-and-paste error (#5214)
Typo in Report Agent

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2025-01-27 17:36:28 +00:00
Ryan Sweet
92941c6d70
Rysweet 5217 add send message (#5219)
this is work to align dotnet autogen with python

## Why are these changes needed?

bringing alignment between the projects

## Related issue number

close #5217 

## 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.
- [ ] I've made sure all auto checks have passed.
2025-01-27 10:14:07 -05:00
Ryan Sweet
0aed066728
Rysweet 5207 net runtime interface to match python add registration to interface and inmemoryruntime (#5215)
* add Registry abstractions and Registry Storage to Core/Contracts
* brings Grpc in line with these abstractions
* add registeragenttype to in memory runtime. Note it's not necessary to
call this because we register all the agents with reflection unless you
tell the runtime not to.....

## Why are these changes needed?

Bringing the .NET more in line with the python

## Related issue number

close #5207 

## 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: Copilot <175728472+Copilot@users.noreply.github.com>
2025-01-27 09:44:39 -05:00
Eric Zhu
e582072947
Update model client documentation add Ollama, Gemini, Azure AI models (#5196)
Partially resolves: #5118

Once the extension page is ready, update the tutorial pages to reduce
duplication.

---------

Co-authored-by: Victor Dibia <victordibia@microsoft.com>
2025-01-26 18:42:57 +00:00
Ryan Sweet
10e40b5a1f
Rysweet 5201 refactor runtime interface (#5204)
Changes to align the .NET code more with the python codebase. 
* rename *Worker to *Runtime
* refactor shared runtime elements to AgentRuntimeBase
* align runtime interface with python

## Why are these changes needed?

Aligning the .NET with the python code and then we can evolve together
from there.

## Related issue number

Closes #5201
2025-01-26 08:09:59 -08:00
Bilawal Hameed
42dc80ce60
docs: s/Exisiting/Existing/g (#5202) 2025-01-26 02:18:46 +00:00
Eric Zhu
138913bd5b
Add Model Client Cache section to migration guide (#5197) 2025-01-25 21:26:49 +00:00