diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 755531953f4..64391862c4f 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,4 +1,10 @@ #------------------------------------------------------------------------------------------------------------- +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# SPDX-License-Identifier: Apache-2.0 +# Contributions to this project, i.e., https://github.com/autogen-ai/autogen, are licensed under the Apache License, Version 2.0 (Apache-2.0). + +# Portions derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE file in the project root for license information. #------------------------------------------------------------------------------------------------------------- diff --git a/.devcontainer/studio/Dockerfile b/.devcontainer/studio/Dockerfile index a35a81419f3..b472b96eea7 100644 --- a/.devcontainer/studio/Dockerfile +++ b/.devcontainer/studio/Dockerfile @@ -1,4 +1,10 @@ #------------------------------------------------------------------------------------------------------------- +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# SPDX-License-Identifier: Apache-2.0 +# Contributions to this project, i.e., https://github.com/autogen-ai/autogen, are licensed under the Apache License, Version 2.0 (Apache-2.0). + +# Portions derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE file in the project root for license information. #------------------------------------------------------------------------------------------------------------- diff --git a/LICENSE b/LICENSE index 2f244ac8140..01659b2dc03 100644 --- a/LICENSE +++ b/LICENSE @@ -1,395 +1,201 @@ -Attribution 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution 4.0 International Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution 4.0 International Public License ("Public License"). To the -extent this Public License may be interpreted as a contract, You are -granted the Licensed Rights in consideration of Your acceptance of -these terms and conditions, and the Licensor grants You such rights in -consideration of benefits the Licensor receives from making the -Licensed Material available under these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - d. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - e. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - f. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - g. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - h. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - i. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - j. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - k. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part; and - - b. produce, reproduce, and Share Adapted Material. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - 4. If You Share Adapted Material You produce, the Adapter's - License You apply must not prevent recipients of the Adapted - Material from complying with this Public License. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material; and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - - -======================================================================= - -Creative Commons is not a party to its public -licenses. Notwithstanding, Creative Commons may elect to apply one of -its public licenses to material it publishes and in those instances -will be considered the “Licensor.” The text of the Creative Commons -public licenses is dedicated to the public domain under the CC0 Public -Domain Dedication. Except for the limited purpose of indicating that -material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the -public licenses. - -Creative Commons may be contacted at creativecommons.org. + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright AutoGen-AI organization, i.e., https://github.com/autogen-ai, owners. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/NOTICE.md b/NOTICE.md new file mode 100644 index 00000000000..638931c6cdc --- /dev/null +++ b/NOTICE.md @@ -0,0 +1,19 @@ +## NOTICE + +Copyright (c) 2023-2024, Owners of https://github.com/autogen-ai + +This project is a fork of https://github.com/microsoft/autogen. + +The [original project](https://github.com/microsoft/autogen) is licensed under the MIT License as detailed in [LICENSE_original_MIT](./license_original/LICENSE_original_MIT). The fork was created from version v0.2.35 of the original project. + + +This project, i.e., https://github.com/autogen-ai/autogen, is licensed under the Apache License, Version 2.0 as detailed in [LICENSE](./LICENSE) + + +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + +Ongoing MIT-licensed contributions: +This project regularly incorporates code merged from the [original repository](https://github.com/microsoft/autogen) after the initial fork. This merged code remains under the original MIT license. For specific details on merged commits, please refer to the project's commit history. +The MIT license applies to portions of code originating from the [original repository](https://github.com/microsoft/autogen) as described above. + +Last updated: 08/25/2024 diff --git a/README.md b/README.md index b7184256750..649897db8ae 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,7 @@ pip install pyautogen Minimal dependencies are installed without extra options. You can install extra options based on the feature you need. - @@ -308,27 +308,13 @@ In addition, you can find:

- +We have documented these changes for clarity and to ensure transparency with our user and contributor community. For more details, please see the [NOTICE](./NOTICE.md) file. diff --git a/autogen/__init__.py b/autogen/__init__.py index 02f956c4bcf..388f255d08a 100644 --- a/autogen/__init__.py +++ b/autogen/__init__.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import logging from .agentchat import * diff --git a/autogen/_pydantic.py b/autogen/_pydantic.py index c463dbb3875..fae08b24616 100644 --- a/autogen/_pydantic.py +++ b/autogen/_pydantic.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import Any, Dict, Optional, Tuple, Type, Union, get_args from pydantic import BaseModel diff --git a/autogen/agentchat/__init__.py b/autogen/agentchat/__init__.py index d31a59d98fb..c8783cb2380 100644 --- a/autogen/agentchat/__init__.py +++ b/autogen/agentchat/__init__.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from .agent import Agent from .assistant_agent import AssistantAgent from .chat import ChatResult, initiate_chats diff --git a/autogen/agentchat/agent.py b/autogen/agentchat/agent.py index 410635bce6e..232fd802cc5 100644 --- a/autogen/agentchat/agent.py +++ b/autogen/agentchat/agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import Any, Dict, List, Optional, Protocol, Union, runtime_checkable diff --git a/autogen/agentchat/assistant_agent.py b/autogen/agentchat/assistant_agent.py index c1601ea9ba8..b5fdc540a1f 100644 --- a/autogen/agentchat/assistant_agent.py +++ b/autogen/agentchat/assistant_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import Callable, Dict, Literal, Optional, Union from autogen.runtime_logging import log_new_agent, logging_enabled diff --git a/autogen/agentchat/chat.py b/autogen/agentchat/chat.py index d07b4d15cb6..239101f320d 100644 --- a/autogen/agentchat/chat.py +++ b/autogen/agentchat/chat.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import asyncio import datetime import logging diff --git a/autogen/agentchat/contrib/agent_builder.py b/autogen/agentchat/contrib/agent_builder.py index c9a2d79607d..e072102052b 100644 --- a/autogen/agentchat/contrib/agent_builder.py +++ b/autogen/agentchat/contrib/agent_builder.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import hashlib import importlib import json diff --git a/autogen/agentchat/contrib/agent_eval/agent_eval.py b/autogen/agentchat/contrib/agent_eval/agent_eval.py index b48c65a66d2..36b78c5e56d 100644 --- a/autogen/agentchat/contrib/agent_eval/agent_eval.py +++ b/autogen/agentchat/contrib/agent_eval/agent_eval.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import Dict, List, Literal, Optional, Union import autogen diff --git a/autogen/agentchat/contrib/agent_eval/criterion.py b/autogen/agentchat/contrib/agent_eval/criterion.py index 5efd121ec07..6ceb99ffdf9 100644 --- a/autogen/agentchat/contrib/agent_eval/criterion.py +++ b/autogen/agentchat/contrib/agent_eval/criterion.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from __future__ import annotations import json diff --git a/autogen/agentchat/contrib/agent_eval/critic_agent.py b/autogen/agentchat/contrib/agent_eval/critic_agent.py index 2f5e5598ba6..165d2b07ca4 100644 --- a/autogen/agentchat/contrib/agent_eval/critic_agent.py +++ b/autogen/agentchat/contrib/agent_eval/critic_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import Optional from autogen.agentchat.conversable_agent import ConversableAgent diff --git a/autogen/agentchat/contrib/agent_eval/quantifier_agent.py b/autogen/agentchat/contrib/agent_eval/quantifier_agent.py index 02a8f650fab..dcfda41219a 100644 --- a/autogen/agentchat/contrib/agent_eval/quantifier_agent.py +++ b/autogen/agentchat/contrib/agent_eval/quantifier_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import Optional from autogen.agentchat.conversable_agent import ConversableAgent diff --git a/autogen/agentchat/contrib/agent_eval/subcritic_agent.py b/autogen/agentchat/contrib/agent_eval/subcritic_agent.py index fa994ee7bda..5a6b7ac6c5d 100755 --- a/autogen/agentchat/contrib/agent_eval/subcritic_agent.py +++ b/autogen/agentchat/contrib/agent_eval/subcritic_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import Optional from autogen.agentchat.conversable_agent import ConversableAgent diff --git a/autogen/agentchat/contrib/agent_eval/task.py b/autogen/agentchat/contrib/agent_eval/task.py index 9f96fbf79e2..498d2241b0c 100644 --- a/autogen/agentchat/contrib/agent_eval/task.py +++ b/autogen/agentchat/contrib/agent_eval/task.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import json from pydantic import BaseModel diff --git a/autogen/agentchat/contrib/agent_optimizer.py b/autogen/agentchat/contrib/agent_optimizer.py index 45062a06e7e..f7348687eee 100644 --- a/autogen/agentchat/contrib/agent_optimizer.py +++ b/autogen/agentchat/contrib/agent_optimizer.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import copy import json from typing import Dict, List, Literal, Optional, Union diff --git a/autogen/agentchat/contrib/capabilities/agent_capability.py b/autogen/agentchat/contrib/capabilities/agent_capability.py index cb2a21f5888..67d248291ed 100644 --- a/autogen/agentchat/contrib/capabilities/agent_capability.py +++ b/autogen/agentchat/contrib/capabilities/agent_capability.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from autogen.agentchat.assistant_agent import ConversableAgent diff --git a/autogen/agentchat/contrib/capabilities/generate_images.py b/autogen/agentchat/contrib/capabilities/generate_images.py index e4a8f1195c2..d9aa5463bbb 100644 --- a/autogen/agentchat/contrib/capabilities/generate_images.py +++ b/autogen/agentchat/contrib/capabilities/generate_images.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import re from typing import Any, Dict, List, Literal, Optional, Protocol, Tuple, Union diff --git a/autogen/agentchat/contrib/capabilities/teachability.py b/autogen/agentchat/contrib/capabilities/teachability.py index 596e449ce34..417d51ca6b9 100644 --- a/autogen/agentchat/contrib/capabilities/teachability.py +++ b/autogen/agentchat/contrib/capabilities/teachability.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import os import pickle from typing import Dict, Optional, Union diff --git a/autogen/agentchat/contrib/capabilities/text_compressors.py b/autogen/agentchat/contrib/capabilities/text_compressors.py index 78554bdc935..6ac37ca3caa 100644 --- a/autogen/agentchat/contrib/capabilities/text_compressors.py +++ b/autogen/agentchat/contrib/capabilities/text_compressors.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import Any, Dict, Optional, Protocol IMPORT_ERROR: Optional[Exception] = None diff --git a/autogen/agentchat/contrib/capabilities/transform_messages.py b/autogen/agentchat/contrib/capabilities/transform_messages.py index e96dc39fa7b..81bebdcf6cf 100644 --- a/autogen/agentchat/contrib/capabilities/transform_messages.py +++ b/autogen/agentchat/contrib/capabilities/transform_messages.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import copy from typing import Dict, List diff --git a/autogen/agentchat/contrib/capabilities/transforms.py b/autogen/agentchat/contrib/capabilities/transforms.py index 7cd7fdb92a3..4cdd0879e9b 100644 --- a/autogen/agentchat/contrib/capabilities/transforms.py +++ b/autogen/agentchat/contrib/capabilities/transforms.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import copy import sys from typing import Any, Dict, List, Optional, Protocol, Tuple, Union diff --git a/autogen/agentchat/contrib/capabilities/transforms_util.py b/autogen/agentchat/contrib/capabilities/transforms_util.py index 8678dec654c..6f9a8813148 100644 --- a/autogen/agentchat/contrib/capabilities/transforms_util.py +++ b/autogen/agentchat/contrib/capabilities/transforms_util.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import Any, Dict, Hashable, List, Optional, Tuple from autogen import token_count_utils diff --git a/autogen/agentchat/contrib/capabilities/vision_capability.py b/autogen/agentchat/contrib/capabilities/vision_capability.py index acfb9c8f6d8..e26a87f550d 100644 --- a/autogen/agentchat/contrib/capabilities/vision_capability.py +++ b/autogen/agentchat/contrib/capabilities/vision_capability.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import copy from typing import Callable, Dict, List, Optional, Union diff --git a/autogen/agentchat/contrib/gpt_assistant_agent.py b/autogen/agentchat/contrib/gpt_assistant_agent.py index 0dcad27b16d..529509c7cd0 100644 --- a/autogen/agentchat/contrib/gpt_assistant_agent.py +++ b/autogen/agentchat/contrib/gpt_assistant_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import copy import json import logging diff --git a/autogen/agentchat/contrib/img_utils.py b/autogen/agentchat/contrib/img_utils.py index a389c74b064..b71f69e2105 100644 --- a/autogen/agentchat/contrib/img_utils.py +++ b/autogen/agentchat/contrib/img_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import base64 import copy import os diff --git a/autogen/agentchat/contrib/llamaindex_conversable_agent.py b/autogen/agentchat/contrib/llamaindex_conversable_agent.py index dbf6f274ae8..94161ddd1e7 100644 --- a/autogen/agentchat/contrib/llamaindex_conversable_agent.py +++ b/autogen/agentchat/contrib/llamaindex_conversable_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import Dict, List, Optional, Tuple, Union from autogen import OpenAIWrapper diff --git a/autogen/agentchat/contrib/llava_agent.py b/autogen/agentchat/contrib/llava_agent.py index 063b256d3cd..2ce6b8372ad 100644 --- a/autogen/agentchat/contrib/llava_agent.py +++ b/autogen/agentchat/contrib/llava_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import json import logging from typing import List, Optional, Tuple diff --git a/autogen/agentchat/contrib/math_user_proxy_agent.py b/autogen/agentchat/contrib/math_user_proxy_agent.py index 699caeb85b3..0dbeba00f7e 100644 --- a/autogen/agentchat/contrib/math_user_proxy_agent.py +++ b/autogen/agentchat/contrib/math_user_proxy_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import os import re from time import sleep diff --git a/autogen/agentchat/contrib/multimodal_conversable_agent.py b/autogen/agentchat/contrib/multimodal_conversable_agent.py index edeb88cd531..172c25a4484 100644 --- a/autogen/agentchat/contrib/multimodal_conversable_agent.py +++ b/autogen/agentchat/contrib/multimodal_conversable_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import copy from typing import Dict, List, Optional, Tuple, Union diff --git a/autogen/agentchat/contrib/qdrant_retrieve_user_proxy_agent.py b/autogen/agentchat/contrib/qdrant_retrieve_user_proxy_agent.py index f1cc6947d50..836b8242351 100644 --- a/autogen/agentchat/contrib/qdrant_retrieve_user_proxy_agent.py +++ b/autogen/agentchat/contrib/qdrant_retrieve_user_proxy_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import warnings from typing import Callable, Dict, List, Literal, Optional diff --git a/autogen/agentchat/contrib/retrieve_assistant_agent.py b/autogen/agentchat/contrib/retrieve_assistant_agent.py index 173bc4432e7..7cb65fe144d 100644 --- a/autogen/agentchat/contrib/retrieve_assistant_agent.py +++ b/autogen/agentchat/contrib/retrieve_assistant_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import warnings from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/autogen/agentchat/contrib/retrieve_user_proxy_agent.py b/autogen/agentchat/contrib/retrieve_user_proxy_agent.py index 10b70e0e972..fb12c871734 100644 --- a/autogen/agentchat/contrib/retrieve_user_proxy_agent.py +++ b/autogen/agentchat/contrib/retrieve_user_proxy_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import hashlib import os import re diff --git a/autogen/agentchat/contrib/society_of_mind_agent.py b/autogen/agentchat/contrib/society_of_mind_agent.py index e76768187c9..be95938004d 100644 --- a/autogen/agentchat/contrib/society_of_mind_agent.py +++ b/autogen/agentchat/contrib/society_of_mind_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT # ruff: noqa: E722 import copy import traceback diff --git a/autogen/agentchat/contrib/text_analyzer_agent.py b/autogen/agentchat/contrib/text_analyzer_agent.py index 62345156a53..3c8ac1f0c46 100644 --- a/autogen/agentchat/contrib/text_analyzer_agent.py +++ b/autogen/agentchat/contrib/text_analyzer_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import Any, Dict, List, Literal, Optional, Tuple, Union from autogen.agentchat.agent import Agent diff --git a/autogen/agentchat/contrib/vectordb/base.py b/autogen/agentchat/contrib/vectordb/base.py index d7d49d6200c..a2048d4b1a5 100644 --- a/autogen/agentchat/contrib/vectordb/base.py +++ b/autogen/agentchat/contrib/vectordb/base.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import ( Any, Callable, diff --git a/autogen/agentchat/contrib/vectordb/chromadb.py b/autogen/agentchat/contrib/vectordb/chromadb.py index 1ed8708409d..5053a2fa057 100644 --- a/autogen/agentchat/contrib/vectordb/chromadb.py +++ b/autogen/agentchat/contrib/vectordb/chromadb.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import os from typing import Callable, List diff --git a/autogen/agentchat/contrib/vectordb/mongodb.py b/autogen/agentchat/contrib/vectordb/mongodb.py index 2e0580fe826..5c90a96ba25 100644 --- a/autogen/agentchat/contrib/vectordb/mongodb.py +++ b/autogen/agentchat/contrib/vectordb/mongodb.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from copy import deepcopy from time import monotonic, sleep from typing import Any, Callable, Dict, Iterable, List, Literal, Mapping, Set, Tuple, Union diff --git a/autogen/agentchat/contrib/vectordb/pgvectordb.py b/autogen/agentchat/contrib/vectordb/pgvectordb.py index ac86802b672..c6114205e61 100644 --- a/autogen/agentchat/contrib/vectordb/pgvectordb.py +++ b/autogen/agentchat/contrib/vectordb/pgvectordb.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import os import re import urllib.parse diff --git a/autogen/agentchat/contrib/vectordb/qdrant.py b/autogen/agentchat/contrib/vectordb/qdrant.py index d9c4ee1d2e5..06837cb6a75 100644 --- a/autogen/agentchat/contrib/vectordb/qdrant.py +++ b/autogen/agentchat/contrib/vectordb/qdrant.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import abc import logging import os diff --git a/autogen/agentchat/contrib/vectordb/utils.py b/autogen/agentchat/contrib/vectordb/utils.py index 7812f218654..2cfc278b932 100644 --- a/autogen/agentchat/contrib/vectordb/utils.py +++ b/autogen/agentchat/contrib/vectordb/utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import logging from typing import Any, Dict, List diff --git a/autogen/agentchat/contrib/web_surfer.py b/autogen/agentchat/contrib/web_surfer.py index f74915a9b40..a0824df30aa 100644 --- a/autogen/agentchat/contrib/web_surfer.py +++ b/autogen/agentchat/contrib/web_surfer.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import copy import json import logging diff --git a/autogen/agentchat/conversable_agent.py b/autogen/agentchat/conversable_agent.py index 91c46a6aca6..1c18d4f4ded 100644 --- a/autogen/agentchat/conversable_agent.py +++ b/autogen/agentchat/conversable_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import asyncio import copy import functools diff --git a/autogen/agentchat/groupchat.py b/autogen/agentchat/groupchat.py index 53fc32e58d2..4ffb1aec428 100644 --- a/autogen/agentchat/groupchat.py +++ b/autogen/agentchat/groupchat.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import copy import json import logging diff --git a/autogen/agentchat/user_proxy_agent.py b/autogen/agentchat/user_proxy_agent.py index d50e4d8b89c..511dc5e319a 100644 --- a/autogen/agentchat/user_proxy_agent.py +++ b/autogen/agentchat/user_proxy_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import Callable, Dict, List, Literal, Optional, Union from ..runtime_logging import log_new_agent, logging_enabled diff --git a/autogen/agentchat/utils.py b/autogen/agentchat/utils.py index b32c2f5f0a0..4bdb01e7736 100644 --- a/autogen/agentchat/utils.py +++ b/autogen/agentchat/utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import re from typing import Any, Callable, Dict, List, Union diff --git a/autogen/browser_utils.py b/autogen/browser_utils.py index 99e51fcd4ca..1dfbe15b5b4 100644 --- a/autogen/browser_utils.py +++ b/autogen/browser_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import io import json import mimetypes diff --git a/autogen/cache/__init__.py b/autogen/cache/__init__.py index ea547e20c8e..7564e2dd501 100644 --- a/autogen/cache/__init__.py +++ b/autogen/cache/__init__.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from .abstract_cache_base import AbstractCache from .cache import Cache diff --git a/autogen/cache/abstract_cache_base.py b/autogen/cache/abstract_cache_base.py index cfe501083fa..3656eec8fee 100644 --- a/autogen/cache/abstract_cache_base.py +++ b/autogen/cache/abstract_cache_base.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import sys from types import TracebackType from typing import Any, Optional, Protocol, Type diff --git a/autogen/cache/cache.py b/autogen/cache/cache.py index 6a15d993ff6..56670d2d933 100644 --- a/autogen/cache/cache.py +++ b/autogen/cache/cache.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from __future__ import annotations import sys diff --git a/autogen/cache/cache_factory.py b/autogen/cache/cache_factory.py index 7c9d71884cb..0a3fbfd218c 100644 --- a/autogen/cache/cache_factory.py +++ b/autogen/cache/cache_factory.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import logging import os from typing import Any, Dict, Optional, Union diff --git a/autogen/cache/cosmos_db_cache.py b/autogen/cache/cosmos_db_cache.py index b85be923c2f..1557aa9cb88 100644 --- a/autogen/cache/cosmos_db_cache.py +++ b/autogen/cache/cosmos_db_cache.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT # Install Azure Cosmos DB SDK if not already import pickle diff --git a/autogen/cache/disk_cache.py b/autogen/cache/disk_cache.py index 7c68e7e908c..ee5967cf345 100644 --- a/autogen/cache/disk_cache.py +++ b/autogen/cache/disk_cache.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import sys from types import TracebackType from typing import Any, Optional, Type, Union diff --git a/autogen/cache/in_memory_cache.py b/autogen/cache/in_memory_cache.py index b79f9ecfa4f..90de4194ce7 100644 --- a/autogen/cache/in_memory_cache.py +++ b/autogen/cache/in_memory_cache.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import sys from types import TracebackType from typing import Any, Dict, Optional, Type, Union diff --git a/autogen/cache/redis_cache.py b/autogen/cache/redis_cache.py index 36d601af702..8fd4f95981e 100644 --- a/autogen/cache/redis_cache.py +++ b/autogen/cache/redis_cache.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import pickle import sys from types import TracebackType diff --git a/autogen/code_utils.py b/autogen/code_utils.py index 98ed6067066..eecf966a385 100644 --- a/autogen/code_utils.py +++ b/autogen/code_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import logging import os import pathlib diff --git a/autogen/coding/__init__.py b/autogen/coding/__init__.py index 2f53b88ca3d..9d448686615 100644 --- a/autogen/coding/__init__.py +++ b/autogen/coding/__init__.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT from .base import CodeBlock, CodeExecutor, CodeExtractor, CodeResult from .docker_commandline_code_executor import DockerCommandLineCodeExecutor from .factory import CodeExecutorFactory diff --git a/autogen/coding/base.py b/autogen/coding/base.py index 7c9e19d73f3..8732bbf1538 100644 --- a/autogen/coding/base.py +++ b/autogen/coding/base.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT from __future__ import annotations from typing import Any, List, Literal, Mapping, Optional, Protocol, TypedDict, Union, runtime_checkable diff --git a/autogen/coding/docker_commandline_code_executor.py b/autogen/coding/docker_commandline_code_executor.py index 6d8f4e309c8..bfcc15cb984 100644 --- a/autogen/coding/docker_commandline_code_executor.py +++ b/autogen/coding/docker_commandline_code_executor.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT from __future__ import annotations import atexit diff --git a/autogen/coding/factory.py b/autogen/coding/factory.py index b484d99cda1..f36e127cc62 100644 --- a/autogen/coding/factory.py +++ b/autogen/coding/factory.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT from .base import CodeExecutionConfig, CodeExecutor __all__ = ("CodeExecutorFactory",) diff --git a/autogen/coding/func_with_reqs.py b/autogen/coding/func_with_reqs.py index 6f199573822..7b2b9d8dccd 100644 --- a/autogen/coding/func_with_reqs.py +++ b/autogen/coding/func_with_reqs.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT from __future__ import annotations import functools diff --git a/autogen/coding/jupyter/__init__.py b/autogen/coding/jupyter/__init__.py index f6f02313ec1..36698b88f9a 100644 --- a/autogen/coding/jupyter/__init__.py +++ b/autogen/coding/jupyter/__init__.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT from .base import JupyterConnectable, JupyterConnectionInfo from .docker_jupyter_server import DockerJupyterServer from .embedded_ipython_code_executor import EmbeddedIPythonCodeExecutor diff --git a/autogen/coding/jupyter/base.py b/autogen/coding/jupyter/base.py index 0e7acaf1e87..9236d0c0157 100644 --- a/autogen/coding/jupyter/base.py +++ b/autogen/coding/jupyter/base.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT from dataclasses import dataclass from typing import Optional, Protocol, runtime_checkable diff --git a/autogen/coding/jupyter/docker_jupyter_server.py b/autogen/coding/jupyter/docker_jupyter_server.py index 83455e27238..301e614a944 100644 --- a/autogen/coding/jupyter/docker_jupyter_server.py +++ b/autogen/coding/jupyter/docker_jupyter_server.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT from __future__ import annotations import atexit diff --git a/autogen/coding/jupyter/embedded_ipython_code_executor.py b/autogen/coding/jupyter/embedded_ipython_code_executor.py index f9200c7a580..aa19d81decf 100644 --- a/autogen/coding/jupyter/embedded_ipython_code_executor.py +++ b/autogen/coding/jupyter/embedded_ipython_code_executor.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT import base64 import json import os diff --git a/autogen/coding/jupyter/jupyter_client.py b/autogen/coding/jupyter/jupyter_client.py index b3de374fce9..62242bae398 100644 --- a/autogen/coding/jupyter/jupyter_client.py +++ b/autogen/coding/jupyter/jupyter_client.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT from __future__ import annotations import sys diff --git a/autogen/coding/jupyter/jupyter_code_executor.py b/autogen/coding/jupyter/jupyter_code_executor.py index 833565ab47c..5d076f652be 100644 --- a/autogen/coding/jupyter/jupyter_code_executor.py +++ b/autogen/coding/jupyter/jupyter_code_executor.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT import base64 import json import os diff --git a/autogen/coding/jupyter/local_jupyter_server.py b/autogen/coding/jupyter/local_jupyter_server.py index 9b892303848..85bba86bc3b 100644 --- a/autogen/coding/jupyter/local_jupyter_server.py +++ b/autogen/coding/jupyter/local_jupyter_server.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT from __future__ import annotations import atexit diff --git a/autogen/coding/local_commandline_code_executor.py b/autogen/coding/local_commandline_code_executor.py index 620b359a4ae..ca9ecdf745b 100644 --- a/autogen/coding/local_commandline_code_executor.py +++ b/autogen/coding/local_commandline_code_executor.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT import logging import os import re diff --git a/autogen/coding/markdown_code_extractor.py b/autogen/coding/markdown_code_extractor.py index 7a1084194eb..4ae3ff1a8b8 100644 --- a/autogen/coding/markdown_code_extractor.py +++ b/autogen/coding/markdown_code_extractor.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT import re from typing import Any, Dict, List, Optional, Union diff --git a/autogen/coding/utils.py b/autogen/coding/utils.py index d692bfe35b9..6beb5c34ef2 100644 --- a/autogen/coding/utils.py +++ b/autogen/coding/utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT # Will return the filename relative to the workspace path import re from pathlib import Path diff --git a/autogen/exception_utils.py b/autogen/exception_utils.py index a5353f1f8bd..55bca7f272a 100644 --- a/autogen/exception_utils.py +++ b/autogen/exception_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import Any diff --git a/autogen/formatting_utils.py b/autogen/formatting_utils.py index be8d8aaa562..dddd43ed83c 100644 --- a/autogen/formatting_utils.py +++ b/autogen/formatting_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from __future__ import annotations from typing import Iterable, Literal diff --git a/autogen/function_utils.py b/autogen/function_utils.py index 6b9b6f5b129..50e6fbcd71b 100644 --- a/autogen/function_utils.py +++ b/autogen/function_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import functools import inspect import json diff --git a/autogen/graph_utils.py b/autogen/graph_utils.py index d36b47a12ed..fa7e023499e 100644 --- a/autogen/graph_utils.py +++ b/autogen/graph_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import logging from typing import Dict, List, Optional diff --git a/autogen/io/__init__.py b/autogen/io/__init__.py index 6bb8a35680f..4148cc9e015 100644 --- a/autogen/io/__init__.py +++ b/autogen/io/__init__.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from .base import InputStream, IOStream, OutputStream from .console import IOConsole from .websockets import IOWebsockets diff --git a/autogen/io/base.py b/autogen/io/base.py index 476e37db036..60ba254dc49 100644 --- a/autogen/io/base.py +++ b/autogen/io/base.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import logging from contextlib import contextmanager from contextvars import ContextVar diff --git a/autogen/io/console.py b/autogen/io/console.py index e451fc1418a..5fa37d585ac 100644 --- a/autogen/io/console.py +++ b/autogen/io/console.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import getpass from typing import Any diff --git a/autogen/io/websockets.py b/autogen/io/websockets.py index 9d38a718754..a800c8503bd 100644 --- a/autogen/io/websockets.py +++ b/autogen/io/websockets.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import logging import ssl import threading diff --git a/autogen/logger/__init__.py b/autogen/logger/__init__.py index c30711940c9..32da4ddabdd 100644 --- a/autogen/logger/__init__.py +++ b/autogen/logger/__init__.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from .file_logger import FileLogger from .logger_factory import LoggerFactory from .sqlite_logger import SqliteLogger diff --git a/autogen/logger/base_logger.py b/autogen/logger/base_logger.py index c5c236fa4ae..12a08dd944c 100644 --- a/autogen/logger/base_logger.py +++ b/autogen/logger/base_logger.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from __future__ import annotations import sqlite3 diff --git a/autogen/logger/file_logger.py b/autogen/logger/file_logger.py index 61a8a633528..502e4e85210 100644 --- a/autogen/logger/file_logger.py +++ b/autogen/logger/file_logger.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from __future__ import annotations import json diff --git a/autogen/logger/logger_factory.py b/autogen/logger/logger_factory.py index ed9567977bb..91acc872990 100644 --- a/autogen/logger/logger_factory.py +++ b/autogen/logger/logger_factory.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import Any, Dict, Literal, Optional from autogen.logger.base_logger import BaseLogger diff --git a/autogen/logger/logger_utils.py b/autogen/logger/logger_utils.py index 7dfcbf7283b..f70b960d4df 100644 --- a/autogen/logger/logger_utils.py +++ b/autogen/logger/logger_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import datetime import inspect from typing import Any, Dict, List, Tuple, Union diff --git a/autogen/logger/sqlite_logger.py b/autogen/logger/sqlite_logger.py index 2cf176ebb8f..2767c6bc759 100644 --- a/autogen/logger/sqlite_logger.py +++ b/autogen/logger/sqlite_logger.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from __future__ import annotations import json diff --git a/autogen/math_utils.py b/autogen/math_utils.py index aeac2fc9715..7a785ebf7a1 100644 --- a/autogen/math_utils.py +++ b/autogen/math_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import Optional from autogen import DEFAULT_MODEL, oai diff --git a/autogen/oai/__init__.py b/autogen/oai/__init__.py index d5e2000f759..c4a2a9737da 100644 --- a/autogen/oai/__init__.py +++ b/autogen/oai/__init__.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from autogen.cache.cache import Cache from autogen.oai.client import ModelClient, OpenAIWrapper from autogen.oai.completion import ChatCompletion, Completion diff --git a/autogen/oai/anthropic.py b/autogen/oai/anthropic.py index 8ed6f909e6b..4c9d33d776b 100644 --- a/autogen/oai/anthropic.py +++ b/autogen/oai/anthropic.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT """ Create an OpenAI-compatible client for the Anthropic API. diff --git a/autogen/oai/client.py b/autogen/oai/client.py index fb13afdfcc6..1d57c4a06bf 100644 --- a/autogen/oai/client.py +++ b/autogen/oai/client.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from __future__ import annotations import inspect diff --git a/autogen/oai/client_utils.py b/autogen/oai/client_utils.py index 55730485b40..ea1cc87223a 100644 --- a/autogen/oai/client_utils.py +++ b/autogen/oai/client_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT """Utilities for client classes""" import warnings diff --git a/autogen/oai/cohere.py b/autogen/oai/cohere.py index 35b7ac97c4f..63d7d8b4fef 100644 --- a/autogen/oai/cohere.py +++ b/autogen/oai/cohere.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT """Create an OpenAI-compatible client using Cohere's API. Example: diff --git a/autogen/oai/completion.py b/autogen/oai/completion.py index 778cc3da2d1..f7f823f83a5 100644 --- a/autogen/oai/completion.py +++ b/autogen/oai/completion.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import logging import shutil import sys diff --git a/autogen/oai/gemini.py b/autogen/oai/gemini.py index 51fce7fa1c4..f92713d72e0 100644 --- a/autogen/oai/gemini.py +++ b/autogen/oai/gemini.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT """Create a OpenAI-compatible client for Gemini features. diff --git a/autogen/oai/groq.py b/autogen/oai/groq.py index d2abe5116a2..3df0e9ee38e 100644 --- a/autogen/oai/groq.py +++ b/autogen/oai/groq.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT """Create an OpenAI-compatible client using Groq's API. Example: diff --git a/autogen/oai/mistral.py b/autogen/oai/mistral.py index 10d0f926ffb..17244242aa7 100644 --- a/autogen/oai/mistral.py +++ b/autogen/oai/mistral.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT """Create an OpenAI-compatible client using Mistral.AI's API. Example: diff --git a/autogen/oai/openai_utils.py b/autogen/oai/openai_utils.py index 41b94324118..fc6c36b6e9e 100644 --- a/autogen/oai/openai_utils.py +++ b/autogen/oai/openai_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import importlib.metadata import json import logging diff --git a/autogen/oai/together.py b/autogen/oai/together.py index bbbe851ba77..51d5758caaa 100644 --- a/autogen/oai/together.py +++ b/autogen/oai/together.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT """Create an OpenAI-compatible client using Together.AI's API. Example: diff --git a/autogen/retrieve_utils.py b/autogen/retrieve_utils.py index 9393903ec86..b9b8fb19719 100644 --- a/autogen/retrieve_utils.py +++ b/autogen/retrieve_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import glob import hashlib import os diff --git a/autogen/runtime_logging.py b/autogen/runtime_logging.py index 1ffc8b622f0..59917ebd869 100644 --- a/autogen/runtime_logging.py +++ b/autogen/runtime_logging.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from __future__ import annotations import logging diff --git a/autogen/token_count_utils.py b/autogen/token_count_utils.py index 8552a8f1653..f586f0ae7c5 100644 --- a/autogen/token_count_utils.py +++ b/autogen/token_count_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import json import logging import re diff --git a/autogen/types.py b/autogen/types.py index 461765a6adc..43f7f96ddc2 100644 --- a/autogen/types.py +++ b/autogen/types.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import Dict, List, Literal, TypedDict, Union MessageContentType = Union[str, List[Union[Dict, str]], None] diff --git a/autogen/version.py b/autogen/version.py index 9b1b78b4b3a..cbe2b887fbe 100644 --- a/autogen/version.py +++ b/autogen/version.py @@ -1 +1,7 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT __version__ = "0.2.35" diff --git a/dotnet/.editorconfig b/dotnet/.editorconfig index 5a604ce0096..1bfabf9edd6 100644 --- a/dotnet/.editorconfig +++ b/dotnet/.editorconfig @@ -150,10 +150,6 @@ csharp_using_directive_placement = outside_namespace:error 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 diff --git a/dotnet/sample/AutoGen.Anthropic.Samples/Anthropic_Agent_With_Prompt_Caching.cs b/dotnet/sample/AutoGen.Anthropic.Samples/Anthropic_Agent_With_Prompt_Caching.cs index 5d8a99ce128..d95265c1453 100644 --- a/dotnet/sample/AutoGen.Anthropic.Samples/Anthropic_Agent_With_Prompt_Caching.cs +++ b/dotnet/sample/AutoGen.Anthropic.Samples/Anthropic_Agent_With_Prompt_Caching.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Anthropic_Agent_With_Prompt_Caching.cs using AutoGen.Anthropic.DTO; diff --git a/dotnet/sample/AutoGen.Anthropic.Samples/Create_Anthropic_Agent.cs b/dotnet/sample/AutoGen.Anthropic.Samples/Create_Anthropic_Agent.cs index 6f32c3cb4a2..fd617350933 100644 --- a/dotnet/sample/AutoGen.Anthropic.Samples/Create_Anthropic_Agent.cs +++ b/dotnet/sample/AutoGen.Anthropic.Samples/Create_Anthropic_Agent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Create_Anthropic_Agent.cs using AutoGen.Anthropic.Extensions; diff --git a/dotnet/sample/AutoGen.Anthropic.Samples/Create_Anthropic_Agent_With_Tool.cs b/dotnet/sample/AutoGen.Anthropic.Samples/Create_Anthropic_Agent_With_Tool.cs index 0324a39ffa5..e3d76e4b7bd 100644 --- a/dotnet/sample/AutoGen.Anthropic.Samples/Create_Anthropic_Agent_With_Tool.cs +++ b/dotnet/sample/AutoGen.Anthropic.Samples/Create_Anthropic_Agent_With_Tool.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Create_Anthropic_Agent_With_Tool.cs using AutoGen.Anthropic.DTO; diff --git a/dotnet/sample/AutoGen.Anthropic.Samples/Program.cs b/dotnet/sample/AutoGen.Anthropic.Samples/Program.cs index 105bb56524f..1b8301936ae 100644 --- a/dotnet/sample/AutoGen.Anthropic.Samples/Program.cs +++ b/dotnet/sample/AutoGen.Anthropic.Samples/Program.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Program.cs namespace AutoGen.Anthropic.Samples; diff --git a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/AgentCodeSnippet.cs b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/AgentCodeSnippet.cs index abaf94cbd4f..d821be04138 100644 --- a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/AgentCodeSnippet.cs +++ b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/AgentCodeSnippet.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // AgentCodeSnippet.cs using AutoGen.Core; diff --git a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/BuildInMessageCodeSnippet.cs b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/BuildInMessageCodeSnippet.cs index f26485116c8..ee351aa94e5 100644 --- a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/BuildInMessageCodeSnippet.cs +++ b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/BuildInMessageCodeSnippet.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // BuildInMessageCodeSnippet.cs using AutoGen.Core; diff --git a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/CreateAnAgent.cs b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/CreateAnAgent.cs index 45be312cbd5..52d0da4e0c4 100644 --- a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/CreateAnAgent.cs +++ b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/CreateAnAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // CreateAnAgent.cs using AutoGen; diff --git a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/FunctionCallCodeSnippet.cs b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/FunctionCallCodeSnippet.cs index 567476ba21c..3633761b1b0 100644 --- a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/FunctionCallCodeSnippet.cs +++ b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/FunctionCallCodeSnippet.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // FunctionCallCodeSnippet.cs using AutoGen; diff --git a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/GetStartCodeSnippet.cs b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/GetStartCodeSnippet.cs index c5cdb35f49b..ccc0b18e90a 100644 --- a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/GetStartCodeSnippet.cs +++ b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/GetStartCodeSnippet.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GetStartCodeSnippet.cs #region snippet_GetStartCodeSnippet diff --git a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/MiddlewareAgentCodeSnippet.cs b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/MiddlewareAgentCodeSnippet.cs index 9ad252c1ebe..7fd0e197c20 100644 --- a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/MiddlewareAgentCodeSnippet.cs +++ b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/MiddlewareAgentCodeSnippet.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MiddlewareAgentCodeSnippet.cs using System.Text.Json; diff --git a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.cs b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.cs index 0ce1d840d36..a9b08aaec78 100644 --- a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.cs +++ b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MistralAICodeSnippet.cs #region using_statement diff --git a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs index b7b5104e990..e71d34608a9 100644 --- a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs +++ b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAICodeSnippet.cs #region using_statement diff --git a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/PrintMessageMiddlewareCodeSnippet.cs b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/PrintMessageMiddlewareCodeSnippet.cs index be0329b7fd5..e37679c5e4f 100644 --- a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/PrintMessageMiddlewareCodeSnippet.cs +++ b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/PrintMessageMiddlewareCodeSnippet.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // PrintMessageMiddlewareCodeSnippet.cs using AutoGen.Core; diff --git a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/RunCodeSnippetCodeSnippet.cs b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/RunCodeSnippetCodeSnippet.cs index b087beb993b..7b265c61631 100644 --- a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/RunCodeSnippetCodeSnippet.cs +++ b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/RunCodeSnippetCodeSnippet.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // RunCodeSnippetCodeSnippet.cs #region code_snippet_0_1 diff --git a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/SemanticKernelCodeSnippet.cs b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/SemanticKernelCodeSnippet.cs index 20dd12d90ce..ea5934a3620 100644 --- a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/SemanticKernelCodeSnippet.cs +++ b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/SemanticKernelCodeSnippet.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // SemanticKernelCodeSnippet.cs using AutoGen.Core; diff --git a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/TypeSafeFunctionCallCodeSnippet.cs b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/TypeSafeFunctionCallCodeSnippet.cs index cf3e25eeee4..e2cbef82afe 100644 --- a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/TypeSafeFunctionCallCodeSnippet.cs +++ b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/TypeSafeFunctionCallCodeSnippet.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // TypeSafeFunctionCallCodeSnippet.cs using System.Text.Json; diff --git a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/UserProxyAgentCodeSnippet.cs b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/UserProxyAgentCodeSnippet.cs index 85aecae959e..e757cb47755 100644 --- a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/UserProxyAgentCodeSnippet.cs +++ b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/UserProxyAgentCodeSnippet.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // UserProxyAgentCodeSnippet.cs using AutoGen.Core; diff --git a/dotnet/sample/AutoGen.BasicSamples/Example01_AssistantAgent.cs b/dotnet/sample/AutoGen.BasicSamples/Example01_AssistantAgent.cs index 3ee363bfc06..9e748e43c39 100644 --- a/dotnet/sample/AutoGen.BasicSamples/Example01_AssistantAgent.cs +++ b/dotnet/sample/AutoGen.BasicSamples/Example01_AssistantAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Example01_AssistantAgent.cs using AutoGen; diff --git a/dotnet/sample/AutoGen.BasicSamples/Example02_TwoAgent_MathChat.cs b/dotnet/sample/AutoGen.BasicSamples/Example02_TwoAgent_MathChat.cs index c2957f32da7..4ca362175b4 100644 --- a/dotnet/sample/AutoGen.BasicSamples/Example02_TwoAgent_MathChat.cs +++ b/dotnet/sample/AutoGen.BasicSamples/Example02_TwoAgent_MathChat.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Example02_TwoAgent_MathChat.cs using AutoGen; diff --git a/dotnet/sample/AutoGen.BasicSamples/Example03_Agent_FunctionCall.cs b/dotnet/sample/AutoGen.BasicSamples/Example03_Agent_FunctionCall.cs index 0ef8eaa48ae..a0ed7b93d1b 100644 --- a/dotnet/sample/AutoGen.BasicSamples/Example03_Agent_FunctionCall.cs +++ b/dotnet/sample/AutoGen.BasicSamples/Example03_Agent_FunctionCall.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Example03_Agent_FunctionCall.cs using AutoGen; diff --git a/dotnet/sample/AutoGen.BasicSamples/Example04_Dynamic_GroupChat_Coding_Task.cs b/dotnet/sample/AutoGen.BasicSamples/Example04_Dynamic_GroupChat_Coding_Task.cs index 32f06136a96..5e4981c257b 100644 --- a/dotnet/sample/AutoGen.BasicSamples/Example04_Dynamic_GroupChat_Coding_Task.cs +++ b/dotnet/sample/AutoGen.BasicSamples/Example04_Dynamic_GroupChat_Coding_Task.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Example04_Dynamic_GroupChat_Coding_Task.cs using AutoGen; diff --git a/dotnet/sample/AutoGen.BasicSamples/Example05_Dalle_And_GPT4V.cs b/dotnet/sample/AutoGen.BasicSamples/Example05_Dalle_And_GPT4V.cs index 863f477630d..5605ee76976 100644 --- a/dotnet/sample/AutoGen.BasicSamples/Example05_Dalle_And_GPT4V.cs +++ b/dotnet/sample/AutoGen.BasicSamples/Example05_Dalle_And_GPT4V.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Example05_Dalle_And_GPT4V.cs using AutoGen.Core; diff --git a/dotnet/sample/AutoGen.BasicSamples/Example06_UserProxyAgent.cs b/dotnet/sample/AutoGen.BasicSamples/Example06_UserProxyAgent.cs index 9e1cf42b48f..2ca2a34b245 100644 --- a/dotnet/sample/AutoGen.BasicSamples/Example06_UserProxyAgent.cs +++ b/dotnet/sample/AutoGen.BasicSamples/Example06_UserProxyAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Example06_UserProxyAgent.cs using AutoGen.Core; using AutoGen.OpenAI.V1; diff --git a/dotnet/sample/AutoGen.BasicSamples/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs b/dotnet/sample/AutoGen.BasicSamples/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs index f4fd98c3d03..301f01e998f 100644 --- a/dotnet/sample/AutoGen.BasicSamples/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs +++ b/dotnet/sample/AutoGen.BasicSamples/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs using System.Text; diff --git a/dotnet/sample/AutoGen.BasicSamples/Example08_LMStudio.cs b/dotnet/sample/AutoGen.BasicSamples/Example08_LMStudio.cs index cce33011762..231d24e67a3 100644 --- a/dotnet/sample/AutoGen.BasicSamples/Example08_LMStudio.cs +++ b/dotnet/sample/AutoGen.BasicSamples/Example08_LMStudio.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Example08_LMStudio.cs #region lmstudio_using_statements diff --git a/dotnet/sample/AutoGen.BasicSamples/Example09_LMStudio_FunctionCall.cs b/dotnet/sample/AutoGen.BasicSamples/Example09_LMStudio_FunctionCall.cs index afa7d43b975..146708e6859 100644 --- a/dotnet/sample/AutoGen.BasicSamples/Example09_LMStudio_FunctionCall.cs +++ b/dotnet/sample/AutoGen.BasicSamples/Example09_LMStudio_FunctionCall.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Example09_LMStudio_FunctionCall.cs using System.Text.Json; diff --git a/dotnet/sample/AutoGen.BasicSamples/Example10_SemanticKernel.cs b/dotnet/sample/AutoGen.BasicSamples/Example10_SemanticKernel.cs index 61c341204ec..ef586ad8b2e 100644 --- a/dotnet/sample/AutoGen.BasicSamples/Example10_SemanticKernel.cs +++ b/dotnet/sample/AutoGen.BasicSamples/Example10_SemanticKernel.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Example10_SemanticKernel.cs using System.ComponentModel; diff --git a/dotnet/sample/AutoGen.BasicSamples/Example11_Sequential_GroupChat_Example.cs b/dotnet/sample/AutoGen.BasicSamples/Example11_Sequential_GroupChat_Example.cs index 6cb6b76ac88..dffcfd4c733 100644 --- a/dotnet/sample/AutoGen.BasicSamples/Example11_Sequential_GroupChat_Example.cs +++ b/dotnet/sample/AutoGen.BasicSamples/Example11_Sequential_GroupChat_Example.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Example11_Sequential_GroupChat_Example.cs #region using_statement diff --git a/dotnet/sample/AutoGen.BasicSamples/Example12_TwoAgent_Fill_Application.cs b/dotnet/sample/AutoGen.BasicSamples/Example12_TwoAgent_Fill_Application.cs index 7aec3beee6b..2d6f48916ce 100644 --- a/dotnet/sample/AutoGen.BasicSamples/Example12_TwoAgent_Fill_Application.cs +++ b/dotnet/sample/AutoGen.BasicSamples/Example12_TwoAgent_Fill_Application.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Example12_TwoAgent_Fill_Application.cs using System.Text; diff --git a/dotnet/sample/AutoGen.BasicSamples/Example13_OpenAIAgent_JsonMode.cs b/dotnet/sample/AutoGen.BasicSamples/Example13_OpenAIAgent_JsonMode.cs index 596ab08d02a..59260833bcf 100644 --- a/dotnet/sample/AutoGen.BasicSamples/Example13_OpenAIAgent_JsonMode.cs +++ b/dotnet/sample/AutoGen.BasicSamples/Example13_OpenAIAgent_JsonMode.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Example13_OpenAIAgent_JsonMode.cs // this example has been moved to https://github.com/microsoft/autogen/blob/main/dotnet/sample/AutoGen.OpenAI.Sample/Use_Json_Mode.cs diff --git a/dotnet/sample/AutoGen.BasicSamples/Example14_MistralClientAgent_TokenCount.cs b/dotnet/sample/AutoGen.BasicSamples/Example14_MistralClientAgent_TokenCount.cs index 4c8794de961..042ada1bb42 100644 --- a/dotnet/sample/AutoGen.BasicSamples/Example14_MistralClientAgent_TokenCount.cs +++ b/dotnet/sample/AutoGen.BasicSamples/Example14_MistralClientAgent_TokenCount.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Example14_MistralClientAgent_TokenCount.cs #region using_statements diff --git a/dotnet/sample/AutoGen.BasicSamples/Example15_GPT4V_BinaryDataImageMessage.cs b/dotnet/sample/AutoGen.BasicSamples/Example15_GPT4V_BinaryDataImageMessage.cs index 5d4f1474232..5f01901d8fe 100644 --- a/dotnet/sample/AutoGen.BasicSamples/Example15_GPT4V_BinaryDataImageMessage.cs +++ b/dotnet/sample/AutoGen.BasicSamples/Example15_GPT4V_BinaryDataImageMessage.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Example15_GPT4V_BinaryDataImageMessage.cs using AutoGen.Core; diff --git a/dotnet/sample/AutoGen.BasicSamples/Example16_OpenAIChatAgent_ConnectToThirdPartyBackend.cs b/dotnet/sample/AutoGen.BasicSamples/Example16_OpenAIChatAgent_ConnectToThirdPartyBackend.cs index 969f7dc21c7..e8b5c1ebb1e 100644 --- a/dotnet/sample/AutoGen.BasicSamples/Example16_OpenAIChatAgent_ConnectToThirdPartyBackend.cs +++ b/dotnet/sample/AutoGen.BasicSamples/Example16_OpenAIChatAgent_ConnectToThirdPartyBackend.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Example16_OpenAIChatAgent_ConnectToThirdPartyBackend.cs // this example has been moved to https://github.com/microsoft/autogen/blob/main/dotnet/sample/AutoGen.OpenAI.Sample/Connect_To_Ollama.cs diff --git a/dotnet/sample/AutoGen.BasicSamples/Example17_ReActAgent.cs b/dotnet/sample/AutoGen.BasicSamples/Example17_ReActAgent.cs index 5f50b234417..00175c274bc 100644 --- a/dotnet/sample/AutoGen.BasicSamples/Example17_ReActAgent.cs +++ b/dotnet/sample/AutoGen.BasicSamples/Example17_ReActAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Example17_ReActAgent.cs using AutoGen.Core; diff --git a/dotnet/sample/AutoGen.BasicSamples/GettingStart/Agent_Middleware.cs b/dotnet/sample/AutoGen.BasicSamples/GettingStart/Agent_Middleware.cs index 73c0332c785..1eddaa4631e 100644 --- a/dotnet/sample/AutoGen.BasicSamples/GettingStart/Agent_Middleware.cs +++ b/dotnet/sample/AutoGen.BasicSamples/GettingStart/Agent_Middleware.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Agent_Middleware.cs #region Using diff --git a/dotnet/sample/AutoGen.BasicSamples/GettingStart/Chat_With_Agent.cs b/dotnet/sample/AutoGen.BasicSamples/GettingStart/Chat_With_Agent.cs index 1b92572821b..6a65d34d38c 100644 --- a/dotnet/sample/AutoGen.BasicSamples/GettingStart/Chat_With_Agent.cs +++ b/dotnet/sample/AutoGen.BasicSamples/GettingStart/Chat_With_Agent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Chat_With_Agent.cs #region Using diff --git a/dotnet/sample/AutoGen.BasicSamples/GettingStart/Dynamic_Group_Chat.cs b/dotnet/sample/AutoGen.BasicSamples/GettingStart/Dynamic_Group_Chat.cs index 865924ca7d0..f0374664287 100644 --- a/dotnet/sample/AutoGen.BasicSamples/GettingStart/Dynamic_Group_Chat.cs +++ b/dotnet/sample/AutoGen.BasicSamples/GettingStart/Dynamic_Group_Chat.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Dynamic_Group_Chat.cs using AutoGen.Core; diff --git a/dotnet/sample/AutoGen.BasicSamples/GettingStart/FSM_Group_Chat.cs b/dotnet/sample/AutoGen.BasicSamples/GettingStart/FSM_Group_Chat.cs index 28b8f5d5fbd..00e2c631ed0 100644 --- a/dotnet/sample/AutoGen.BasicSamples/GettingStart/FSM_Group_Chat.cs +++ b/dotnet/sample/AutoGen.BasicSamples/GettingStart/FSM_Group_Chat.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // FSM_Group_Chat.cs using System.Text; diff --git a/dotnet/sample/AutoGen.BasicSamples/GettingStart/Image_Chat_With_Agent.cs b/dotnet/sample/AutoGen.BasicSamples/GettingStart/Image_Chat_With_Agent.cs index 5e2aff061ae..e492dd39f2a 100644 --- a/dotnet/sample/AutoGen.BasicSamples/GettingStart/Image_Chat_With_Agent.cs +++ b/dotnet/sample/AutoGen.BasicSamples/GettingStart/Image_Chat_With_Agent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Image_Chat_With_Agent.cs #region Using diff --git a/dotnet/sample/AutoGen.BasicSamples/GettingStart/Streaming_Tool_Call.cs b/dotnet/sample/AutoGen.BasicSamples/GettingStart/Streaming_Tool_Call.cs index d358dab60fe..e8b61479287 100644 --- a/dotnet/sample/AutoGen.BasicSamples/GettingStart/Streaming_Tool_Call.cs +++ b/dotnet/sample/AutoGen.BasicSamples/GettingStart/Streaming_Tool_Call.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Streaming_Tool_Call.cs using AutoGen.Core; diff --git a/dotnet/sample/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs b/dotnet/sample/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs index f1a7b5585da..88ceb07fed3 100644 --- a/dotnet/sample/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs +++ b/dotnet/sample/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Use_Tools_With_Agent.cs #region Using diff --git a/dotnet/sample/AutoGen.BasicSamples/GlobalUsing.cs b/dotnet/sample/AutoGen.BasicSamples/GlobalUsing.cs index 87b4ee0ab4c..10b7932f1e5 100644 --- a/dotnet/sample/AutoGen.BasicSamples/GlobalUsing.cs +++ b/dotnet/sample/AutoGen.BasicSamples/GlobalUsing.cs @@ -1,3 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GlobalUsing.cs diff --git a/dotnet/sample/AutoGen.BasicSamples/LLMConfiguration.cs b/dotnet/sample/AutoGen.BasicSamples/LLMConfiguration.cs index bab6685126a..09f047d0625 100644 --- a/dotnet/sample/AutoGen.BasicSamples/LLMConfiguration.cs +++ b/dotnet/sample/AutoGen.BasicSamples/LLMConfiguration.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // LLMConfiguration.cs using AutoGen.OpenAI.V1; diff --git a/dotnet/sample/AutoGen.BasicSamples/Program.cs b/dotnet/sample/AutoGen.BasicSamples/Program.cs index 51ea9590012..004f3daecd4 100644 --- a/dotnet/sample/AutoGen.BasicSamples/Program.cs +++ b/dotnet/sample/AutoGen.BasicSamples/Program.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Program.cs //await Example07_Dynamic_GroupChat_Calculate_Fibonacci.RunAsync(); diff --git a/dotnet/sample/AutoGen.Gemini.Sample/Chat_With_Google_Gemini.cs b/dotnet/sample/AutoGen.Gemini.Sample/Chat_With_Google_Gemini.cs index 356ae23ff00..2106d240bde 100644 --- a/dotnet/sample/AutoGen.Gemini.Sample/Chat_With_Google_Gemini.cs +++ b/dotnet/sample/AutoGen.Gemini.Sample/Chat_With_Google_Gemini.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Chat_With_Google_Gemini.cs #region Using diff --git a/dotnet/sample/AutoGen.Gemini.Sample/Chat_With_Vertex_Gemini.cs b/dotnet/sample/AutoGen.Gemini.Sample/Chat_With_Vertex_Gemini.cs index 5924ef7167a..8bd1ceb2647 100644 --- a/dotnet/sample/AutoGen.Gemini.Sample/Chat_With_Vertex_Gemini.cs +++ b/dotnet/sample/AutoGen.Gemini.Sample/Chat_With_Vertex_Gemini.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Chat_With_Vertex_Gemini.cs #region Using diff --git a/dotnet/sample/AutoGen.Gemini.Sample/Function_Call_With_Gemini.cs b/dotnet/sample/AutoGen.Gemini.Sample/Function_Call_With_Gemini.cs index db5068a7b91..4183fef79e2 100644 --- a/dotnet/sample/AutoGen.Gemini.Sample/Function_Call_With_Gemini.cs +++ b/dotnet/sample/AutoGen.Gemini.Sample/Function_Call_With_Gemini.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Function_Call_With_Gemini.cs #region Using diff --git a/dotnet/sample/AutoGen.Gemini.Sample/Image_Chat_With_Vertex_Gemini.cs b/dotnet/sample/AutoGen.Gemini.Sample/Image_Chat_With_Vertex_Gemini.cs index ad320e7c6fa..72eea165cd4 100644 --- a/dotnet/sample/AutoGen.Gemini.Sample/Image_Chat_With_Vertex_Gemini.cs +++ b/dotnet/sample/AutoGen.Gemini.Sample/Image_Chat_With_Vertex_Gemini.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Image_Chat_With_Vertex_Gemini.cs #region Using diff --git a/dotnet/sample/AutoGen.Gemini.Sample/Program.cs b/dotnet/sample/AutoGen.Gemini.Sample/Program.cs index 5e76942209a..a937e0a0f33 100644 --- a/dotnet/sample/AutoGen.Gemini.Sample/Program.cs +++ b/dotnet/sample/AutoGen.Gemini.Sample/Program.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Program.cs using AutoGen.Gemini.Sample; diff --git a/dotnet/sample/AutoGen.Ollama.Sample/Chat_With_LLaMA.cs b/dotnet/sample/AutoGen.Ollama.Sample/Chat_With_LLaMA.cs index 09df4a48de9..cb9a4307d57 100644 --- a/dotnet/sample/AutoGen.Ollama.Sample/Chat_With_LLaMA.cs +++ b/dotnet/sample/AutoGen.Ollama.Sample/Chat_With_LLaMA.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Chat_With_LLaMA.cs #region Using diff --git a/dotnet/sample/AutoGen.Ollama.Sample/Chat_With_LLaVA.cs b/dotnet/sample/AutoGen.Ollama.Sample/Chat_With_LLaVA.cs index d9e38c886c2..66d41958a90 100644 --- a/dotnet/sample/AutoGen.Ollama.Sample/Chat_With_LLaVA.cs +++ b/dotnet/sample/AutoGen.Ollama.Sample/Chat_With_LLaVA.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Chat_With_LLaVA.cs #region Using diff --git a/dotnet/sample/AutoGen.Ollama.Sample/Program.cs b/dotnet/sample/AutoGen.Ollama.Sample/Program.cs index 62c92eebe7e..66c7fe74255 100644 --- a/dotnet/sample/AutoGen.Ollama.Sample/Program.cs +++ b/dotnet/sample/AutoGen.Ollama.Sample/Program.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Program.cs using AutoGen.Ollama.Sample; diff --git a/dotnet/sample/AutoGen.OpenAI.Sample/Connect_To_Ollama.cs b/dotnet/sample/AutoGen.OpenAI.Sample/Connect_To_Ollama.cs index bfc4446b2ee..9b9ed86ac68 100644 --- a/dotnet/sample/AutoGen.OpenAI.Sample/Connect_To_Ollama.cs +++ b/dotnet/sample/AutoGen.OpenAI.Sample/Connect_To_Ollama.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Connect_To_Ollama.cs #region using_statement diff --git a/dotnet/sample/AutoGen.OpenAI.Sample/Program.cs b/dotnet/sample/AutoGen.OpenAI.Sample/Program.cs index 5a38a3ff03b..a1be189fab6 100644 --- a/dotnet/sample/AutoGen.OpenAI.Sample/Program.cs +++ b/dotnet/sample/AutoGen.OpenAI.Sample/Program.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Program.cs using AutoGen.OpenAI.Sample; diff --git a/dotnet/sample/AutoGen.OpenAI.Sample/Tool_Call_With_Ollama_And_LiteLLM.cs b/dotnet/sample/AutoGen.OpenAI.Sample/Tool_Call_With_Ollama_And_LiteLLM.cs index d9a963388d7..bbe66900f89 100644 --- a/dotnet/sample/AutoGen.OpenAI.Sample/Tool_Call_With_Ollama_And_LiteLLM.cs +++ b/dotnet/sample/AutoGen.OpenAI.Sample/Tool_Call_With_Ollama_And_LiteLLM.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Tool_Call_With_Ollama_And_LiteLLM.cs using AutoGen.Core; diff --git a/dotnet/sample/AutoGen.OpenAI.Sample/Use_Json_Mode.cs b/dotnet/sample/AutoGen.OpenAI.Sample/Use_Json_Mode.cs index 0def9c4ca8e..2e6d792aabb 100644 --- a/dotnet/sample/AutoGen.OpenAI.Sample/Use_Json_Mode.cs +++ b/dotnet/sample/AutoGen.OpenAI.Sample/Use_Json_Mode.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Use_Json_Mode.cs using System.Text.Json; diff --git a/dotnet/sample/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Agent.cs b/dotnet/sample/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Agent.cs index 3333cdd9ad9..870b1058bf6 100644 --- a/dotnet/sample/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Agent.cs +++ b/dotnet/sample/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Agent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Create_Semantic_Kernel_Agent.cs using AutoGen.Core; diff --git a/dotnet/sample/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Chat_Agent.cs b/dotnet/sample/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Chat_Agent.cs index 9b72a2e0fb1..2e41bf5d70a 100644 --- a/dotnet/sample/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Chat_Agent.cs +++ b/dotnet/sample/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Chat_Agent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Create_Semantic_Kernel_Chat_Agent.cs #region Using diff --git a/dotnet/sample/AutoGen.SemanticKernel.Sample/Program.cs b/dotnet/sample/AutoGen.SemanticKernel.Sample/Program.cs index 5032f2d4330..f32ad287a1c 100644 --- a/dotnet/sample/AutoGen.SemanticKernel.Sample/Program.cs +++ b/dotnet/sample/AutoGen.SemanticKernel.Sample/Program.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Program.cs using AutoGen.SemanticKernel.Sample; diff --git a/dotnet/sample/AutoGen.SemanticKernel.Sample/Use_Bing_Search_With_Semantic_Kernel_Agent.cs b/dotnet/sample/AutoGen.SemanticKernel.Sample/Use_Bing_Search_With_Semantic_Kernel_Agent.cs index 4cebc88291f..5082a86b075 100644 --- a/dotnet/sample/AutoGen.SemanticKernel.Sample/Use_Bing_Search_With_Semantic_Kernel_Agent.cs +++ b/dotnet/sample/AutoGen.SemanticKernel.Sample/Use_Bing_Search_With_Semantic_Kernel_Agent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Use_Bing_Search_With_Semantic_Kernel_Agent.cs using AutoGen.Core; diff --git a/dotnet/sample/AutoGen.SemanticKernel.Sample/Use_Kernel_Functions_With_Other_Agent.cs b/dotnet/sample/AutoGen.SemanticKernel.Sample/Use_Kernel_Functions_With_Other_Agent.cs index 688f3b017a6..1c718daecb7 100644 --- a/dotnet/sample/AutoGen.SemanticKernel.Sample/Use_Kernel_Functions_With_Other_Agent.cs +++ b/dotnet/sample/AutoGen.SemanticKernel.Sample/Use_Kernel_Functions_With_Other_Agent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Use_Kernel_Functions_With_Other_Agent.cs #region Using diff --git a/dotnet/sample/AutoGen.WebAPI.Sample/Program.cs b/dotnet/sample/AutoGen.WebAPI.Sample/Program.cs index dbeb8494363..0dc6fd4a0d8 100644 --- a/dotnet/sample/AutoGen.WebAPI.Sample/Program.cs +++ b/dotnet/sample/AutoGen.WebAPI.Sample/Program.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Program.cs using System.Runtime.CompilerServices; diff --git a/dotnet/src/AutoGen.Anthropic/Agent/AnthropicClientAgent.cs b/dotnet/src/AutoGen.Anthropic/Agent/AnthropicClientAgent.cs index 81fa8e6438a..428bf95cfe2 100644 --- a/dotnet/src/AutoGen.Anthropic/Agent/AnthropicClientAgent.cs +++ b/dotnet/src/AutoGen.Anthropic/Agent/AnthropicClientAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // AnthropicClientAgent.cs using System; diff --git a/dotnet/src/AutoGen.Anthropic/AnthropicClient.cs b/dotnet/src/AutoGen.Anthropic/AnthropicClient.cs index f106e08d35c..aeff15b0be0 100644 --- a/dotnet/src/AutoGen.Anthropic/AnthropicClient.cs +++ b/dotnet/src/AutoGen.Anthropic/AnthropicClient.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // AnthropicClient.cs using System; diff --git a/dotnet/src/AutoGen.Anthropic/Converters/ContentBaseConverter.cs b/dotnet/src/AutoGen.Anthropic/Converters/ContentBaseConverter.cs index 3e620f934c2..a786874ffe2 100644 --- a/dotnet/src/AutoGen.Anthropic/Converters/ContentBaseConverter.cs +++ b/dotnet/src/AutoGen.Anthropic/Converters/ContentBaseConverter.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ContentBaseConverter.cs using System; diff --git a/dotnet/src/AutoGen.Anthropic/Converters/JsonPropertyNameEnumCoverter.cs b/dotnet/src/AutoGen.Anthropic/Converters/JsonPropertyNameEnumCoverter.cs index 68b3c14bdee..cbd93810f92 100644 --- a/dotnet/src/AutoGen.Anthropic/Converters/JsonPropertyNameEnumCoverter.cs +++ b/dotnet/src/AutoGen.Anthropic/Converters/JsonPropertyNameEnumCoverter.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // JsonPropertyNameEnumCoverter.cs using System; diff --git a/dotnet/src/AutoGen.Anthropic/Converters/SystemMessageConverter.cs b/dotnet/src/AutoGen.Anthropic/Converters/SystemMessageConverter.cs index 5bbe8a3a37f..96717a526e8 100644 --- a/dotnet/src/AutoGen.Anthropic/Converters/SystemMessageConverter.cs +++ b/dotnet/src/AutoGen.Anthropic/Converters/SystemMessageConverter.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // SystemMessageConverter.cs using System; diff --git a/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionRequest.cs b/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionRequest.cs index dfb86ef0af5..6df2b18d1b0 100644 --- a/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionRequest.cs +++ b/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionRequest.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ChatCompletionRequest.cs using System.Collections.Generic; using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionResponse.cs b/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionResponse.cs index a142f2feacc..d9bf9c66dba 100644 --- a/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionResponse.cs +++ b/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionResponse.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ChatCompletionResponse.cs diff --git a/dotnet/src/AutoGen.Anthropic/DTO/Content.cs b/dotnet/src/AutoGen.Anthropic/DTO/Content.cs index ade913b827c..509dc772222 100644 --- a/dotnet/src/AutoGen.Anthropic/DTO/Content.cs +++ b/dotnet/src/AutoGen.Anthropic/DTO/Content.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Content.cs using System.Text.Json.Nodes; diff --git a/dotnet/src/AutoGen.Anthropic/DTO/ErrorResponse.cs b/dotnet/src/AutoGen.Anthropic/DTO/ErrorResponse.cs index 1a94334c88f..05a93ca6cf9 100644 --- a/dotnet/src/AutoGen.Anthropic/DTO/ErrorResponse.cs +++ b/dotnet/src/AutoGen.Anthropic/DTO/ErrorResponse.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ErrorResponse.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.Anthropic/DTO/Tool.cs b/dotnet/src/AutoGen.Anthropic/DTO/Tool.cs index 3845c444592..05d9467f828 100644 --- a/dotnet/src/AutoGen.Anthropic/DTO/Tool.cs +++ b/dotnet/src/AutoGen.Anthropic/DTO/Tool.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Tool.cs using System.Collections.Generic; diff --git a/dotnet/src/AutoGen.Anthropic/DTO/ToolChoice.cs b/dotnet/src/AutoGen.Anthropic/DTO/ToolChoice.cs index 0a5c3790e1d..f6a6dadc996 100644 --- a/dotnet/src/AutoGen.Anthropic/DTO/ToolChoice.cs +++ b/dotnet/src/AutoGen.Anthropic/DTO/ToolChoice.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ToolChoice.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.Anthropic/Extensions/AnthropicAgentExtension.cs b/dotnet/src/AutoGen.Anthropic/Extensions/AnthropicAgentExtension.cs index 35ea8ed190a..0ef0bda2151 100644 --- a/dotnet/src/AutoGen.Anthropic/Extensions/AnthropicAgentExtension.cs +++ b/dotnet/src/AutoGen.Anthropic/Extensions/AnthropicAgentExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // AnthropicAgentExtension.cs using AutoGen.Anthropic.Middleware; diff --git a/dotnet/src/AutoGen.Anthropic/Middleware/AnthropicMessageConnector.cs b/dotnet/src/AutoGen.Anthropic/Middleware/AnthropicMessageConnector.cs index af06a054784..b7be93d9831 100644 --- a/dotnet/src/AutoGen.Anthropic/Middleware/AnthropicMessageConnector.cs +++ b/dotnet/src/AutoGen.Anthropic/Middleware/AnthropicMessageConnector.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // AnthropicMessageConnector.cs using System; diff --git a/dotnet/src/AutoGen.Anthropic/Utils/AnthropicConstants.cs b/dotnet/src/AutoGen.Anthropic/Utils/AnthropicConstants.cs index 494a6686f52..82a9a59be19 100644 --- a/dotnet/src/AutoGen.Anthropic/Utils/AnthropicConstants.cs +++ b/dotnet/src/AutoGen.Anthropic/Utils/AnthropicConstants.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // AnthropicConstants.cs namespace AutoGen.Anthropic.Utils; diff --git a/dotnet/src/AutoGen.AzureAIInference/Agent/ChatCompletionsClientAgent.cs b/dotnet/src/AutoGen.AzureAIInference/Agent/ChatCompletionsClientAgent.cs index 452c5b1c307..a6f020ca936 100644 --- a/dotnet/src/AutoGen.AzureAIInference/Agent/ChatCompletionsClientAgent.cs +++ b/dotnet/src/AutoGen.AzureAIInference/Agent/ChatCompletionsClientAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ChatCompletionsClientAgent.cs using System; diff --git a/dotnet/src/AutoGen.AzureAIInference/Extension/ChatComptionClientAgentExtension.cs b/dotnet/src/AutoGen.AzureAIInference/Extension/ChatComptionClientAgentExtension.cs index 8faf29604ed..ef342c05835 100644 --- a/dotnet/src/AutoGen.AzureAIInference/Extension/ChatComptionClientAgentExtension.cs +++ b/dotnet/src/AutoGen.AzureAIInference/Extension/ChatComptionClientAgentExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ChatComptionClientAgentExtension.cs using AutoGen.Core; diff --git a/dotnet/src/AutoGen.AzureAIInference/Extension/FunctionContractExtension.cs b/dotnet/src/AutoGen.AzureAIInference/Extension/FunctionContractExtension.cs index 4cd7b3864f9..001b89c8099 100644 --- a/dotnet/src/AutoGen.AzureAIInference/Extension/FunctionContractExtension.cs +++ b/dotnet/src/AutoGen.AzureAIInference/Extension/FunctionContractExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // FunctionContractExtension.cs using System; diff --git a/dotnet/src/AutoGen.AzureAIInference/Middleware/AzureAIInferenceChatRequestMessageConnector.cs b/dotnet/src/AutoGen.AzureAIInference/Middleware/AzureAIInferenceChatRequestMessageConnector.cs index 9c5d22e2e7e..77545a7137d 100644 --- a/dotnet/src/AutoGen.AzureAIInference/Middleware/AzureAIInferenceChatRequestMessageConnector.cs +++ b/dotnet/src/AutoGen.AzureAIInference/Middleware/AzureAIInferenceChatRequestMessageConnector.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // AzureAIInferenceChatRequestMessageConnector.cs using System; diff --git a/dotnet/src/AutoGen.Core/Agent/DefaultReplyAgent.cs b/dotnet/src/AutoGen.Core/Agent/DefaultReplyAgent.cs index 647a2ece79d..8ad29a7123e 100644 --- a/dotnet/src/AutoGen.Core/Agent/DefaultReplyAgent.cs +++ b/dotnet/src/AutoGen.Core/Agent/DefaultReplyAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // DefaultReplyAgent.cs using System.Collections.Generic; diff --git a/dotnet/src/AutoGen.Core/Agent/GroupChatManager.cs b/dotnet/src/AutoGen.Core/Agent/GroupChatManager.cs index db40f801dea..9c27b499479 100644 --- a/dotnet/src/AutoGen.Core/Agent/GroupChatManager.cs +++ b/dotnet/src/AutoGen.Core/Agent/GroupChatManager.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GroupChatManager.cs using System; diff --git a/dotnet/src/AutoGen.Core/Agent/IAgent.cs b/dotnet/src/AutoGen.Core/Agent/IAgent.cs index 34a31055d1b..65256760a97 100644 --- a/dotnet/src/AutoGen.Core/Agent/IAgent.cs +++ b/dotnet/src/AutoGen.Core/Agent/IAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // IAgent.cs using System.Collections.Generic; diff --git a/dotnet/src/AutoGen.Core/Agent/IMiddlewareAgent.cs b/dotnet/src/AutoGen.Core/Agent/IMiddlewareAgent.cs index a0b01e7c3e2..593ca427e89 100644 --- a/dotnet/src/AutoGen.Core/Agent/IMiddlewareAgent.cs +++ b/dotnet/src/AutoGen.Core/Agent/IMiddlewareAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // IMiddlewareAgent.cs using System.Collections.Generic; diff --git a/dotnet/src/AutoGen.Core/Agent/IStreamingAgent.cs b/dotnet/src/AutoGen.Core/Agent/IStreamingAgent.cs index 6b7794c921a..1430bcaa1ef 100644 --- a/dotnet/src/AutoGen.Core/Agent/IStreamingAgent.cs +++ b/dotnet/src/AutoGen.Core/Agent/IStreamingAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // IStreamingAgent.cs using System.Collections.Generic; diff --git a/dotnet/src/AutoGen.Core/Agent/MiddlewareAgent.cs b/dotnet/src/AutoGen.Core/Agent/MiddlewareAgent.cs index 84d0d4b59e6..6cd67ae55d4 100644 --- a/dotnet/src/AutoGen.Core/Agent/MiddlewareAgent.cs +++ b/dotnet/src/AutoGen.Core/Agent/MiddlewareAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MiddlewareAgent.cs using System; diff --git a/dotnet/src/AutoGen.Core/Agent/MiddlewareStreamingAgent.cs b/dotnet/src/AutoGen.Core/Agent/MiddlewareStreamingAgent.cs index c7643b1e473..2b8d997c495 100644 --- a/dotnet/src/AutoGen.Core/Agent/MiddlewareStreamingAgent.cs +++ b/dotnet/src/AutoGen.Core/Agent/MiddlewareStreamingAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MiddlewareStreamingAgent.cs using System.Collections.Generic; diff --git a/dotnet/src/AutoGen.Core/Extension/AgentExtension.cs b/dotnet/src/AutoGen.Core/Extension/AgentExtension.cs index 13ce970d551..63cd6901526 100644 --- a/dotnet/src/AutoGen.Core/Extension/AgentExtension.cs +++ b/dotnet/src/AutoGen.Core/Extension/AgentExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // AgentExtension.cs using System; diff --git a/dotnet/src/AutoGen.Core/Extension/GroupChatExtension.cs b/dotnet/src/AutoGen.Core/Extension/GroupChatExtension.cs index 89da7708797..9233fdf3ce2 100644 --- a/dotnet/src/AutoGen.Core/Extension/GroupChatExtension.cs +++ b/dotnet/src/AutoGen.Core/Extension/GroupChatExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GroupChatExtension.cs using System; diff --git a/dotnet/src/AutoGen.Core/Extension/MessageExtension.cs b/dotnet/src/AutoGen.Core/Extension/MessageExtension.cs index d948c051752..546231a96b4 100644 --- a/dotnet/src/AutoGen.Core/Extension/MessageExtension.cs +++ b/dotnet/src/AutoGen.Core/Extension/MessageExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MessageExtension.cs using System; diff --git a/dotnet/src/AutoGen.Core/Extension/MiddlewareExtension.cs b/dotnet/src/AutoGen.Core/Extension/MiddlewareExtension.cs index 5beed7fd815..3f69dc10a42 100644 --- a/dotnet/src/AutoGen.Core/Extension/MiddlewareExtension.cs +++ b/dotnet/src/AutoGen.Core/Extension/MiddlewareExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MiddlewareExtension.cs using System; diff --git a/dotnet/src/AutoGen.Core/Extension/PrintMessageMiddlewareExtension.cs b/dotnet/src/AutoGen.Core/Extension/PrintMessageMiddlewareExtension.cs index 262b50d125d..182ff95e378 100644 --- a/dotnet/src/AutoGen.Core/Extension/PrintMessageMiddlewareExtension.cs +++ b/dotnet/src/AutoGen.Core/Extension/PrintMessageMiddlewareExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // PrintMessageMiddlewareExtension.cs using System; diff --git a/dotnet/src/AutoGen.Core/Extension/StreamingMiddlewareExtension.cs b/dotnet/src/AutoGen.Core/Extension/StreamingMiddlewareExtension.cs index 2ec7b3f9f3b..f6204c143eb 100644 --- a/dotnet/src/AutoGen.Core/Extension/StreamingMiddlewareExtension.cs +++ b/dotnet/src/AutoGen.Core/Extension/StreamingMiddlewareExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // StreamingMiddlewareExtension.cs namespace AutoGen.Core; diff --git a/dotnet/src/AutoGen.Core/Function/FunctionAttribute.cs b/dotnet/src/AutoGen.Core/Function/FunctionAttribute.cs index 556c16436c6..17de20de855 100644 --- a/dotnet/src/AutoGen.Core/Function/FunctionAttribute.cs +++ b/dotnet/src/AutoGen.Core/Function/FunctionAttribute.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // FunctionAttribute.cs using System; diff --git a/dotnet/src/AutoGen.Core/GroupChat/Graph.cs b/dotnet/src/AutoGen.Core/GroupChat/Graph.cs index acff955a292..df24d5aab8e 100644 --- a/dotnet/src/AutoGen.Core/GroupChat/Graph.cs +++ b/dotnet/src/AutoGen.Core/GroupChat/Graph.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Graph.cs using System; diff --git a/dotnet/src/AutoGen.Core/GroupChat/GroupChat.cs b/dotnet/src/AutoGen.Core/GroupChat/GroupChat.cs index 57e15c18ca6..920f6c96714 100644 --- a/dotnet/src/AutoGen.Core/GroupChat/GroupChat.cs +++ b/dotnet/src/AutoGen.Core/GroupChat/GroupChat.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GroupChat.cs using System; diff --git a/dotnet/src/AutoGen.Core/GroupChat/IGroupChat.cs b/dotnet/src/AutoGen.Core/GroupChat/IGroupChat.cs index a8c948cf58a..a959742ef85 100644 --- a/dotnet/src/AutoGen.Core/GroupChat/IGroupChat.cs +++ b/dotnet/src/AutoGen.Core/GroupChat/IGroupChat.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // IGroupChat.cs using System; diff --git a/dotnet/src/AutoGen.Core/GroupChat/RoundRobinGroupChat.cs b/dotnet/src/AutoGen.Core/GroupChat/RoundRobinGroupChat.cs index b95cd1958fc..79557bb999d 100644 --- a/dotnet/src/AutoGen.Core/GroupChat/RoundRobinGroupChat.cs +++ b/dotnet/src/AutoGen.Core/GroupChat/RoundRobinGroupChat.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // RoundRobinGroupChat.cs using System; diff --git a/dotnet/src/AutoGen.Core/ILLMConfig.cs b/dotnet/src/AutoGen.Core/ILLMConfig.cs index fd2a90db02a..2195a72fd91 100644 --- a/dotnet/src/AutoGen.Core/ILLMConfig.cs +++ b/dotnet/src/AutoGen.Core/ILLMConfig.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ILLMConfig.cs namespace AutoGen.Core; diff --git a/dotnet/src/AutoGen.Core/Message/AggregateMessage.cs b/dotnet/src/AutoGen.Core/Message/AggregateMessage.cs index c7eee1316ee..c0f73c77ce4 100644 --- a/dotnet/src/AutoGen.Core/Message/AggregateMessage.cs +++ b/dotnet/src/AutoGen.Core/Message/AggregateMessage.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // AggregateMessage.cs using System; diff --git a/dotnet/src/AutoGen.Core/Message/IMessage.cs b/dotnet/src/AutoGen.Core/Message/IMessage.cs index 9952cbf0679..a6a3adc57d2 100644 --- a/dotnet/src/AutoGen.Core/Message/IMessage.cs +++ b/dotnet/src/AutoGen.Core/Message/IMessage.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // IMessage.cs using System; diff --git a/dotnet/src/AutoGen.Core/Message/ImageMessage.cs b/dotnet/src/AutoGen.Core/Message/ImageMessage.cs index 685354dfe7a..6ce51b15df2 100644 --- a/dotnet/src/AutoGen.Core/Message/ImageMessage.cs +++ b/dotnet/src/AutoGen.Core/Message/ImageMessage.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ImageMessage.cs using System; diff --git a/dotnet/src/AutoGen.Core/Message/Message.cs b/dotnet/src/AutoGen.Core/Message/Message.cs index 577c9174147..a55d25fe145 100644 --- a/dotnet/src/AutoGen.Core/Message/Message.cs +++ b/dotnet/src/AutoGen.Core/Message/Message.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Message.cs using System; diff --git a/dotnet/src/AutoGen.Core/Message/MessageEnvelope.cs b/dotnet/src/AutoGen.Core/Message/MessageEnvelope.cs index dc9709bbde5..d8d88ff597e 100644 --- a/dotnet/src/AutoGen.Core/Message/MessageEnvelope.cs +++ b/dotnet/src/AutoGen.Core/Message/MessageEnvelope.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MessageEnvelope.cs using System.Collections.Generic; diff --git a/dotnet/src/AutoGen.Core/Message/MultiModalMessage.cs b/dotnet/src/AutoGen.Core/Message/MultiModalMessage.cs index 9dd2a37af0b..a53c9ccf77e 100644 --- a/dotnet/src/AutoGen.Core/Message/MultiModalMessage.cs +++ b/dotnet/src/AutoGen.Core/Message/MultiModalMessage.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MultiModalMessage.cs using System; diff --git a/dotnet/src/AutoGen.Core/Message/Role.cs b/dotnet/src/AutoGen.Core/Message/Role.cs index 8253543a81c..31734e8a5da 100644 --- a/dotnet/src/AutoGen.Core/Message/Role.cs +++ b/dotnet/src/AutoGen.Core/Message/Role.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Role.cs using System; diff --git a/dotnet/src/AutoGen.Core/Message/TextMessage.cs b/dotnet/src/AutoGen.Core/Message/TextMessage.cs index 9419c2b3ba8..b6e5530c40d 100644 --- a/dotnet/src/AutoGen.Core/Message/TextMessage.cs +++ b/dotnet/src/AutoGen.Core/Message/TextMessage.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // TextMessage.cs namespace AutoGen.Core; diff --git a/dotnet/src/AutoGen.Core/Message/ToolCallAggregateMessage.cs b/dotnet/src/AutoGen.Core/Message/ToolCallAggregateMessage.cs index 7d46d56135a..1ef13c62783 100644 --- a/dotnet/src/AutoGen.Core/Message/ToolCallAggregateMessage.cs +++ b/dotnet/src/AutoGen.Core/Message/ToolCallAggregateMessage.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ToolCallAggregateMessage.cs using System.Collections.Generic; diff --git a/dotnet/src/AutoGen.Core/Message/ToolCallMessage.cs b/dotnet/src/AutoGen.Core/Message/ToolCallMessage.cs index 8660b323044..ab2f4a2ef76 100644 --- a/dotnet/src/AutoGen.Core/Message/ToolCallMessage.cs +++ b/dotnet/src/AutoGen.Core/Message/ToolCallMessage.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ToolCallMessage.cs using System.Collections.Generic; diff --git a/dotnet/src/AutoGen.Core/Message/ToolCallResultMessage.cs b/dotnet/src/AutoGen.Core/Message/ToolCallResultMessage.cs index fa7357c941c..11ac2985a3d 100644 --- a/dotnet/src/AutoGen.Core/Message/ToolCallResultMessage.cs +++ b/dotnet/src/AutoGen.Core/Message/ToolCallResultMessage.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ToolCallResultMessage.cs using System.Collections.Generic; diff --git a/dotnet/src/AutoGen.Core/Middleware/DelegateMiddleware.cs b/dotnet/src/AutoGen.Core/Middleware/DelegateMiddleware.cs index 79360e0428f..067cf3abfbb 100644 --- a/dotnet/src/AutoGen.Core/Middleware/DelegateMiddleware.cs +++ b/dotnet/src/AutoGen.Core/Middleware/DelegateMiddleware.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // DelegateMiddleware.cs using System; diff --git a/dotnet/src/AutoGen.Core/Middleware/FunctionCallMiddleware.cs b/dotnet/src/AutoGen.Core/Middleware/FunctionCallMiddleware.cs index 7d30f6d0928..a2b29786bdd 100644 --- a/dotnet/src/AutoGen.Core/Middleware/FunctionCallMiddleware.cs +++ b/dotnet/src/AutoGen.Core/Middleware/FunctionCallMiddleware.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // FunctionCallMiddleware.cs using System; diff --git a/dotnet/src/AutoGen.Core/Middleware/IMiddleware.cs b/dotnet/src/AutoGen.Core/Middleware/IMiddleware.cs index 00ec5a97fc2..0e563ff50f3 100644 --- a/dotnet/src/AutoGen.Core/Middleware/IMiddleware.cs +++ b/dotnet/src/AutoGen.Core/Middleware/IMiddleware.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // IMiddleware.cs using System.Threading; diff --git a/dotnet/src/AutoGen.Core/Middleware/IStreamingMiddleware.cs b/dotnet/src/AutoGen.Core/Middleware/IStreamingMiddleware.cs index d550bdb519c..bf672a28a1b 100644 --- a/dotnet/src/AutoGen.Core/Middleware/IStreamingMiddleware.cs +++ b/dotnet/src/AutoGen.Core/Middleware/IStreamingMiddleware.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // IStreamingMiddleware.cs using System.Collections.Generic; diff --git a/dotnet/src/AutoGen.Core/Middleware/MiddlewareContext.cs b/dotnet/src/AutoGen.Core/Middleware/MiddlewareContext.cs index a608d0baf81..8a72bf749da 100644 --- a/dotnet/src/AutoGen.Core/Middleware/MiddlewareContext.cs +++ b/dotnet/src/AutoGen.Core/Middleware/MiddlewareContext.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MiddlewareContext.cs using System.Collections.Generic; diff --git a/dotnet/src/AutoGen.Core/Middleware/PrintMessageMiddleware.cs b/dotnet/src/AutoGen.Core/Middleware/PrintMessageMiddleware.cs index a4e84de85a4..7a6a89b31c8 100644 --- a/dotnet/src/AutoGen.Core/Middleware/PrintMessageMiddleware.cs +++ b/dotnet/src/AutoGen.Core/Middleware/PrintMessageMiddleware.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // PrintMessageMiddleware.cs using System; diff --git a/dotnet/src/AutoGen.Core/Orchestrator/IOrchestrator.cs b/dotnet/src/AutoGen.Core/Orchestrator/IOrchestrator.cs index 777834871f6..4818ba6d8b2 100644 --- a/dotnet/src/AutoGen.Core/Orchestrator/IOrchestrator.cs +++ b/dotnet/src/AutoGen.Core/Orchestrator/IOrchestrator.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // IOrchestrator.cs using System; diff --git a/dotnet/src/AutoGen.Core/Orchestrator/RolePlayOrchestrator.cs b/dotnet/src/AutoGen.Core/Orchestrator/RolePlayOrchestrator.cs index 6798f23f2df..4af84d5f198 100644 --- a/dotnet/src/AutoGen.Core/Orchestrator/RolePlayOrchestrator.cs +++ b/dotnet/src/AutoGen.Core/Orchestrator/RolePlayOrchestrator.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // RolePlayOrchestrator.cs using System; diff --git a/dotnet/src/AutoGen.Core/Orchestrator/RoundRobinOrchestrator.cs b/dotnet/src/AutoGen.Core/Orchestrator/RoundRobinOrchestrator.cs index af5efdc0e9e..888fc35f675 100644 --- a/dotnet/src/AutoGen.Core/Orchestrator/RoundRobinOrchestrator.cs +++ b/dotnet/src/AutoGen.Core/Orchestrator/RoundRobinOrchestrator.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // RoundRobinOrchestrator.cs using System.Linq; diff --git a/dotnet/src/AutoGen.Core/Orchestrator/WorkflowOrchestrator.cs b/dotnet/src/AutoGen.Core/Orchestrator/WorkflowOrchestrator.cs index b84850a07c7..48b4bdce247 100644 --- a/dotnet/src/AutoGen.Core/Orchestrator/WorkflowOrchestrator.cs +++ b/dotnet/src/AutoGen.Core/Orchestrator/WorkflowOrchestrator.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // WorkflowOrchestrator.cs using System.Linq; diff --git a/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveFunction.cs b/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveFunction.cs index c9b59203462..c00306c1a24 100644 --- a/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveFunction.cs +++ b/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveFunction.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // DotnetInteractiveFunction.cs using System.Text; diff --git a/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveKernelBuilder.cs b/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveKernelBuilder.cs index cc282fbba55..012978a82de 100644 --- a/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveKernelBuilder.cs +++ b/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveKernelBuilder.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // DotnetInteractiveKernelBuilder.cs namespace AutoGen.DotnetInteractive; diff --git a/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveStdioKernelConnector.cs b/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveStdioKernelConnector.cs index a3ea80a7b12..4ec81fd3535 100644 --- a/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveStdioKernelConnector.cs +++ b/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveStdioKernelConnector.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // DotnetInteractiveStdioKernelConnector.cs using AutoGen.DotnetInteractive.Extension; diff --git a/dotnet/src/AutoGen.DotnetInteractive/Extension/AgentExtension.cs b/dotnet/src/AutoGen.DotnetInteractive/Extension/AgentExtension.cs index de1e2a68cc0..d028ae92d0c 100644 --- a/dotnet/src/AutoGen.DotnetInteractive/Extension/AgentExtension.cs +++ b/dotnet/src/AutoGen.DotnetInteractive/Extension/AgentExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // AgentExtension.cs using System.Text; diff --git a/dotnet/src/AutoGen.DotnetInteractive/Extension/KernelExtension.cs b/dotnet/src/AutoGen.DotnetInteractive/Extension/KernelExtension.cs index 2a7afdf8857..0a7d8d28411 100644 --- a/dotnet/src/AutoGen.DotnetInteractive/Extension/KernelExtension.cs +++ b/dotnet/src/AutoGen.DotnetInteractive/Extension/KernelExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // KernelExtension.cs using Microsoft.DotNet.Interactive; diff --git a/dotnet/src/AutoGen.DotnetInteractive/Extension/MessageExtension.cs b/dotnet/src/AutoGen.DotnetInteractive/Extension/MessageExtension.cs index 6a8bf66c19f..d4deee93ab9 100644 --- a/dotnet/src/AutoGen.DotnetInteractive/Extension/MessageExtension.cs +++ b/dotnet/src/AutoGen.DotnetInteractive/Extension/MessageExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MessageExtension.cs using System.Text.RegularExpressions; diff --git a/dotnet/src/AutoGen.DotnetInteractive/GlobalUsing.cs b/dotnet/src/AutoGen.DotnetInteractive/GlobalUsing.cs index d66bf001ed5..9ca6b9d8dc2 100644 --- a/dotnet/src/AutoGen.DotnetInteractive/GlobalUsing.cs +++ b/dotnet/src/AutoGen.DotnetInteractive/GlobalUsing.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GlobalUsing.cs global using AutoGen.Core; diff --git a/dotnet/src/AutoGen.DotnetInteractive/InProccessDotnetInteractiveKernelBuilder.cs b/dotnet/src/AutoGen.DotnetInteractive/InProccessDotnetInteractiveKernelBuilder.cs index 6ddd3d6b417..7544bb0dd76 100644 --- a/dotnet/src/AutoGen.DotnetInteractive/InProccessDotnetInteractiveKernelBuilder.cs +++ b/dotnet/src/AutoGen.DotnetInteractive/InProccessDotnetInteractiveKernelBuilder.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // InProccessDotnetInteractiveKernelBuilder.cs #if NET8_0_OR_GREATER diff --git a/dotnet/src/AutoGen.DotnetInteractive/InteractiveService.cs b/dotnet/src/AutoGen.DotnetInteractive/InteractiveService.cs index 3381aecf579..b9ce8334230 100644 --- a/dotnet/src/AutoGen.DotnetInteractive/InteractiveService.cs +++ b/dotnet/src/AutoGen.DotnetInteractive/InteractiveService.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // InteractiveService.cs using System.Diagnostics; diff --git a/dotnet/src/AutoGen.Gemini/Extension/FunctionContractExtension.cs b/dotnet/src/AutoGen.Gemini/Extension/FunctionContractExtension.cs index 64f78fa165b..5342fb9ca06 100644 --- a/dotnet/src/AutoGen.Gemini/Extension/FunctionContractExtension.cs +++ b/dotnet/src/AutoGen.Gemini/Extension/FunctionContractExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // FunctionContractExtension.cs using System.Collections.Generic; diff --git a/dotnet/src/AutoGen.Gemini/GeminiChatAgent.cs b/dotnet/src/AutoGen.Gemini/GeminiChatAgent.cs index e759ba26d1e..d078faf557c 100644 --- a/dotnet/src/AutoGen.Gemini/GeminiChatAgent.cs +++ b/dotnet/src/AutoGen.Gemini/GeminiChatAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GeminiChatAgent.cs using System; diff --git a/dotnet/src/AutoGen.Gemini/GoogleGeminiClient.cs b/dotnet/src/AutoGen.Gemini/GoogleGeminiClient.cs index 9489061e27e..c50d22968b2 100644 --- a/dotnet/src/AutoGen.Gemini/GoogleGeminiClient.cs +++ b/dotnet/src/AutoGen.Gemini/GoogleGeminiClient.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GoogleGeminiClient.cs using System; diff --git a/dotnet/src/AutoGen.Gemini/IGeminiClient.cs b/dotnet/src/AutoGen.Gemini/IGeminiClient.cs index d391a450839..aaa0da3be92 100644 --- a/dotnet/src/AutoGen.Gemini/IGeminiClient.cs +++ b/dotnet/src/AutoGen.Gemini/IGeminiClient.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // IGeminiClient.cs using System.Collections.Generic; diff --git a/dotnet/src/AutoGen.Gemini/Middleware/GeminiAgentExtension.cs b/dotnet/src/AutoGen.Gemini/Middleware/GeminiAgentExtension.cs index 7f10c7d8e36..d313e5a87b5 100644 --- a/dotnet/src/AutoGen.Gemini/Middleware/GeminiAgentExtension.cs +++ b/dotnet/src/AutoGen.Gemini/Middleware/GeminiAgentExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GeminiAgentExtension.cs using AutoGen.Core; diff --git a/dotnet/src/AutoGen.Gemini/Middleware/GeminiMessageConnector.cs b/dotnet/src/AutoGen.Gemini/Middleware/GeminiMessageConnector.cs index 422fb4cd345..32365718ea6 100644 --- a/dotnet/src/AutoGen.Gemini/Middleware/GeminiMessageConnector.cs +++ b/dotnet/src/AutoGen.Gemini/Middleware/GeminiMessageConnector.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GeminiMessageConnector.cs using System; diff --git a/dotnet/src/AutoGen.Gemini/VertexGeminiClient.cs b/dotnet/src/AutoGen.Gemini/VertexGeminiClient.cs index 12a11993cd6..cd448e90b0f 100644 --- a/dotnet/src/AutoGen.Gemini/VertexGeminiClient.cs +++ b/dotnet/src/AutoGen.Gemini/VertexGeminiClient.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // VertexGeminiClient.cs using System.Collections.Generic; diff --git a/dotnet/src/AutoGen.LMStudio/GlobalUsing.cs b/dotnet/src/AutoGen.LMStudio/GlobalUsing.cs index d66bf001ed5..9ca6b9d8dc2 100644 --- a/dotnet/src/AutoGen.LMStudio/GlobalUsing.cs +++ b/dotnet/src/AutoGen.LMStudio/GlobalUsing.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GlobalUsing.cs global using AutoGen.Core; diff --git a/dotnet/src/AutoGen.LMStudio/LMStudioAgent.cs b/dotnet/src/AutoGen.LMStudio/LMStudioAgent.cs index 52a5d9bfdd0..1dd4f563e2f 100644 --- a/dotnet/src/AutoGen.LMStudio/LMStudioAgent.cs +++ b/dotnet/src/AutoGen.LMStudio/LMStudioAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // LMStudioAgent.cs using System; diff --git a/dotnet/src/AutoGen.LMStudio/LMStudioConfig.cs b/dotnet/src/AutoGen.LMStudio/LMStudioConfig.cs index 5a359fd74e9..4c1995fcbb5 100644 --- a/dotnet/src/AutoGen.LMStudio/LMStudioConfig.cs +++ b/dotnet/src/AutoGen.LMStudio/LMStudioConfig.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // LMStudioConfig.cs using System; diff --git a/dotnet/src/AutoGen.Mistral/Agent/MistralClientAgent.cs b/dotnet/src/AutoGen.Mistral/Agent/MistralClientAgent.cs index db14d68a121..8a89933caa6 100644 --- a/dotnet/src/AutoGen.Mistral/Agent/MistralClientAgent.cs +++ b/dotnet/src/AutoGen.Mistral/Agent/MistralClientAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MistralClientAgent.cs using System; diff --git a/dotnet/src/AutoGen.Mistral/Converters/JsonPropertyNameEnumConverter.cs b/dotnet/src/AutoGen.Mistral/Converters/JsonPropertyNameEnumConverter.cs index 9ecf1142839..e2e3d4d873b 100644 --- a/dotnet/src/AutoGen.Mistral/Converters/JsonPropertyNameEnumConverter.cs +++ b/dotnet/src/AutoGen.Mistral/Converters/JsonPropertyNameEnumConverter.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // JsonPropertyNameEnumConverter.cs using System; diff --git a/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionRequest.cs b/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionRequest.cs index affe2bb6dcc..0eecdc928b6 100644 --- a/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionRequest.cs +++ b/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionRequest.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ChatCompletionRequest.cs using System; diff --git a/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionResponse.cs b/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionResponse.cs index ff241f8d340..b3c4bbed13f 100644 --- a/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionResponse.cs +++ b/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionResponse.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ChatCompletionResponse.cs using System.Collections.Generic; diff --git a/dotnet/src/AutoGen.Mistral/DTOs/ChatMessage.cs b/dotnet/src/AutoGen.Mistral/DTOs/ChatMessage.cs index b0fa1757c12..920f9c71f32 100644 --- a/dotnet/src/AutoGen.Mistral/DTOs/ChatMessage.cs +++ b/dotnet/src/AutoGen.Mistral/DTOs/ChatMessage.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ChatMessage.cs using System.Collections.Generic; diff --git a/dotnet/src/AutoGen.Mistral/DTOs/Choice.cs b/dotnet/src/AutoGen.Mistral/DTOs/Choice.cs index ef874c90a0e..25c700f5e98 100644 --- a/dotnet/src/AutoGen.Mistral/DTOs/Choice.cs +++ b/dotnet/src/AutoGen.Mistral/DTOs/Choice.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Choice.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.Mistral/DTOs/Error.cs b/dotnet/src/AutoGen.Mistral/DTOs/Error.cs index 77eb2d341fb..b9bdd2bc69c 100644 --- a/dotnet/src/AutoGen.Mistral/DTOs/Error.cs +++ b/dotnet/src/AutoGen.Mistral/DTOs/Error.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Error.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.Mistral/DTOs/ErrorResponse.cs b/dotnet/src/AutoGen.Mistral/DTOs/ErrorResponse.cs index ea3a999cc08..d1fcdeae75f 100644 --- a/dotnet/src/AutoGen.Mistral/DTOs/ErrorResponse.cs +++ b/dotnet/src/AutoGen.Mistral/DTOs/ErrorResponse.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ErrorResponse.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.Mistral/DTOs/FunctionDefinition.cs b/dotnet/src/AutoGen.Mistral/DTOs/FunctionDefinition.cs index 663920330a2..d32eabef857 100644 --- a/dotnet/src/AutoGen.Mistral/DTOs/FunctionDefinition.cs +++ b/dotnet/src/AutoGen.Mistral/DTOs/FunctionDefinition.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // FunctionDefinition.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.Mistral/DTOs/Model.cs b/dotnet/src/AutoGen.Mistral/DTOs/Model.cs index 915d2f737ec..725fc666f6e 100644 --- a/dotnet/src/AutoGen.Mistral/DTOs/Model.cs +++ b/dotnet/src/AutoGen.Mistral/DTOs/Model.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Model.cs using System; diff --git a/dotnet/src/AutoGen.Mistral/DTOs/ResponseFormat.cs b/dotnet/src/AutoGen.Mistral/DTOs/ResponseFormat.cs index 08a5c7426ea..86182ec4f90 100644 --- a/dotnet/src/AutoGen.Mistral/DTOs/ResponseFormat.cs +++ b/dotnet/src/AutoGen.Mistral/DTOs/ResponseFormat.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ResponseFormat.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.Mistral/DTOs/Tool.cs b/dotnet/src/AutoGen.Mistral/DTOs/Tool.cs index 49e1a9b777d..728ff61b80a 100644 --- a/dotnet/src/AutoGen.Mistral/DTOs/Tool.cs +++ b/dotnet/src/AutoGen.Mistral/DTOs/Tool.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Tool.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.Mistral/DTOs/Usage.cs b/dotnet/src/AutoGen.Mistral/DTOs/Usage.cs index 3e739e3bc11..345a4ec7a1e 100644 --- a/dotnet/src/AutoGen.Mistral/DTOs/Usage.cs +++ b/dotnet/src/AutoGen.Mistral/DTOs/Usage.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Usage.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.Mistral/Extension/FunctionContractExtension.cs b/dotnet/src/AutoGen.Mistral/Extension/FunctionContractExtension.cs index eb38b32982a..e7ba8f06b8d 100644 --- a/dotnet/src/AutoGen.Mistral/Extension/FunctionContractExtension.cs +++ b/dotnet/src/AutoGen.Mistral/Extension/FunctionContractExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // FunctionContractExtension.cs using System; diff --git a/dotnet/src/AutoGen.Mistral/Extension/MistralAgentExtension.cs b/dotnet/src/AutoGen.Mistral/Extension/MistralAgentExtension.cs index 787393d067f..d6952be63e2 100644 --- a/dotnet/src/AutoGen.Mistral/Extension/MistralAgentExtension.cs +++ b/dotnet/src/AutoGen.Mistral/Extension/MistralAgentExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MistralAgentExtension.cs using AutoGen.Core; diff --git a/dotnet/src/AutoGen.Mistral/Middleware/MistralChatMessageConnector.cs b/dotnet/src/AutoGen.Mistral/Middleware/MistralChatMessageConnector.cs index 78de12a5c01..cf924a94866 100644 --- a/dotnet/src/AutoGen.Mistral/Middleware/MistralChatMessageConnector.cs +++ b/dotnet/src/AutoGen.Mistral/Middleware/MistralChatMessageConnector.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MistralChatMessageConnector.cs using System; diff --git a/dotnet/src/AutoGen.Mistral/MistralAIModelID.cs b/dotnet/src/AutoGen.Mistral/MistralAIModelID.cs index a0571281c94..cef058d59f6 100644 --- a/dotnet/src/AutoGen.Mistral/MistralAIModelID.cs +++ b/dotnet/src/AutoGen.Mistral/MistralAIModelID.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MistralAIModelID.cs namespace AutoGen.Mistral; diff --git a/dotnet/src/AutoGen.Mistral/MistralClient.cs b/dotnet/src/AutoGen.Mistral/MistralClient.cs index 8c6802f30eb..f5e39591582 100644 --- a/dotnet/src/AutoGen.Mistral/MistralClient.cs +++ b/dotnet/src/AutoGen.Mistral/MistralClient.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MistralClient.cs using System; diff --git a/dotnet/src/AutoGen.Ollama/Agent/OllamaAgent.cs b/dotnet/src/AutoGen.Ollama/Agent/OllamaAgent.cs index 87b176d8bcc..96a38a726b4 100644 --- a/dotnet/src/AutoGen.Ollama/Agent/OllamaAgent.cs +++ b/dotnet/src/AutoGen.Ollama/Agent/OllamaAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OllamaAgent.cs using System; diff --git a/dotnet/src/AutoGen.Ollama/DTOs/ChatRequest.cs b/dotnet/src/AutoGen.Ollama/DTOs/ChatRequest.cs index 3b0cf04a1a0..8efd6808d32 100644 --- a/dotnet/src/AutoGen.Ollama/DTOs/ChatRequest.cs +++ b/dotnet/src/AutoGen.Ollama/DTOs/ChatRequest.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ChatRequest.cs using System.Collections.Generic; diff --git a/dotnet/src/AutoGen.Ollama/DTOs/ChatResponse.cs b/dotnet/src/AutoGen.Ollama/DTOs/ChatResponse.cs index 7d8142de785..f44d3059ef5 100644 --- a/dotnet/src/AutoGen.Ollama/DTOs/ChatResponse.cs +++ b/dotnet/src/AutoGen.Ollama/DTOs/ChatResponse.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ChatResponse.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.Ollama/DTOs/ChatResponseUpdate.cs b/dotnet/src/AutoGen.Ollama/DTOs/ChatResponseUpdate.cs index 8b4dac194f4..077cc6accf2 100644 --- a/dotnet/src/AutoGen.Ollama/DTOs/ChatResponseUpdate.cs +++ b/dotnet/src/AutoGen.Ollama/DTOs/ChatResponseUpdate.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ChatResponseUpdate.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.Ollama/DTOs/Message.cs b/dotnet/src/AutoGen.Ollama/DTOs/Message.cs index 75f622ff7f0..502a46ad82f 100644 --- a/dotnet/src/AutoGen.Ollama/DTOs/Message.cs +++ b/dotnet/src/AutoGen.Ollama/DTOs/Message.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Message.cs using System.Collections.Generic; diff --git a/dotnet/src/AutoGen.Ollama/DTOs/ModelReplyOptions.cs b/dotnet/src/AutoGen.Ollama/DTOs/ModelReplyOptions.cs index 9d54a1bb83b..8b042f07cfa 100644 --- a/dotnet/src/AutoGen.Ollama/DTOs/ModelReplyOptions.cs +++ b/dotnet/src/AutoGen.Ollama/DTOs/ModelReplyOptions.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ModelReplyOptions.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.Ollama/DTOs/OllamaReplyOptions.cs b/dotnet/src/AutoGen.Ollama/DTOs/OllamaReplyOptions.cs index c7c77d1db25..c01d150f730 100644 --- a/dotnet/src/AutoGen.Ollama/DTOs/OllamaReplyOptions.cs +++ b/dotnet/src/AutoGen.Ollama/DTOs/OllamaReplyOptions.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OllamaReplyOptions.cs using AutoGen.Core; diff --git a/dotnet/src/AutoGen.Ollama/Embeddings/ITextEmbeddingService.cs b/dotnet/src/AutoGen.Ollama/Embeddings/ITextEmbeddingService.cs index cce6dbb8307..79989eaf222 100644 --- a/dotnet/src/AutoGen.Ollama/Embeddings/ITextEmbeddingService.cs +++ b/dotnet/src/AutoGen.Ollama/Embeddings/ITextEmbeddingService.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ITextEmbeddingService.cs using System.Threading; diff --git a/dotnet/src/AutoGen.Ollama/Embeddings/OllamaTextEmbeddingService.cs b/dotnet/src/AutoGen.Ollama/Embeddings/OllamaTextEmbeddingService.cs index ea4993eb813..f215adf2aef 100644 --- a/dotnet/src/AutoGen.Ollama/Embeddings/OllamaTextEmbeddingService.cs +++ b/dotnet/src/AutoGen.Ollama/Embeddings/OllamaTextEmbeddingService.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OllamaTextEmbeddingService.cs using System; diff --git a/dotnet/src/AutoGen.Ollama/Embeddings/TextEmbeddingsRequest.cs b/dotnet/src/AutoGen.Ollama/Embeddings/TextEmbeddingsRequest.cs index d776b183db0..3fcc6cb7a23 100644 --- a/dotnet/src/AutoGen.Ollama/Embeddings/TextEmbeddingsRequest.cs +++ b/dotnet/src/AutoGen.Ollama/Embeddings/TextEmbeddingsRequest.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // TextEmbeddingsRequest.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.Ollama/Embeddings/TextEmbeddingsResponse.cs b/dotnet/src/AutoGen.Ollama/Embeddings/TextEmbeddingsResponse.cs index f3ce64b7032..ff7d72537ea 100644 --- a/dotnet/src/AutoGen.Ollama/Embeddings/TextEmbeddingsResponse.cs +++ b/dotnet/src/AutoGen.Ollama/Embeddings/TextEmbeddingsResponse.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // TextEmbeddingsResponse.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.Ollama/Extension/OllamaAgentExtension.cs b/dotnet/src/AutoGen.Ollama/Extension/OllamaAgentExtension.cs index 4c0df513ef8..ab94c4a5600 100644 --- a/dotnet/src/AutoGen.Ollama/Extension/OllamaAgentExtension.cs +++ b/dotnet/src/AutoGen.Ollama/Extension/OllamaAgentExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OllamaAgentExtension.cs using AutoGen.Core; diff --git a/dotnet/src/AutoGen.Ollama/Middlewares/OllamaMessageConnector.cs b/dotnet/src/AutoGen.Ollama/Middlewares/OllamaMessageConnector.cs index 9e85ca12fd9..6adbd2ee552 100644 --- a/dotnet/src/AutoGen.Ollama/Middlewares/OllamaMessageConnector.cs +++ b/dotnet/src/AutoGen.Ollama/Middlewares/OllamaMessageConnector.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OllamaMessageConnector.cs using System; diff --git a/dotnet/src/AutoGen.Ollama/OllamaConsts.cs b/dotnet/src/AutoGen.Ollama/OllamaConsts.cs index f305446a9aa..122181c7a63 100644 --- a/dotnet/src/AutoGen.Ollama/OllamaConsts.cs +++ b/dotnet/src/AutoGen.Ollama/OllamaConsts.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OllamaConsts.cs namespace AutoGen.Ollama; diff --git a/dotnet/src/AutoGen.OpenAI.V1/Agent/GPTAgent.cs b/dotnet/src/AutoGen.OpenAI.V1/Agent/GPTAgent.cs index 8d6458299f2..d375564297a 100644 --- a/dotnet/src/AutoGen.OpenAI.V1/Agent/GPTAgent.cs +++ b/dotnet/src/AutoGen.OpenAI.V1/Agent/GPTAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GPTAgent.cs using System; diff --git a/dotnet/src/AutoGen.OpenAI.V1/Agent/OpenAIChatAgent.cs b/dotnet/src/AutoGen.OpenAI.V1/Agent/OpenAIChatAgent.cs index 2305536b4e5..00013eebfff 100644 --- a/dotnet/src/AutoGen.OpenAI.V1/Agent/OpenAIChatAgent.cs +++ b/dotnet/src/AutoGen.OpenAI.V1/Agent/OpenAIChatAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIChatAgent.cs using System; diff --git a/dotnet/src/AutoGen.OpenAI.V1/AzureOpenAIConfig.cs b/dotnet/src/AutoGen.OpenAI.V1/AzureOpenAIConfig.cs index 2be8f21dc4f..c0debaad961 100644 --- a/dotnet/src/AutoGen.OpenAI.V1/AzureOpenAIConfig.cs +++ b/dotnet/src/AutoGen.OpenAI.V1/AzureOpenAIConfig.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // AzureOpenAIConfig.cs namespace AutoGen.OpenAI.V1; diff --git a/dotnet/src/AutoGen.OpenAI.V1/Extension/FunctionContractExtension.cs b/dotnet/src/AutoGen.OpenAI.V1/Extension/FunctionContractExtension.cs index 62009b927ef..1a0687194c9 100644 --- a/dotnet/src/AutoGen.OpenAI.V1/Extension/FunctionContractExtension.cs +++ b/dotnet/src/AutoGen.OpenAI.V1/Extension/FunctionContractExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // FunctionContractExtension.cs using System; diff --git a/dotnet/src/AutoGen.OpenAI.V1/Extension/MessageExtension.cs b/dotnet/src/AutoGen.OpenAI.V1/Extension/MessageExtension.cs index 3264dccf3a8..1655e2fbf14 100644 --- a/dotnet/src/AutoGen.OpenAI.V1/Extension/MessageExtension.cs +++ b/dotnet/src/AutoGen.OpenAI.V1/Extension/MessageExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MessageExtension.cs using System; diff --git a/dotnet/src/AutoGen.OpenAI.V1/Extension/OpenAIAgentExtension.cs b/dotnet/src/AutoGen.OpenAI.V1/Extension/OpenAIAgentExtension.cs index 6c0df8e0e96..931e75ac849 100644 --- a/dotnet/src/AutoGen.OpenAI.V1/Extension/OpenAIAgentExtension.cs +++ b/dotnet/src/AutoGen.OpenAI.V1/Extension/OpenAIAgentExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIAgentExtension.cs namespace AutoGen.OpenAI.V1.Extension; diff --git a/dotnet/src/AutoGen.OpenAI.V1/GlobalUsing.cs b/dotnet/src/AutoGen.OpenAI.V1/GlobalUsing.cs index d66bf001ed5..9ca6b9d8dc2 100644 --- a/dotnet/src/AutoGen.OpenAI.V1/GlobalUsing.cs +++ b/dotnet/src/AutoGen.OpenAI.V1/GlobalUsing.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GlobalUsing.cs global using AutoGen.Core; diff --git a/dotnet/src/AutoGen.OpenAI.V1/Middleware/OpenAIChatRequestMessageConnector.cs b/dotnet/src/AutoGen.OpenAI.V1/Middleware/OpenAIChatRequestMessageConnector.cs index f1bea485c1c..1653a8aa6bd 100644 --- a/dotnet/src/AutoGen.OpenAI.V1/Middleware/OpenAIChatRequestMessageConnector.cs +++ b/dotnet/src/AutoGen.OpenAI.V1/Middleware/OpenAIChatRequestMessageConnector.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIChatRequestMessageConnector.cs using System; diff --git a/dotnet/src/AutoGen.OpenAI.V1/OpenAIConfig.cs b/dotnet/src/AutoGen.OpenAI.V1/OpenAIConfig.cs index 592647cc2c1..491ef347112 100644 --- a/dotnet/src/AutoGen.OpenAI.V1/OpenAIConfig.cs +++ b/dotnet/src/AutoGen.OpenAI.V1/OpenAIConfig.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIConfig.cs namespace AutoGen.OpenAI.V1; diff --git a/dotnet/src/AutoGen.SemanticKernel/Extension/KernelExtension.cs b/dotnet/src/AutoGen.SemanticKernel/Extension/KernelExtension.cs index 8eb11934da3..3059c3cd5ce 100644 --- a/dotnet/src/AutoGen.SemanticKernel/Extension/KernelExtension.cs +++ b/dotnet/src/AutoGen.SemanticKernel/Extension/KernelExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // KernelExtension.cs using System.Linq; diff --git a/dotnet/src/AutoGen.SemanticKernel/Extension/SemanticKernelAgentExtension.cs b/dotnet/src/AutoGen.SemanticKernel/Extension/SemanticKernelAgentExtension.cs index 4d450945dab..c2a544e354c 100644 --- a/dotnet/src/AutoGen.SemanticKernel/Extension/SemanticKernelAgentExtension.cs +++ b/dotnet/src/AutoGen.SemanticKernel/Extension/SemanticKernelAgentExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // SemanticKernelAgentExtension.cs namespace AutoGen.SemanticKernel.Extension; diff --git a/dotnet/src/AutoGen.SemanticKernel/GlobalUsing.cs b/dotnet/src/AutoGen.SemanticKernel/GlobalUsing.cs index d66bf001ed5..9ca6b9d8dc2 100644 --- a/dotnet/src/AutoGen.SemanticKernel/GlobalUsing.cs +++ b/dotnet/src/AutoGen.SemanticKernel/GlobalUsing.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GlobalUsing.cs global using AutoGen.Core; diff --git a/dotnet/src/AutoGen.SemanticKernel/Middleware/KernelPluginMiddleware.cs b/dotnet/src/AutoGen.SemanticKernel/Middleware/KernelPluginMiddleware.cs index 628915a0302..a2d6928e0f3 100644 --- a/dotnet/src/AutoGen.SemanticKernel/Middleware/KernelPluginMiddleware.cs +++ b/dotnet/src/AutoGen.SemanticKernel/Middleware/KernelPluginMiddleware.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // KernelPluginMiddleware.cs using System; diff --git a/dotnet/src/AutoGen.SemanticKernel/Middleware/SemanticKernelChatMessageContentConnector.cs b/dotnet/src/AutoGen.SemanticKernel/Middleware/SemanticKernelChatMessageContentConnector.cs index a055c0afcb6..b3ff93f2cd5 100644 --- a/dotnet/src/AutoGen.SemanticKernel/Middleware/SemanticKernelChatMessageContentConnector.cs +++ b/dotnet/src/AutoGen.SemanticKernel/Middleware/SemanticKernelChatMessageContentConnector.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // SemanticKernelChatMessageContentConnector.cs using System; diff --git a/dotnet/src/AutoGen.SemanticKernel/SemanticKernelAgent.cs b/dotnet/src/AutoGen.SemanticKernel/SemanticKernelAgent.cs index d12c54c1b3b..2a59e7abb6f 100644 --- a/dotnet/src/AutoGen.SemanticKernel/SemanticKernelAgent.cs +++ b/dotnet/src/AutoGen.SemanticKernel/SemanticKernelAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // SemanticKernelAgent.cs using System; diff --git a/dotnet/src/AutoGen.SemanticKernel/SemanticKernelChatCompletionAgent.cs b/dotnet/src/AutoGen.SemanticKernel/SemanticKernelChatCompletionAgent.cs index 82d83a9e855..26d3dee8407 100644 --- a/dotnet/src/AutoGen.SemanticKernel/SemanticKernelChatCompletionAgent.cs +++ b/dotnet/src/AutoGen.SemanticKernel/SemanticKernelChatCompletionAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // SemanticKernelChatCompletionAgent.cs using System; diff --git a/dotnet/src/AutoGen.SourceGenerator/DocumentCommentExtension.cs b/dotnet/src/AutoGen.SourceGenerator/DocumentCommentExtension.cs index a09c77c2d75..19322383fe0 100644 --- a/dotnet/src/AutoGen.SourceGenerator/DocumentCommentExtension.cs +++ b/dotnet/src/AutoGen.SourceGenerator/DocumentCommentExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // DocumentCommentExtension.cs using System; diff --git a/dotnet/src/AutoGen.SourceGenerator/FunctionCallGenerator.cs b/dotnet/src/AutoGen.SourceGenerator/FunctionCallGenerator.cs index cd01416182b..1245aa637bb 100644 --- a/dotnet/src/AutoGen.SourceGenerator/FunctionCallGenerator.cs +++ b/dotnet/src/AutoGen.SourceGenerator/FunctionCallGenerator.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // FunctionCallGenerator.cs using System.Collections.Generic; diff --git a/dotnet/src/AutoGen.SourceGenerator/FunctionExtension.cs b/dotnet/src/AutoGen.SourceGenerator/FunctionExtension.cs index cfb77d26a2b..7e73fa5fc4d 100644 --- a/dotnet/src/AutoGen.SourceGenerator/FunctionExtension.cs +++ b/dotnet/src/AutoGen.SourceGenerator/FunctionExtension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // FunctionExtension.cs using AutoGen.SourceGenerator; diff --git a/dotnet/src/AutoGen.SourceGenerator/SourceGeneratorFunctionContract.cs b/dotnet/src/AutoGen.SourceGenerator/SourceGeneratorFunctionContract.cs index aa4980379f4..e475314c409 100644 --- a/dotnet/src/AutoGen.SourceGenerator/SourceGeneratorFunctionContract.cs +++ b/dotnet/src/AutoGen.SourceGenerator/SourceGeneratorFunctionContract.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // SourceGeneratorFunctionContract.cs namespace AutoGen.SourceGenerator diff --git a/dotnet/src/AutoGen.WebAPI/Extension.cs b/dotnet/src/AutoGen.WebAPI/Extension.cs index c8534e43e54..087d145fab3 100644 --- a/dotnet/src/AutoGen.WebAPI/Extension.cs +++ b/dotnet/src/AutoGen.WebAPI/Extension.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Extension.cs using AutoGen.Core; diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/Converter/OpenAIMessageConverter.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/Converter/OpenAIMessageConverter.cs index 888a0f8dd8c..3db4371d93a 100644 --- a/dotnet/src/AutoGen.WebAPI/OpenAI/Converter/OpenAIMessageConverter.cs +++ b/dotnet/src/AutoGen.WebAPI/OpenAI/Converter/OpenAIMessageConverter.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIMessageConverter.cs using System; diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIAssistantMessage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIAssistantMessage.cs index bfd09035845..825f8636402 100644 --- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIAssistantMessage.cs +++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIAssistantMessage.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIAssistantMessage.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletion.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletion.cs index 041f4cfc848..fb04a7f9e36 100644 --- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletion.cs +++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletion.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIChatCompletion.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionChoice.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionChoice.cs index 35b6fce59a8..3a623e88ab9 100644 --- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionChoice.cs +++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionChoice.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIChatCompletionChoice.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionMessage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionMessage.cs index de6be0dbf7a..41c95652001 100644 --- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionMessage.cs +++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionMessage.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIChatCompletionMessage.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionOption.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionOption.cs index 0b9137d43a3..678b23d954c 100644 --- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionOption.cs +++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionOption.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIChatCompletionOption.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionUsage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionUsage.cs index f196ccb842e..3d29f11f8f7 100644 --- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionUsage.cs +++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionUsage.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIChatCompletionUsage.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIImageUrlObject.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIImageUrlObject.cs index a50012c9fed..f5df96393ff 100644 --- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIImageUrlObject.cs +++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIImageUrlObject.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIImageUrlObject.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIMessage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIMessage.cs index deb729b7200..9752f76ae41 100644 --- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIMessage.cs +++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIMessage.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIMessage.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIStreamOptions.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIStreamOptions.cs index e95991388b7..ebd92999654 100644 --- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIStreamOptions.cs +++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIStreamOptions.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIStreamOptions.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAISystemMessage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAISystemMessage.cs index f29b10826c4..3659d27a312 100644 --- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAISystemMessage.cs +++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAISystemMessage.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAISystemMessage.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIToolCallObject.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIToolCallObject.cs index f3fc37f9c44..6127f70bd89 100644 --- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIToolCallObject.cs +++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIToolCallObject.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIToolCallObject.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIToolMessage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIToolMessage.cs index 0c84c164cd9..95ad88ef73c 100644 --- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIToolMessage.cs +++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIToolMessage.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIToolMessage.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserImageContent.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserImageContent.cs index 28b83ffb305..144a9224528 100644 --- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserImageContent.cs +++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserImageContent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIUserImageContent.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMessage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMessage.cs index b5f1e7c50c1..2a5be230889 100644 --- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMessage.cs +++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMessage.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIUserMessage.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMessageItem.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMessageItem.cs index 94e7d91534a..07611402da2 100644 --- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMessageItem.cs +++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMessageItem.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIUserMessageItem.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMultiModalMessage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMultiModalMessage.cs index 789df5afaaa..64e020f0655 100644 --- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMultiModalMessage.cs +++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMultiModalMessage.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIUserMultiModalMessage.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserTextContent.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserTextContent.cs index d22d5aa4c7f..91a20b209b0 100644 --- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserTextContent.cs +++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserTextContent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIUserTextContent.cs using System.Text.Json.Serialization; diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/Service/OpenAIChatCompletionService.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/Service/OpenAIChatCompletionService.cs index 27481da006a..945696538df 100644 --- a/dotnet/src/AutoGen.WebAPI/OpenAI/Service/OpenAIChatCompletionService.cs +++ b/dotnet/src/AutoGen.WebAPI/OpenAI/Service/OpenAIChatCompletionService.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIChatCompletionService.cs using System; diff --git a/dotnet/src/AutoGen.WebAPI/OpenAIChatCompletionMiddleware.cs b/dotnet/src/AutoGen.WebAPI/OpenAIChatCompletionMiddleware.cs index 53b3699fd62..42ae2edd23a 100644 --- a/dotnet/src/AutoGen.WebAPI/OpenAIChatCompletionMiddleware.cs +++ b/dotnet/src/AutoGen.WebAPI/OpenAIChatCompletionMiddleware.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIChatCompletionMiddleware.cs using System.Text.Json; diff --git a/dotnet/src/AutoGen/API/LLMConfigAPI.cs b/dotnet/src/AutoGen/API/LLMConfigAPI.cs index fcc74435173..85821989ce5 100644 --- a/dotnet/src/AutoGen/API/LLMConfigAPI.cs +++ b/dotnet/src/AutoGen/API/LLMConfigAPI.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // LLMConfigAPI.cs using System; diff --git a/dotnet/src/AutoGen/Agent/AssistantAgent.cs b/dotnet/src/AutoGen/Agent/AssistantAgent.cs index 06f65042add..cf819c15b7e 100644 --- a/dotnet/src/AutoGen/Agent/AssistantAgent.cs +++ b/dotnet/src/AutoGen/Agent/AssistantAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // AssistantAgent.cs using System; diff --git a/dotnet/src/AutoGen/Agent/ConversableAgent.cs b/dotnet/src/AutoGen/Agent/ConversableAgent.cs index b60d2eba099..c8602eba79d 100644 --- a/dotnet/src/AutoGen/Agent/ConversableAgent.cs +++ b/dotnet/src/AutoGen/Agent/ConversableAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ConversableAgent.cs using System; diff --git a/dotnet/src/AutoGen/Agent/UserProxyAgent.cs b/dotnet/src/AutoGen/Agent/UserProxyAgent.cs index a48f07006b8..c10a16c37e2 100644 --- a/dotnet/src/AutoGen/Agent/UserProxyAgent.cs +++ b/dotnet/src/AutoGen/Agent/UserProxyAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // UserProxyAgent.cs using System; diff --git a/dotnet/src/AutoGen/ConversableAgentConfig.cs b/dotnet/src/AutoGen/ConversableAgentConfig.cs index 50a83ba8620..258e587e055 100644 --- a/dotnet/src/AutoGen/ConversableAgentConfig.cs +++ b/dotnet/src/AutoGen/ConversableAgentConfig.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ConversableAgentConfig.cs using System.Collections.Generic; diff --git a/dotnet/src/AutoGen/GlobalUsing.cs b/dotnet/src/AutoGen/GlobalUsing.cs index d66bf001ed5..9ca6b9d8dc2 100644 --- a/dotnet/src/AutoGen/GlobalUsing.cs +++ b/dotnet/src/AutoGen/GlobalUsing.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GlobalUsing.cs global using AutoGen.Core; diff --git a/dotnet/src/AutoGen/Middleware/HumanInputMiddleware.cs b/dotnet/src/AutoGen/Middleware/HumanInputMiddleware.cs index eda3c001a24..84c5ca5cf3b 100644 --- a/dotnet/src/AutoGen/Middleware/HumanInputMiddleware.cs +++ b/dotnet/src/AutoGen/Middleware/HumanInputMiddleware.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // HumanInputMiddleware.cs using System; diff --git a/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientAgentTest.cs b/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientAgentTest.cs index 085917d419e..2a35d5583f0 100644 --- a/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientAgentTest.cs +++ b/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientAgentTest.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // AnthropicClientAgentTest.cs using AutoGen.Anthropic.DTO; diff --git a/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientTest.cs b/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientTest.cs index 0018f2decbc..c57ab8b681f 100644 --- a/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientTest.cs +++ b/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientTest.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // AnthropicClientTest.cs using System.Text; diff --git a/dotnet/test/AutoGen.Anthropic.Tests/AnthropicTestFunctionCalls.cs b/dotnet/test/AutoGen.Anthropic.Tests/AnthropicTestFunctionCalls.cs index 8b5466e3a51..8b9b6631f1a 100644 --- a/dotnet/test/AutoGen.Anthropic.Tests/AnthropicTestFunctionCalls.cs +++ b/dotnet/test/AutoGen.Anthropic.Tests/AnthropicTestFunctionCalls.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // AnthropicTestFunctionCalls.cs using System.Text.Json; diff --git a/dotnet/test/AutoGen.Anthropic.Tests/AnthropicTestUtils.cs b/dotnet/test/AutoGen.Anthropic.Tests/AnthropicTestUtils.cs index d80c5fbe570..9e1bbde2de7 100644 --- a/dotnet/test/AutoGen.Anthropic.Tests/AnthropicTestUtils.cs +++ b/dotnet/test/AutoGen.Anthropic.Tests/AnthropicTestUtils.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // AnthropicTestUtils.cs using AutoGen.Anthropic.DTO; diff --git a/dotnet/test/AutoGen.AotCompatibility.Tests/Program.cs b/dotnet/test/AutoGen.AotCompatibility.Tests/Program.cs index ad2b881ef6c..00f1ba04b8d 100644 --- a/dotnet/test/AutoGen.AotCompatibility.Tests/Program.cs +++ b/dotnet/test/AutoGen.AotCompatibility.Tests/Program.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Program.cs Console.WriteLine("Hello, World!"); diff --git a/dotnet/test/AutoGen.AzureAIInference.Tests/ChatCompletionClientAgentTests.cs b/dotnet/test/AutoGen.AzureAIInference.Tests/ChatCompletionClientAgentTests.cs index d81b8881ac5..9afb028d5ea 100644 --- a/dotnet/test/AutoGen.AzureAIInference.Tests/ChatCompletionClientAgentTests.cs +++ b/dotnet/test/AutoGen.AzureAIInference.Tests/ChatCompletionClientAgentTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ChatCompletionClientAgentTests.cs using System; diff --git a/dotnet/test/AutoGen.AzureAIInference.Tests/ChatRequestMessageTests.cs b/dotnet/test/AutoGen.AzureAIInference.Tests/ChatRequestMessageTests.cs index d6e5c528393..f7cbb8f662e 100644 --- a/dotnet/test/AutoGen.AzureAIInference.Tests/ChatRequestMessageTests.cs +++ b/dotnet/test/AutoGen.AzureAIInference.Tests/ChatRequestMessageTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ChatRequestMessageTests.cs using System; diff --git a/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveServiceTest.cs b/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveServiceTest.cs index aeec23a758b..aad52e6138e 100644 --- a/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveServiceTest.cs +++ b/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveServiceTest.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // DotnetInteractiveServiceTest.cs using FluentAssertions; diff --git a/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveStdioKernelConnectorTests.cs b/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveStdioKernelConnectorTests.cs index 520d00c04c6..eb6edcf3d5e 100644 --- a/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveStdioKernelConnectorTests.cs +++ b/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveStdioKernelConnectorTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // DotnetInteractiveStdioKernelConnectorTests.cs using AutoGen.DotnetInteractive.Extension; diff --git a/dotnet/test/AutoGen.DotnetInteractive.Tests/InProcessDotnetInteractiveKernelBuilderTest.cs b/dotnet/test/AutoGen.DotnetInteractive.Tests/InProcessDotnetInteractiveKernelBuilderTest.cs index fe2de74dd30..c60563699b8 100644 --- a/dotnet/test/AutoGen.DotnetInteractive.Tests/InProcessDotnetInteractiveKernelBuilderTest.cs +++ b/dotnet/test/AutoGen.DotnetInteractive.Tests/InProcessDotnetInteractiveKernelBuilderTest.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // InProcessDotnetInteractiveKernelBuilderTest.cs using AutoGen.DotnetInteractive.Extension; diff --git a/dotnet/test/AutoGen.DotnetInteractive.Tests/MessageExtensionTests.cs b/dotnet/test/AutoGen.DotnetInteractive.Tests/MessageExtensionTests.cs index a886ef4985d..e5166677831 100644 --- a/dotnet/test/AutoGen.DotnetInteractive.Tests/MessageExtensionTests.cs +++ b/dotnet/test/AutoGen.DotnetInteractive.Tests/MessageExtensionTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MessageExtensionTests.cs using AutoGen.Core; diff --git a/dotnet/test/AutoGen.Gemini.Tests/FunctionContractExtensionTests.cs b/dotnet/test/AutoGen.Gemini.Tests/FunctionContractExtensionTests.cs index 51d799acc22..8d8679ba8e7 100644 --- a/dotnet/test/AutoGen.Gemini.Tests/FunctionContractExtensionTests.cs +++ b/dotnet/test/AutoGen.Gemini.Tests/FunctionContractExtensionTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // FunctionContractExtensionTests.cs using ApprovalTests; diff --git a/dotnet/test/AutoGen.Gemini.Tests/Functions.cs b/dotnet/test/AutoGen.Gemini.Tests/Functions.cs index e3e07ee633f..a0d1851687f 100644 --- a/dotnet/test/AutoGen.Gemini.Tests/Functions.cs +++ b/dotnet/test/AutoGen.Gemini.Tests/Functions.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // Functions.cs using AutoGen.Core; diff --git a/dotnet/test/AutoGen.Gemini.Tests/GeminiAgentTests.cs b/dotnet/test/AutoGen.Gemini.Tests/GeminiAgentTests.cs index c076aee1837..42888a4db5e 100644 --- a/dotnet/test/AutoGen.Gemini.Tests/GeminiAgentTests.cs +++ b/dotnet/test/AutoGen.Gemini.Tests/GeminiAgentTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GeminiAgentTests.cs using AutoGen.Core; diff --git a/dotnet/test/AutoGen.Gemini.Tests/GeminiMessageTests.cs b/dotnet/test/AutoGen.Gemini.Tests/GeminiMessageTests.cs index 12ba9473403..a33b9e565d0 100644 --- a/dotnet/test/AutoGen.Gemini.Tests/GeminiMessageTests.cs +++ b/dotnet/test/AutoGen.Gemini.Tests/GeminiMessageTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GeminiMessageTests.cs using AutoGen.Core; diff --git a/dotnet/test/AutoGen.Gemini.Tests/GoogleGeminiClientTests.cs b/dotnet/test/AutoGen.Gemini.Tests/GoogleGeminiClientTests.cs index 3bda12eda1a..0777e1eef7e 100644 --- a/dotnet/test/AutoGen.Gemini.Tests/GoogleGeminiClientTests.cs +++ b/dotnet/test/AutoGen.Gemini.Tests/GoogleGeminiClientTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GoogleGeminiClientTests.cs using AutoGen.Tests; diff --git a/dotnet/test/AutoGen.Gemini.Tests/SampleTests.cs b/dotnet/test/AutoGen.Gemini.Tests/SampleTests.cs index 1f9b557af24..f6fe9128c54 100644 --- a/dotnet/test/AutoGen.Gemini.Tests/SampleTests.cs +++ b/dotnet/test/AutoGen.Gemini.Tests/SampleTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // SampleTests.cs using AutoGen.Gemini.Sample; diff --git a/dotnet/test/AutoGen.Gemini.Tests/VertexGeminiClientTests.cs b/dotnet/test/AutoGen.Gemini.Tests/VertexGeminiClientTests.cs index fba97aa522d..d4c1e0f3800 100644 --- a/dotnet/test/AutoGen.Gemini.Tests/VertexGeminiClientTests.cs +++ b/dotnet/test/AutoGen.Gemini.Tests/VertexGeminiClientTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // VertexGeminiClientTests.cs using AutoGen.Tests; diff --git a/dotnet/test/AutoGen.Mistral.Tests/MistralClientAgentTests.cs b/dotnet/test/AutoGen.Mistral.Tests/MistralClientAgentTests.cs index 3aa61a7a71d..3eb08a8ac30 100644 --- a/dotnet/test/AutoGen.Mistral.Tests/MistralClientAgentTests.cs +++ b/dotnet/test/AutoGen.Mistral.Tests/MistralClientAgentTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MistralClientAgentTests.cs using System.Text.Json; diff --git a/dotnet/test/AutoGen.Mistral.Tests/MistralClientTests.cs b/dotnet/test/AutoGen.Mistral.Tests/MistralClientTests.cs index bd285adf673..0ee31488b32 100644 --- a/dotnet/test/AutoGen.Mistral.Tests/MistralClientTests.cs +++ b/dotnet/test/AutoGen.Mistral.Tests/MistralClientTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MistralClientTests.cs using System.Text.Json; diff --git a/dotnet/test/AutoGen.Ollama.Tests/OllamaAgentTests.cs b/dotnet/test/AutoGen.Ollama.Tests/OllamaAgentTests.cs index 8a416116ea9..107f26f3625 100644 --- a/dotnet/test/AutoGen.Ollama.Tests/OllamaAgentTests.cs +++ b/dotnet/test/AutoGen.Ollama.Tests/OllamaAgentTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OllamaAgentTests.cs using System.Text.Json; diff --git a/dotnet/test/AutoGen.Ollama.Tests/OllamaMessageTests.cs b/dotnet/test/AutoGen.Ollama.Tests/OllamaMessageTests.cs index 82cc462061d..9135859b7fd 100644 --- a/dotnet/test/AutoGen.Ollama.Tests/OllamaMessageTests.cs +++ b/dotnet/test/AutoGen.Ollama.Tests/OllamaMessageTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OllamaMessageTests.cs using AutoGen.Core; diff --git a/dotnet/test/AutoGen.Ollama.Tests/OllamaTextEmbeddingServiceTests.cs b/dotnet/test/AutoGen.Ollama.Tests/OllamaTextEmbeddingServiceTests.cs index b7186a3c6eb..044f8a7ec77 100644 --- a/dotnet/test/AutoGen.Ollama.Tests/OllamaTextEmbeddingServiceTests.cs +++ b/dotnet/test/AutoGen.Ollama.Tests/OllamaTextEmbeddingServiceTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OllamaTextEmbeddingServiceTests.cs using AutoGen.Tests; diff --git a/dotnet/test/AutoGen.OpenAI.V1.Tests/GlobalUsing.cs b/dotnet/test/AutoGen.OpenAI.V1.Tests/GlobalUsing.cs index d66bf001ed5..9ca6b9d8dc2 100644 --- a/dotnet/test/AutoGen.OpenAI.V1.Tests/GlobalUsing.cs +++ b/dotnet/test/AutoGen.OpenAI.V1.Tests/GlobalUsing.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GlobalUsing.cs global using AutoGen.Core; diff --git a/dotnet/test/AutoGen.OpenAI.V1.Tests/MathClassTest.cs b/dotnet/test/AutoGen.OpenAI.V1.Tests/MathClassTest.cs index a1f9541f467..366ad209547 100644 --- a/dotnet/test/AutoGen.OpenAI.V1.Tests/MathClassTest.cs +++ b/dotnet/test/AutoGen.OpenAI.V1.Tests/MathClassTest.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MathClassTest.cs using System; diff --git a/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIChatAgentTest.cs b/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIChatAgentTest.cs index 0957cc9f49b..281c5d4f47a 100644 --- a/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIChatAgentTest.cs +++ b/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIChatAgentTest.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIChatAgentTest.cs using System; diff --git a/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIMessageTests.cs b/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIMessageTests.cs index 3050c4e8e09..704a07f40b4 100644 --- a/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIMessageTests.cs +++ b/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIMessageTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIMessageTests.cs using System; diff --git a/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionExtensionTests.cs b/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionExtensionTests.cs index c898c98b3c0..dd1cc22ae36 100644 --- a/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionExtensionTests.cs +++ b/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionExtensionTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // KernelFunctionExtensionTests.cs using System.ComponentModel; diff --git a/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionMiddlewareTests.cs b/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionMiddlewareTests.cs index 3732cd0197b..6681ed687bc 100644 --- a/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionMiddlewareTests.cs +++ b/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionMiddlewareTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // KernelFunctionMiddlewareTests.cs using AutoGen.Core; diff --git a/dotnet/test/AutoGen.SemanticKernel.Tests/SemanticKernelAgentTest.cs b/dotnet/test/AutoGen.SemanticKernel.Tests/SemanticKernelAgentTest.cs index d9dde62f1bd..c06acae3b7f 100644 --- a/dotnet/test/AutoGen.SemanticKernel.Tests/SemanticKernelAgentTest.cs +++ b/dotnet/test/AutoGen.SemanticKernel.Tests/SemanticKernelAgentTest.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // SemanticKernelAgentTest.cs using AutoGen.Core; diff --git a/dotnet/test/AutoGen.SourceGenerator.Tests/FilescopeNamespaceFunctionExample.cs b/dotnet/test/AutoGen.SourceGenerator.Tests/FilescopeNamespaceFunctionExample.cs index 8293b26c162..b0cebd38833 100644 --- a/dotnet/test/AutoGen.SourceGenerator.Tests/FilescopeNamespaceFunctionExample.cs +++ b/dotnet/test/AutoGen.SourceGenerator.Tests/FilescopeNamespaceFunctionExample.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // FilescopeNamespaceFunctionExample.cs using AutoGen.Core; diff --git a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateEncodingTests.cs b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateEncodingTests.cs index 0b2e211c638..7072d445f74 100644 --- a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateEncodingTests.cs +++ b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateEncodingTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // FunctionCallTemplateEncodingTests.cs using System.Text.Json; // Needed for JsonSerializer diff --git a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateTests.cs b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateTests.cs index 3c1e6c8ede3..dcdb7e20825 100644 --- a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateTests.cs +++ b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // FunctionCallTemplateTests.cs using ApprovalTests; diff --git a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExample.test.cs b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExample.test.cs index 066aff8156a..d714a991cbc 100644 --- a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExample.test.cs +++ b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExample.test.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // FunctionExample.test.cs using System.Text.Json; diff --git a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExamples.cs b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExamples.cs index d48906d2cd5..25c12d9b346 100644 --- a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExamples.cs +++ b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExamples.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // FunctionExamples.cs using System.Text.Json; diff --git a/dotnet/test/AutoGen.SourceGenerator.Tests/TopLevelStatementFunctionExample.cs b/dotnet/test/AutoGen.SourceGenerator.Tests/TopLevelStatementFunctionExample.cs index 0acaa46a3fa..d565433a052 100644 --- a/dotnet/test/AutoGen.SourceGenerator.Tests/TopLevelStatementFunctionExample.cs +++ b/dotnet/test/AutoGen.SourceGenerator.Tests/TopLevelStatementFunctionExample.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // TopLevelStatementFunctionExample.cs using AutoGen.Core; diff --git a/dotnet/test/AutoGen.Test.Share/Attribute/EnvironmentSpecificFactAttribute.cs b/dotnet/test/AutoGen.Test.Share/Attribute/EnvironmentSpecificFactAttribute.cs index 1361531cc9e..6b601e3351e 100644 --- a/dotnet/test/AutoGen.Test.Share/Attribute/EnvironmentSpecificFactAttribute.cs +++ b/dotnet/test/AutoGen.Test.Share/Attribute/EnvironmentSpecificFactAttribute.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // EnvironmentSpecificFactAttribute.cs using Xunit; diff --git a/dotnet/test/AutoGen.Test.Share/Attribute/OpenAIFact.cs b/dotnet/test/AutoGen.Test.Share/Attribute/OpenAIFact.cs index 54d72cd61ab..40afbc11da1 100644 --- a/dotnet/test/AutoGen.Test.Share/Attribute/OpenAIFact.cs +++ b/dotnet/test/AutoGen.Test.Share/Attribute/OpenAIFact.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIFact.cs namespace AutoGen.Tests; diff --git a/dotnet/test/AutoGen.Test.Share/EchoAgent.cs b/dotnet/test/AutoGen.Test.Share/EchoAgent.cs index 010b72d2add..44709001498 100644 --- a/dotnet/test/AutoGen.Test.Share/EchoAgent.cs +++ b/dotnet/test/AutoGen.Test.Share/EchoAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // EchoAgent.cs using System.Runtime.CompilerServices; diff --git a/dotnet/test/AutoGen.Tests/BasicSampleTest.cs b/dotnet/test/AutoGen.Tests/BasicSampleTest.cs index 89925b7d3b3..c45757b05d7 100644 --- a/dotnet/test/AutoGen.Tests/BasicSampleTest.cs +++ b/dotnet/test/AutoGen.Tests/BasicSampleTest.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // BasicSampleTest.cs using System; diff --git a/dotnet/test/AutoGen.Tests/GlobalUsing.cs b/dotnet/test/AutoGen.Tests/GlobalUsing.cs index d66bf001ed5..9ca6b9d8dc2 100644 --- a/dotnet/test/AutoGen.Tests/GlobalUsing.cs +++ b/dotnet/test/AutoGen.Tests/GlobalUsing.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GlobalUsing.cs global using AutoGen.Core; diff --git a/dotnet/test/AutoGen.Tests/GroupChat/GraphTests.cs b/dotnet/test/AutoGen.Tests/GroupChat/GraphTests.cs index 7eeea6743f0..5f703b37435 100644 --- a/dotnet/test/AutoGen.Tests/GroupChat/GraphTests.cs +++ b/dotnet/test/AutoGen.Tests/GroupChat/GraphTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GraphTests.cs using Xunit; diff --git a/dotnet/test/AutoGen.Tests/GroupChat/GroupChatTests.cs b/dotnet/test/AutoGen.Tests/GroupChat/GroupChatTests.cs index 9c2d2ce8197..e90e4e31e96 100644 --- a/dotnet/test/AutoGen.Tests/GroupChat/GroupChatTests.cs +++ b/dotnet/test/AutoGen.Tests/GroupChat/GroupChatTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // GroupChatTests.cs using System; diff --git a/dotnet/test/AutoGen.Tests/ImageMessageTests.cs b/dotnet/test/AutoGen.Tests/ImageMessageTests.cs index 210cb1017ed..ad473cdda48 100644 --- a/dotnet/test/AutoGen.Tests/ImageMessageTests.cs +++ b/dotnet/test/AutoGen.Tests/ImageMessageTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // ImageMessageTests.cs using System; diff --git a/dotnet/test/AutoGen.Tests/MiddlewareAgentTest.cs b/dotnet/test/AutoGen.Tests/MiddlewareAgentTest.cs index 9241c9e94f9..a7d0dddf829 100644 --- a/dotnet/test/AutoGen.Tests/MiddlewareAgentTest.cs +++ b/dotnet/test/AutoGen.Tests/MiddlewareAgentTest.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MiddlewareAgentTest.cs using System.Linq; diff --git a/dotnet/test/AutoGen.Tests/MiddlewareTest.cs b/dotnet/test/AutoGen.Tests/MiddlewareTest.cs index 6c1c89a33c1..41dd8a63d88 100644 --- a/dotnet/test/AutoGen.Tests/MiddlewareTest.cs +++ b/dotnet/test/AutoGen.Tests/MiddlewareTest.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // MiddlewareTest.cs using System; diff --git a/dotnet/test/AutoGen.Tests/Orchestrator/RolePlayOrchestratorTests.cs b/dotnet/test/AutoGen.Tests/Orchestrator/RolePlayOrchestratorTests.cs index a91524257b6..f9678bc4f74 100644 --- a/dotnet/test/AutoGen.Tests/Orchestrator/RolePlayOrchestratorTests.cs +++ b/dotnet/test/AutoGen.Tests/Orchestrator/RolePlayOrchestratorTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // RolePlayOrchestratorTests.cs using System; diff --git a/dotnet/test/AutoGen.Tests/Orchestrator/RoundRobinOrchestratorTests.cs b/dotnet/test/AutoGen.Tests/Orchestrator/RoundRobinOrchestratorTests.cs index 17897860a14..aca1dd0da2b 100644 --- a/dotnet/test/AutoGen.Tests/Orchestrator/RoundRobinOrchestratorTests.cs +++ b/dotnet/test/AutoGen.Tests/Orchestrator/RoundRobinOrchestratorTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // RoundRobinOrchestratorTests.cs using System.Collections.Generic; diff --git a/dotnet/test/AutoGen.Tests/Orchestrator/WorkflowOrchestratorTests.cs b/dotnet/test/AutoGen.Tests/Orchestrator/WorkflowOrchestratorTests.cs index 6599566a446..14ada03ad35 100644 --- a/dotnet/test/AutoGen.Tests/Orchestrator/WorkflowOrchestratorTests.cs +++ b/dotnet/test/AutoGen.Tests/Orchestrator/WorkflowOrchestratorTests.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // WorkflowOrchestratorTests.cs using System; diff --git a/dotnet/test/AutoGen.Tests/SingleAgentTest.cs b/dotnet/test/AutoGen.Tests/SingleAgentTest.cs index 7e2a4b4c68a..88d4ac6a49f 100644 --- a/dotnet/test/AutoGen.Tests/SingleAgentTest.cs +++ b/dotnet/test/AutoGen.Tests/SingleAgentTest.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // SingleAgentTest.cs using System; diff --git a/dotnet/test/AutoGen.Tests/TwoAgentTest.cs b/dotnet/test/AutoGen.Tests/TwoAgentTest.cs index b5d7bceed4d..adf82d5857e 100644 --- a/dotnet/test/AutoGen.Tests/TwoAgentTest.cs +++ b/dotnet/test/AutoGen.Tests/TwoAgentTest.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // TwoAgentTest.cs #pragma warning disable xUnit1013 using System; diff --git a/dotnet/test/AutoGen.Tests/WorkflowTest.cs b/dotnet/test/AutoGen.Tests/WorkflowTest.cs index 1079ec95515..86c8f01cc80 100644 --- a/dotnet/test/AutoGen.Tests/WorkflowTest.cs +++ b/dotnet/test/AutoGen.Tests/WorkflowTest.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // WorkflowTest.cs using System.Collections.Generic; diff --git a/dotnet/test/AutoGen.WebAPI.Tests/EchoAgent.cs b/dotnet/test/AutoGen.WebAPI.Tests/EchoAgent.cs index 957f8d1d799..ece022a7eee 100644 --- a/dotnet/test/AutoGen.WebAPI.Tests/EchoAgent.cs +++ b/dotnet/test/AutoGen.WebAPI.Tests/EchoAgent.cs @@ -1,4 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // EchoAgent.cs using System.Runtime.CompilerServices; diff --git a/dotnet/test/AutoGen.WebAPI.Tests/OpenAIChatCompletionMiddlewareTests.cs b/dotnet/test/AutoGen.WebAPI.Tests/OpenAIChatCompletionMiddlewareTests.cs index 964f1fc94ed..0bca14f35b8 100644 --- a/dotnet/test/AutoGen.WebAPI.Tests/OpenAIChatCompletionMiddlewareTests.cs +++ b/dotnet/test/AutoGen.WebAPI.Tests/OpenAIChatCompletionMiddlewareTests.cs @@ -1,4 +1,16 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +// SPDX-License-Identifier: Apache-2.0 +// Contributions to this project, i.e., https://github.com/autogen-ai/autogen, +// are licensed under the Apache License, Version 2.0 (Apache-2.0). +// Portions derived from https://github.com/microsoft/autogen under the MIT License. +// SPDX-License-Identifier: MIT +// Copyright (c) Microsoft Corporation. All rights reserved. // OpenAIChatCompletionMiddlewareTests.cs using AutoGen.Core; diff --git a/license_original/LICENSE-CC b/license_original/LICENSE-CC new file mode 100644 index 00000000000..2f244ac8140 --- /dev/null +++ b/license_original/LICENSE-CC @@ -0,0 +1,395 @@ +Attribution 4.0 International + +======================================================================= + +Creative Commons Corporation ("Creative Commons") is not a law firm and +does not provide legal services or legal advice. Distribution of +Creative Commons public licenses does not create a lawyer-client or +other relationship. Creative Commons makes its licenses and related +information available on an "as-is" basis. Creative Commons gives no +warranties regarding its licenses, any material licensed under their +terms and conditions, or any related information. Creative Commons +disclaims all liability for damages resulting from their use to the +fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and +conditions that creators and other rights holders may use to share +original works of authorship and other material subject to copyright +and certain other rights specified in the public license below. The +following considerations are for informational purposes only, are not +exhaustive, and do not form part of our licenses. + + Considerations for licensors: Our public licenses are + intended for use by those authorized to give the public + permission to use material in ways otherwise restricted by + copyright and certain other rights. Our licenses are + irrevocable. Licensors should read and understand the terms + and conditions of the license they choose before applying it. + Licensors should also secure all rights necessary before + applying our licenses so that the public can reuse the + material as expected. Licensors should clearly mark any + material not subject to the license. This includes other CC- + licensed material, or material used under an exception or + limitation to copyright. More considerations for licensors: + wiki.creativecommons.org/Considerations_for_licensors + + Considerations for the public: By using one of our public + licenses, a licensor grants the public permission to use the + licensed material under specified terms and conditions. If + the licensor's permission is not necessary for any reason--for + example, because of any applicable exception or limitation to + copyright--then that use is not regulated by the license. Our + licenses grant only permissions under copyright and certain + other rights that a licensor has authority to grant. Use of + the licensed material may still be restricted for other + reasons, including because others have copyright or other + rights in the material. A licensor may make special requests, + such as asking that all changes be marked or described. + Although not required by our licenses, you are encouraged to + respect those requests where reasonable. More_considerations + for the public: + wiki.creativecommons.org/Considerations_for_licensees + +======================================================================= + +Creative Commons Attribution 4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree +to be bound by the terms and conditions of this Creative Commons +Attribution 4.0 International Public License ("Public License"). To the +extent this Public License may be interpreted as a contract, You are +granted the Licensed Rights in consideration of Your acceptance of +these terms and conditions, and the Licensor grants You such rights in +consideration of benefits the Licensor receives from making the +Licensed Material available under these terms and conditions. + + +Section 1 -- Definitions. + + a. Adapted Material means material subject to Copyright and Similar + Rights that is derived from or based upon the Licensed Material + and in which the Licensed Material is translated, altered, + arranged, transformed, or otherwise modified in a manner requiring + permission under the Copyright and Similar Rights held by the + Licensor. For purposes of this Public License, where the Licensed + Material is a musical work, performance, or sound recording, + Adapted Material is always produced where the Licensed Material is + synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright + and Similar Rights in Your contributions to Adapted Material in + accordance with the terms and conditions of this Public License. + + c. Copyright and Similar Rights means copyright and/or similar rights + closely related to copyright including, without limitation, + performance, broadcast, sound recording, and Sui Generis Database + Rights, without regard to how the rights are labeled or + categorized. For purposes of this Public License, the rights + specified in Section 2(b)(1)-(2) are not Copyright and Similar + Rights. + + d. Effective Technological Measures means those measures that, in the + absence of proper authority, may not be circumvented under laws + fulfilling obligations under Article 11 of the WIPO Copyright + Treaty adopted on December 20, 1996, and/or similar international + agreements. + + e. Exceptions and Limitations means fair use, fair dealing, and/or + any other exception or limitation to Copyright and Similar Rights + that applies to Your use of the Licensed Material. + + f. Licensed Material means the artistic or literary work, database, + or other material to which the Licensor applied this Public + License. + + g. Licensed Rights means the rights granted to You subject to the + terms and conditions of this Public License, which are limited to + all Copyright and Similar Rights that apply to Your use of the + Licensed Material and that the Licensor has authority to license. + + h. Licensor means the individual(s) or entity(ies) granting rights + under this Public License. + + i. Share means to provide material to the public by any means or + process that requires permission under the Licensed Rights, such + as reproduction, public display, public performance, distribution, + dissemination, communication, or importation, and to make material + available to the public including in ways that members of the + public may access the material from a place and at a time + individually chosen by them. + + j. Sui Generis Database Rights means rights other than copyright + resulting from Directive 96/9/EC of the European Parliament and of + the Council of 11 March 1996 on the legal protection of databases, + as amended and/or succeeded, as well as other essentially + equivalent rights anywhere in the world. + + k. You means the individual or entity exercising the Licensed Rights + under this Public License. Your has a corresponding meaning. + + +Section 2 -- Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, + the Licensor hereby grants You a worldwide, royalty-free, + non-sublicensable, non-exclusive, irrevocable license to + exercise the Licensed Rights in the Licensed Material to: + + a. reproduce and Share the Licensed Material, in whole or + in part; and + + b. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where + Exceptions and Limitations apply to Your use, this Public + License does not apply, and You do not need to comply with + its terms and conditions. + + 3. Term. The term of this Public License is specified in Section + 6(a). + + 4. Media and formats; technical modifications allowed. The + Licensor authorizes You to exercise the Licensed Rights in + all media and formats whether now known or hereafter created, + and to make technical modifications necessary to do so. The + Licensor waives and/or agrees not to assert any right or + authority to forbid You from making technical modifications + necessary to exercise the Licensed Rights, including + technical modifications necessary to circumvent Effective + Technological Measures. For purposes of this Public License, + simply making modifications authorized by this Section 2(a) + (4) never produces Adapted Material. + + 5. Downstream recipients. + + a. Offer from the Licensor -- Licensed Material. Every + recipient of the Licensed Material automatically + receives an offer from the Licensor to exercise the + Licensed Rights under the terms and conditions of this + Public License. + + b. No downstream restrictions. You may not offer or impose + any additional or different terms or conditions on, or + apply any Effective Technological Measures to, the + Licensed Material if doing so restricts exercise of the + Licensed Rights by any recipient of the Licensed + Material. + + 6. No endorsement. Nothing in this Public License constitutes or + may be construed as permission to assert or imply that You + are, or that Your use of the Licensed Material is, connected + with, or sponsored, endorsed, or granted official status by, + the Licensor or others designated to receive attribution as + provided in Section 3(a)(1)(A)(i). + + b. Other rights. + + 1. Moral rights, such as the right of integrity, are not + licensed under this Public License, nor are publicity, + privacy, and/or other similar personality rights; however, to + the extent possible, the Licensor waives and/or agrees not to + assert any such rights held by the Licensor to the limited + extent necessary to allow You to exercise the Licensed + Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this + Public License. + + 3. To the extent possible, the Licensor waives any right to + collect royalties from You for the exercise of the Licensed + Rights, whether directly or through a collecting society + under any voluntary or waivable statutory or compulsory + licensing scheme. In all other cases the Licensor expressly + reserves any right to collect such royalties. + + +Section 3 -- License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the +following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified + form), You must: + + a. retain the following if it is supplied by the Licensor + with the Licensed Material: + + i. identification of the creator(s) of the Licensed + Material and any others designated to receive + attribution, in any reasonable manner requested by + the Licensor (including by pseudonym if + designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of + warranties; + + v. a URI or hyperlink to the Licensed Material to the + extent reasonably practicable; + + b. indicate if You modified the Licensed Material and + retain an indication of any previous modifications; and + + c. indicate the Licensed Material is licensed under this + Public License, and include the text of, or the URI or + hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any + reasonable manner based on the medium, means, and context in + which You Share the Licensed Material. For example, it may be + reasonable to satisfy the conditions by providing a URI or + hyperlink to a resource that includes the required + information. + + 3. If requested by the Licensor, You must remove any of the + information required by Section 3(a)(1)(A) to the extent + reasonably practicable. + + 4. If You Share Adapted Material You produce, the Adapter's + License You apply must not prevent recipients of the Adapted + Material from complying with this Public License. + + +Section 4 -- Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that +apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right + to extract, reuse, reproduce, and Share all or a substantial + portion of the contents of the database; + + b. if You include all or a substantial portion of the database + contents in a database in which You have Sui Generis Database + Rights, then the database in which You have Sui Generis Database + Rights (but not its individual contents) is Adapted Material; and + + c. You must comply with the conditions in Section 3(a) if You Share + all or a substantial portion of the contents of the database. + +For the avoidance of doubt, this Section 4 supplements and does not +replace Your obligations under this Public License where the Licensed +Rights include other Copyright and Similar Rights. + + +Section 5 -- Disclaimer of Warranties and Limitation of Liability. + + a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE + EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS + AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF + ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, + IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, + WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, + ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT + KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT + ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. + + b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE + TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, + NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, + INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, + COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR + USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR + DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR + IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. + + c. The disclaimer of warranties and limitation of liability provided + above shall be interpreted in a manner that, to the extent + possible, most closely approximates an absolute disclaimer and + waiver of all liability. + + +Section 6 -- Term and Termination. + + a. This Public License applies for the term of the Copyright and + Similar Rights licensed here. However, if You fail to comply with + this Public License, then Your rights under this Public License + terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under + Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided + it is cured within 30 days of Your discovery of the + violation; or + + 2. upon express reinstatement by the Licensor. + + For the avoidance of doubt, this Section 6(b) does not affect any + right the Licensor may have to seek remedies for Your violations + of this Public License. + + c. For the avoidance of doubt, the Licensor may also offer the + Licensed Material under separate terms or conditions or stop + distributing the Licensed Material at any time; however, doing so + will not terminate this Public License. + + d. Sections 1, 5, 6, 7, and 8 survive termination of this Public + License. + + +Section 7 -- Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different + terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the + Licensed Material not stated herein are separate from and + independent of the terms and conditions of this Public License. + + +Section 8 -- Interpretation. + + a. For the avoidance of doubt, this Public License does not, and + shall not be interpreted to, reduce, limit, restrict, or impose + conditions on any use of the Licensed Material that could lawfully + be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is + deemed unenforceable, it shall be automatically reformed to the + minimum extent necessary to make it enforceable. If the provision + cannot be reformed, it shall be severed from this Public License + without affecting the enforceability of the remaining terms and + conditions. + + c. No term or condition of this Public License will be waived and no + failure to comply consented to unless expressly agreed to by the + Licensor. + + d. Nothing in this Public License constitutes or may be interpreted + as a limitation upon, or waiver of, any privileges and immunities + that apply to the Licensor or You, including from the legal + processes of any jurisdiction or authority. + + +======================================================================= + +Creative Commons is not a party to its public +licenses. Notwithstanding, Creative Commons may elect to apply one of +its public licenses to material it publishes and in those instances +will be considered the “Licensor.” The text of the Creative Commons +public licenses is dedicated to the public domain under the CC0 Public +Domain Dedication. Except for the limited purpose of indicating that +material is shared under a Creative Commons public license or as +otherwise permitted by the Creative Commons policies published at +creativecommons.org/policies, Creative Commons does not authorize the +use of the trademark "Creative Commons" or any other trademark or logo +of Creative Commons without its prior written consent including, +without limitation, in connection with any unauthorized modifications +to any of its public licenses or any other arrangements, +understandings, or agreements concerning use of licensed material. For +the avoidance of doubt, this paragraph does not form part of the +public licenses. + +Creative Commons may be contacted at creativecommons.org. diff --git a/LICENSE-CODE b/license_original/LICENSE_original_MIT similarity index 100% rename from LICENSE-CODE rename to license_original/LICENSE_original_MIT diff --git a/notebook/agentchat_MathChat.ipynb b/notebook/agentchat_MathChat.ipynb index 89cd386b4be..05690870257 100644 --- a/notebook/agentchat_MathChat.ipynb +++ b/notebook/agentchat_MathChat.ipynb @@ -31,7 +31,7 @@ "source": [ "## Set your API Endpoint\n", "\n", - "The [`config_list_from_json`](https://microsoft.github.io/autogen/docs/reference/oai/openai_utils#config_list_from_json) function loads a list of configurations from an environment variable or a json file.\n" + "The [`config_list_from_json`](https://autogen-ai.github.io/autogen/docs/reference/oai/openai_utils#config_list_from_json) function loads a list of configurations from an environment variable or a json file.\n" ] }, { diff --git a/notebook/agentchat_RetrieveChat.ipynb b/notebook/agentchat_RetrieveChat.ipynb index 352aa95170c..57b14d119d2 100644 --- a/notebook/agentchat_RetrieveChat.ipynb +++ b/notebook/agentchat_RetrieveChat.ipynb @@ -43,7 +43,7 @@ "source": [ "## Set your API Endpoint\n", "\n", - "The [`config_list_from_json`](https://microsoft.github.io/autogen/docs/reference/oai/openai_utils#config_list_from_json) function loads a list of configurations from an environment variable or a json file.\n" + "The [`config_list_from_json`](https://autogen-ai.github.io/autogen/docs/reference/oai/openai_utils#config_list_from_json) function loads a list of configurations from an environment variable or a json file.\n" ] }, { diff --git a/notebook/agentchat_agentoptimizer.ipynb b/notebook/agentchat_agentoptimizer.ipynb index 02756cbbfa5..d762750f436 100644 --- a/notebook/agentchat_agentoptimizer.ipynb +++ b/notebook/agentchat_agentoptimizer.ipynb @@ -53,7 +53,7 @@ "source": [ "# MathUserProxy with function_call\n", "\n", - "This agent is a customized MathUserProxy inherits from its [parent class](https://github.com/microsoft/autogen/blob/main/autogen/agentchat/contrib/math_user_proxy_agent.py).\n", + "This agent is a customized MathUserProxy inherits from its [parent class](https://github.com/autogen-ai/autogen/blob/main/autogen/agentchat/contrib/math_user_proxy_agent.py).\n", "\n", "It supports using both function_call and python to solve math problems.\n" ] diff --git a/notebook/agentchat_custom_model.ipynb b/notebook/agentchat_custom_model.ipynb index 1208d3195fa..6b3d2baec32 100644 --- a/notebook/agentchat_custom_model.ipynb +++ b/notebook/agentchat_custom_model.ipynb @@ -210,7 +210,7 @@ "source": [ "## Set your API Endpoint\n", "\n", - "The [`config_list_from_json`](https://microsoft.github.io/autogen/docs/reference/oai/openai_utils#config_list_from_json) function loads a list of configurations from an environment variable or a json file.\n", + "The [`config_list_from_json`](https://autogen-ai.github.io/autogen/docs/reference/oai/openai_utils#config_list_from_json) function loads a list of configurations from an environment variable or a json file.\n", "\n", "It first looks for an environment variable of a specified name (\"OAI_CONFIG_LIST\" in this example), which needs to be a valid json string. If that variable is not found, it looks for a json file with the same name. It filters the configs by models (you can filter by other keys as well).\n", "\n", diff --git a/notebook/agentchat_databricks_dbrx.ipynb b/notebook/agentchat_databricks_dbrx.ipynb index 8f0c1f8c36b..cc3de76ed64 100644 --- a/notebook/agentchat_databricks_dbrx.ipynb +++ b/notebook/agentchat_databricks_dbrx.ipynb @@ -76,7 +76,7 @@ "source": [ "## Setup DBRX config list\n", "\n", - "See Autogen docs for more inforation on the use of `config_list`: [LLM Configuration](https://microsoft.github.io/autogen/docs/topics/llm_configuration#why-is-it-a-list)" + "See Autogen docs for more inforation on the use of `config_list`: [LLM Configuration](https://autogen-ai.github.io/autogen/docs/topics/llm_configuration#why-is-it-a-list)" ] }, { diff --git a/notebook/agentchat_function_call.ipynb b/notebook/agentchat_function_call.ipynb index ecac21d66c4..d9317f59de2 100644 --- a/notebook/agentchat_function_call.ipynb +++ b/notebook/agentchat_function_call.ipynb @@ -38,7 +38,7 @@ "source": [ "## Set your API Endpoint\n", "\n", - "The [`config_list_from_json`](https://microsoft.github.io/autogen/docs/reference/oai/openai_utils#config_list_from_json) function loads a list of configurations from an environment variable or a json file." + "The [`config_list_from_json`](https://autogen-ai.github.io/autogen/docs/reference/oai/openai_utils#config_list_from_json) function loads a list of configurations from an environment variable or a json file." ] }, { diff --git a/notebook/agentchat_groupchat_stateflow.ipynb b/notebook/agentchat_groupchat_stateflow.ipynb index 6a920b61f0b..969bbca5109 100644 --- a/notebook/agentchat_groupchat_stateflow.ipynb +++ b/notebook/agentchat_groupchat_stateflow.ipynb @@ -62,7 +62,7 @@ "## A workflow for research\n", "\n", "
\n", - " \"SF_Example_1\"\n", " \n", "
\n", diff --git a/notebook/agentchat_microsoft_fabric.ipynb b/notebook/agentchat_microsoft_fabric.ipynb index d063b170cb1..5ce3321d609 100644 --- a/notebook/agentchat_microsoft_fabric.ipynb +++ b/notebook/agentchat_microsoft_fabric.ipynb @@ -404,7 +404,7 @@ "### Example 2\n", "How to use `AssistantAgent` and `RetrieveUserProxyAgent` to do Retrieval Augmented Generation (RAG) for QA and Code Generation.\n", "\n", - "Check out this [blog](https://microsoft.github.io/autogen/blog/2023/10/18/RetrieveChat) for more details." + "Check out this [blog](https://autogen-ai.github.io/autogen/blog/2023/10/18/RetrieveChat) for more details." ] }, { @@ -2925,7 +2925,7 @@ "### Example 3\n", "How to use `MultimodalConversableAgent` to chat with images.\n", "\n", - "Check out this [blog](https://microsoft.github.io/autogen/blog/2023/11/06/LMM-Agent) for more details." + "Check out this [blog](https://autogen-ai.github.io/autogen/blog/2023/11/06/LMM-Agent) for more details." ] }, { diff --git a/notebook/agenteval_cq_math.ipynb b/notebook/agenteval_cq_math.ipynb index c791bc9e9c0..d13eec50be5 100644 --- a/notebook/agenteval_cq_math.ipynb +++ b/notebook/agenteval_cq_math.ipynb @@ -15,7 +15,7 @@ "\n", "- `quantify_criteria`: This function quantifies the performance of any sample task based on the criteria generated in the `generate_criteria` step in the following way: $(c_1=a_1, \\dots, c_n=a_n)$\n", "\n", - "![AgentEval](../website/blog/2023-11-20-AgentEval/img/agenteval-CQ.png)\n", + "![AgentEval](https://media.githubusercontent.com/media/autogen-ai/autogen/main/website/blog/2023-11-20-AgentEval/img/agenteval-CQ.png)\n", "\n", "For more detailed explanations, please refer to the accompanying [blog post](https://autogen-ai.github.io/autogen/blog/2023/11/20/AgentEval)\n", "\n", diff --git a/notebook/oai_chatgpt_gpt4.ipynb b/notebook/oai_chatgpt_gpt4.ipynb index 902125191ec..73b3e908bc5 100644 --- a/notebook/oai_chatgpt_gpt4.ipynb +++ b/notebook/oai_chatgpt_gpt4.ipynb @@ -17,6 +17,11 @@ } }, "source": [ + "Contributions to this project, i.e., https://github.com/autogen-ai/autogen, are licensed under the Apache License, Version 2.0 (Apache-2.0).\n", + "Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai\n", + "SPDX-License-Identifier: Apache-2.0\n", + "Portions derived from https://github.com/microsoft/autogen under the MIT License.\n", + "SPDX-License-Identifier: MIT\n", "Copyright (c) Microsoft Corporation. All rights reserved. \n", "\n", "Licensed under the MIT License.\n", @@ -93,7 +98,7 @@ "source": [ "### Set your API Endpoint\n", "\n", - "The [`config_list_openai_aoai`](https://microsoft.github.io/autogen/docs/reference/oai/openai_utils#config_list_openai_aoai) function tries to create a list of Azure OpenAI endpoints and OpenAI endpoints. It assumes the api keys and api bases are stored in the corresponding environment variables or local txt files:\n", + "The [`config_list_openai_aoai`](https://autogen-ai.github.io/autogen/docs/reference/oai/openai_utils#config_list_openai_aoai) function tries to create a list of Azure OpenAI endpoints and OpenAI endpoints. It assumes the api keys and api bases are stored in the corresponding environment variables or local txt files:\n", "\n", "- OpenAI API key: os.environ[\"OPENAI_API_KEY\"] or `openai_api_key_file=\"key_openai.txt\"`.\n", "- Azure OpenAI API key: os.environ[\"AZURE_OPENAI_API_KEY\"] or `aoai_api_key_file=\"key_aoai.txt\"`. Multiple keys can be stored, one per line.\n", diff --git a/notebook/oai_completion.ipynb b/notebook/oai_completion.ipynb index 2581555e8b2..b62b50422f2 100644 --- a/notebook/oai_completion.ipynb +++ b/notebook/oai_completion.ipynb @@ -17,6 +17,11 @@ } }, "source": [ + "Contributions to this project, i.e., https://github.com/autogen-ai/autogen, are licensed under the Apache License, Version 2.0 (Apache-2.0).\n", + "Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai\n", + "SPDX-License-Identifier: Apache-2.0\n", + "Portions derived from https://github.com/microsoft/autogen under the MIT License.\n", + "SPDX-License-Identifier: MIT\n", "Copyright (c) Microsoft Corporation. All rights reserved. \n", "\n", "Licensed under the MIT License.\n", diff --git a/samples/apps/auto-anny/agent_utils.py b/samples/apps/auto-anny/agent_utils.py index 2cbb97c949e..acaaf7e44f9 100644 --- a/samples/apps/auto-anny/agent_utils.py +++ b/samples/apps/auto-anny/agent_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from autogen import AssistantAgent, UserProxyAgent, config_list_from_json diff --git a/samples/apps/auto-anny/bot.py b/samples/apps/auto-anny/bot.py index 6b901c339c9..569096a23b4 100644 --- a/samples/apps/auto-anny/bot.py +++ b/samples/apps/auto-anny/bot.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import logging import logging.handlers import os diff --git a/samples/apps/autogen-studio/autogenstudio/__init__.py b/samples/apps/autogen-studio/autogenstudio/__init__.py index acc477c5cd8..b374cf7991b 100644 --- a/samples/apps/autogen-studio/autogenstudio/__init__.py +++ b/samples/apps/autogen-studio/autogenstudio/__init__.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from .chatmanager import * from .datamodel import * from .version import __version__ diff --git a/samples/apps/autogen-studio/autogenstudio/chatmanager.py b/samples/apps/autogen-studio/autogenstudio/chatmanager.py index 84b85673f07..134f6af6f61 100644 --- a/samples/apps/autogen-studio/autogenstudio/chatmanager.py +++ b/samples/apps/autogen-studio/autogenstudio/chatmanager.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import asyncio import json import os diff --git a/samples/apps/autogen-studio/autogenstudio/cli.py b/samples/apps/autogen-studio/autogenstudio/cli.py index 42642bcd68a..89b3eff119e 100644 --- a/samples/apps/autogen-studio/autogenstudio/cli.py +++ b/samples/apps/autogen-studio/autogenstudio/cli.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import os from typing import Optional diff --git a/samples/apps/autogen-studio/autogenstudio/database/__init__.py b/samples/apps/autogen-studio/autogenstudio/database/__init__.py index 0518c24ba4f..58e96ef73be 100644 --- a/samples/apps/autogen-studio/autogenstudio/database/__init__.py +++ b/samples/apps/autogen-studio/autogenstudio/database/__init__.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT # from .dbmanager import * from .dbmanager import * from .utils import * diff --git a/samples/apps/autogen-studio/autogenstudio/database/dbmanager.py b/samples/apps/autogen-studio/autogenstudio/database/dbmanager.py index 00d3714b63f..29d88d8d05c 100644 --- a/samples/apps/autogen-studio/autogenstudio/database/dbmanager.py +++ b/samples/apps/autogen-studio/autogenstudio/database/dbmanager.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from datetime import datetime from typing import Optional diff --git a/samples/apps/autogen-studio/autogenstudio/database/migrations/env.py b/samples/apps/autogen-studio/autogenstudio/database/migrations/env.py index 1431492ad91..344a3f9aeb8 100644 --- a/samples/apps/autogen-studio/autogenstudio/database/migrations/env.py +++ b/samples/apps/autogen-studio/autogenstudio/database/migrations/env.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import os from logging.config import fileConfig diff --git a/samples/apps/autogen-studio/autogenstudio/database/utils.py b/samples/apps/autogen-studio/autogenstudio/database/utils.py index c14003b414c..56aaaf515cc 100644 --- a/samples/apps/autogen-studio/autogenstudio/database/utils.py +++ b/samples/apps/autogen-studio/autogenstudio/database/utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT # from .util import get_app_root import os import time diff --git a/samples/apps/autogen-studio/autogenstudio/datamodel.py b/samples/apps/autogen-studio/autogenstudio/datamodel.py index 3dbd46c357e..b7c55707dce 100644 --- a/samples/apps/autogen-studio/autogenstudio/datamodel.py +++ b/samples/apps/autogen-studio/autogenstudio/datamodel.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from datetime import datetime from enum import Enum from typing import Any, Callable, Dict, List, Literal, Optional, Union diff --git a/samples/apps/autogen-studio/autogenstudio/utils/__init__.py b/samples/apps/autogen-studio/autogenstudio/utils/__init__.py index 16281fe0b66..7281ae9cd67 100644 --- a/samples/apps/autogen-studio/autogenstudio/utils/__init__.py +++ b/samples/apps/autogen-studio/autogenstudio/utils/__init__.py @@ -1 +1,7 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from .utils import * diff --git a/samples/apps/autogen-studio/autogenstudio/utils/utils.py b/samples/apps/autogen-studio/autogenstudio/utils/utils.py index ed533ec3883..cc8dddd63cb 100644 --- a/samples/apps/autogen-studio/autogenstudio/utils/utils.py +++ b/samples/apps/autogen-studio/autogenstudio/utils/utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import base64 import hashlib import os diff --git a/samples/apps/autogen-studio/autogenstudio/version.py b/samples/apps/autogen-studio/autogenstudio/version.py index bafe37f75b1..1e8d63038ef 100644 --- a/samples/apps/autogen-studio/autogenstudio/version.py +++ b/samples/apps/autogen-studio/autogenstudio/version.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT VERSION = "0.0.56rc9" __version__ = VERSION APP_NAME = "autogenstudio" diff --git a/samples/apps/autogen-studio/autogenstudio/web/app.py b/samples/apps/autogen-studio/autogenstudio/web/app.py index 76ab8139ebc..6d8be4215a4 100644 --- a/samples/apps/autogen-studio/autogenstudio/web/app.py +++ b/samples/apps/autogen-studio/autogenstudio/web/app.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import asyncio import os import queue diff --git a/samples/apps/autogen-studio/autogenstudio/workflowmanager.py b/samples/apps/autogen-studio/autogenstudio/workflowmanager.py index 8b41caab428..d408bed5896 100644 --- a/samples/apps/autogen-studio/autogenstudio/workflowmanager.py +++ b/samples/apps/autogen-studio/autogenstudio/workflowmanager.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import os from datetime import datetime from typing import Any, Dict, List, Optional, Union diff --git a/samples/apps/autogen-studio/setup.py b/samples/apps/autogen-studio/setup.py index 606849326a4..0666adb2cc1 100644 --- a/samples/apps/autogen-studio/setup.py +++ b/samples/apps/autogen-studio/setup.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from setuptools import setup setup() diff --git a/samples/apps/cap/py/autogencap/Actor.py b/samples/apps/cap/py/autogencap/Actor.py index 778fd7634c2..c197dc3ece0 100644 --- a/samples/apps/cap/py/autogencap/Actor.py +++ b/samples/apps/cap/py/autogencap/Actor.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import threading import traceback diff --git a/samples/apps/cap/py/autogencap/ActorConnector.py b/samples/apps/cap/py/autogencap/ActorConnector.py index 1595f641fc8..c05ff5e4a5f 100644 --- a/samples/apps/cap/py/autogencap/ActorConnector.py +++ b/samples/apps/cap/py/autogencap/ActorConnector.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT # Agent_Sender takes a zmq context, Topic and creates a # socket that can publish to that topic. It exposes this functionality # using send_msg method diff --git a/samples/apps/cap/py/autogencap/Broker.py b/samples/apps/cap/py/autogencap/Broker.py index 2fd430d1bc7..887344172e1 100644 --- a/samples/apps/cap/py/autogencap/Broker.py +++ b/samples/apps/cap/py/autogencap/Broker.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import threading import time diff --git a/samples/apps/cap/py/autogencap/Config.py b/samples/apps/cap/py/autogencap/Config.py index 5584a8d29cb..1ee4275f84b 100644 --- a/samples/apps/cap/py/autogencap/Config.py +++ b/samples/apps/cap/py/autogencap/Config.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT # Set the current log level LOG_LEVEL = 0 IGNORED_LOG_CONTEXTS = [] diff --git a/samples/apps/cap/py/autogencap/DebugLog.py b/samples/apps/cap/py/autogencap/DebugLog.py index f8a3f209ee3..f6205ddc370 100644 --- a/samples/apps/cap/py/autogencap/DebugLog.py +++ b/samples/apps/cap/py/autogencap/DebugLog.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import datetime import threading diff --git a/samples/apps/cap/py/autogencap/DirectorySvc.py b/samples/apps/cap/py/autogencap/DirectorySvc.py index 6057558c0b2..db0f44e389a 100644 --- a/samples/apps/cap/py/autogencap/DirectorySvc.py +++ b/samples/apps/cap/py/autogencap/DirectorySvc.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import re import threading import time diff --git a/samples/apps/cap/py/autogencap/actor_runtime.py b/samples/apps/cap/py/autogencap/actor_runtime.py index 027b2090587..090de9c0d7a 100644 --- a/samples/apps/cap/py/autogencap/actor_runtime.py +++ b/samples/apps/cap/py/autogencap/actor_runtime.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from abc import ABC, abstractmethod from typing import List diff --git a/samples/apps/cap/py/autogencap/ag_adapter/AG2CAP.py b/samples/apps/cap/py/autogencap/ag_adapter/AG2CAP.py index 4b5f79aefd8..5f5b5d7a44b 100644 --- a/samples/apps/cap/py/autogencap/ag_adapter/AG2CAP.py +++ b/samples/apps/cap/py/autogencap/ag_adapter/AG2CAP.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import time from typing import Callable, Dict, List, Optional, Union diff --git a/samples/apps/cap/py/autogencap/ag_adapter/AGActor.py b/samples/apps/cap/py/autogencap/ag_adapter/AGActor.py index 6bd804e33e9..ee3b07f3caf 100644 --- a/samples/apps/cap/py/autogencap/ag_adapter/AGActor.py +++ b/samples/apps/cap/py/autogencap/ag_adapter/AGActor.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import zmq from autogencap.Actor import Actor diff --git a/samples/apps/cap/py/autogencap/ag_adapter/AutoGenConnector.py b/samples/apps/cap/py/autogencap/ag_adapter/AutoGenConnector.py index 47b70ea7a13..74e656694b1 100644 --- a/samples/apps/cap/py/autogencap/ag_adapter/AutoGenConnector.py +++ b/samples/apps/cap/py/autogencap/ag_adapter/AutoGenConnector.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import json from typing import Dict, Optional, Union diff --git a/samples/apps/cap/py/autogencap/ag_adapter/CAP2AG.py b/samples/apps/cap/py/autogencap/ag_adapter/CAP2AG.py index 0dd3b7be5ce..775fd263f50 100644 --- a/samples/apps/cap/py/autogencap/ag_adapter/CAP2AG.py +++ b/samples/apps/cap/py/autogencap/ag_adapter/CAP2AG.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import json from enum import Enum from typing import Optional diff --git a/samples/apps/cap/py/autogencap/ag_adapter/CAPGroupChat.py b/samples/apps/cap/py/autogencap/ag_adapter/CAPGroupChat.py index caf2a11a66f..16b47fe8de7 100644 --- a/samples/apps/cap/py/autogencap/ag_adapter/CAPGroupChat.py +++ b/samples/apps/cap/py/autogencap/ag_adapter/CAPGroupChat.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import List from autogen import Agent, AssistantAgent, GroupChat diff --git a/samples/apps/cap/py/autogencap/ag_adapter/CAPGroupChatManager.py b/samples/apps/cap/py/autogencap/ag_adapter/CAPGroupChatManager.py index e71e6aecddf..2fbec95aab8 100644 --- a/samples/apps/cap/py/autogencap/ag_adapter/CAPGroupChatManager.py +++ b/samples/apps/cap/py/autogencap/ag_adapter/CAPGroupChatManager.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import time from autogen import GroupChatManager diff --git a/samples/apps/cap/py/autogencap/ag_adapter/CAPPair.py b/samples/apps/cap/py/autogencap/ag_adapter/CAPPair.py index 4a87a742b5d..c861bf07a07 100644 --- a/samples/apps/cap/py/autogencap/ag_adapter/CAPPair.py +++ b/samples/apps/cap/py/autogencap/ag_adapter/CAPPair.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from autogencap.ag_adapter.CAP2AG import CAP2AG diff --git a/samples/apps/cap/py/autogencap/ag_adapter/agent.py b/samples/apps/cap/py/autogencap/ag_adapter/agent.py index 219bb7297c1..0a22443b212 100644 --- a/samples/apps/cap/py/autogencap/ag_adapter/agent.py +++ b/samples/apps/cap/py/autogencap/ag_adapter/agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import time from autogen import ConversableAgent diff --git a/samples/apps/cap/py/autogencap/constants.py b/samples/apps/cap/py/autogencap/constants.py index 217fcf45e61..013c7433d60 100644 --- a/samples/apps/cap/py/autogencap/constants.py +++ b/samples/apps/cap/py/autogencap/constants.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT Termination_Topic: str = "Termination" Directory_Svc_Topic: str = "Directory_Svc" ZMQ_Runtime: str = "ZMQ" diff --git a/samples/apps/cap/py/autogencap/proto/Autogen_pb2.py b/samples/apps/cap/py/autogencap/proto/Autogen_pb2.py index 5172d2432bd..c529ecb885b 100644 --- a/samples/apps/cap/py/autogencap/proto/Autogen_pb2.py +++ b/samples/apps/cap/py/autogencap/proto/Autogen_pb2.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: Autogen.proto diff --git a/samples/apps/cap/py/autogencap/proto/CAP_pb2.py b/samples/apps/cap/py/autogencap/proto/CAP_pb2.py index 59662102d6a..f31517fef93 100644 --- a/samples/apps/cap/py/autogencap/proto/CAP_pb2.py +++ b/samples/apps/cap/py/autogencap/proto/CAP_pb2.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: CAP.proto diff --git a/samples/apps/cap/py/autogencap/runtime_factory.py b/samples/apps/cap/py/autogencap/runtime_factory.py index 77fb091a248..0afd64e5d0c 100644 --- a/samples/apps/cap/py/autogencap/runtime_factory.py +++ b/samples/apps/cap/py/autogencap/runtime_factory.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from autogencap.actor_runtime import IRuntime from autogencap.constants import ZMQ_Runtime from autogencap.DebugLog import Error diff --git a/samples/apps/cap/py/autogencap/setup.py b/samples/apps/cap/py/autogencap/setup.py index 5fd1dcfe6c2..5462b097f50 100644 --- a/samples/apps/cap/py/autogencap/setup.py +++ b/samples/apps/cap/py/autogencap/setup.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from setuptools import find_packages, setup setup( diff --git a/samples/apps/cap/py/autogencap/utility.py b/samples/apps/cap/py/autogencap/utility.py index 2083e565ffe..473adeb93e6 100644 --- a/samples/apps/cap/py/autogencap/utility.py +++ b/samples/apps/cap/py/autogencap/utility.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from autogencap.DebugLog import Error from autogencap.proto.CAP_pb2 import Error as ErrorMsg from autogencap.proto.CAP_pb2 import ErrorCode diff --git a/samples/apps/cap/py/autogencap/zmq_runtime.py b/samples/apps/cap/py/autogencap/zmq_runtime.py index a8074fb48d3..a21d86b9e9b 100644 --- a/samples/apps/cap/py/autogencap/zmq_runtime.py +++ b/samples/apps/cap/py/autogencap/zmq_runtime.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import time from typing import List diff --git a/samples/apps/cap/py/demo/AGDemo.py b/samples/apps/cap/py/demo/AGDemo.py index b5f27f19e79..f756df4c5d5 100644 --- a/samples/apps/cap/py/demo/AGDemo.py +++ b/samples/apps/cap/py/demo/AGDemo.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from autogen import AssistantAgent, UserProxyAgent, config_list_from_json diff --git a/samples/apps/cap/py/demo/AGGroupChatDemo.py b/samples/apps/cap/py/demo/AGGroupChatDemo.py index de7006e991a..fc406ac7c41 100644 --- a/samples/apps/cap/py/demo/AGGroupChatDemo.py +++ b/samples/apps/cap/py/demo/AGGroupChatDemo.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from autogen import AssistantAgent, GroupChat, GroupChatManager, UserProxyAgent, config_list_from_json diff --git a/samples/apps/cap/py/demo/App.py b/samples/apps/cap/py/demo/App.py index 19987ab75ca..5a78cbbd073 100644 --- a/samples/apps/cap/py/demo/App.py +++ b/samples/apps/cap/py/demo/App.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT """ Demo App """ diff --git a/samples/apps/cap/py/demo/AppAgents.py b/samples/apps/cap/py/demo/AppAgents.py index f13e4b471fd..2d5f2b95fdb 100644 --- a/samples/apps/cap/py/demo/AppAgents.py +++ b/samples/apps/cap/py/demo/AppAgents.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT """ This file contains the implementation of various agents used in the application. Each agent represents a different role and knows how to connect to external systems diff --git a/samples/apps/cap/py/demo/CAPAutGenGroupDemo.py b/samples/apps/cap/py/demo/CAPAutGenGroupDemo.py index 93a28c753ca..75960999abd 100644 --- a/samples/apps/cap/py/demo/CAPAutGenGroupDemo.py +++ b/samples/apps/cap/py/demo/CAPAutGenGroupDemo.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from autogencap.ag_adapter.CAPGroupChat import CAPGroupChat from autogencap.ag_adapter.CAPGroupChatManager import CAPGroupChatManager from autogencap.DebugLog import Info diff --git a/samples/apps/cap/py/demo/CAPAutoGenPairDemo.py b/samples/apps/cap/py/demo/CAPAutoGenPairDemo.py index 77323ddf870..ef819779772 100644 --- a/samples/apps/cap/py/demo/CAPAutoGenPairDemo.py +++ b/samples/apps/cap/py/demo/CAPAutoGenPairDemo.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import time import autogencap.DebugLog as DebugLog diff --git a/samples/apps/cap/py/demo/ComplexActorDemo.py b/samples/apps/cap/py/demo/ComplexActorDemo.py index b82d457cc67..f01529d9e47 100644 --- a/samples/apps/cap/py/demo/ComplexActorDemo.py +++ b/samples/apps/cap/py/demo/ComplexActorDemo.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import time from AppAgents import FidelityAgent, FinancialPlannerAgent, PersonalAssistant, QuantAgent, RiskManager diff --git a/samples/apps/cap/py/demo/RemoteAGDemo.py b/samples/apps/cap/py/demo/RemoteAGDemo.py index 5e7f2f0f1ef..6905ec87ac1 100644 --- a/samples/apps/cap/py/demo/RemoteAGDemo.py +++ b/samples/apps/cap/py/demo/RemoteAGDemo.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT # Start Broker & Assistant # Start UserProxy - Let it run diff --git a/samples/apps/cap/py/demo/SimpleActorDemo.py b/samples/apps/cap/py/demo/SimpleActorDemo.py index afc39829726..a920fc4dff6 100644 --- a/samples/apps/cap/py/demo/SimpleActorDemo.py +++ b/samples/apps/cap/py/demo/SimpleActorDemo.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from AppAgents import GreeterAgent from autogencap.runtime_factory import RuntimeFactory diff --git a/samples/apps/cap/py/demo/_paths.py b/samples/apps/cap/py/demo/_paths.py index 6627383aa75..bbcb044a1f3 100644 --- a/samples/apps/cap/py/demo/_paths.py +++ b/samples/apps/cap/py/demo/_paths.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT # Add autogencap to system path in case autogencap is not pip installed # Since this library has not been published to PyPi, it is not easy to install using pip import os diff --git a/samples/apps/cap/py/demo/list_agents.py b/samples/apps/cap/py/demo/list_agents.py index ca02006df2b..357277a02a8 100644 --- a/samples/apps/cap/py/demo/list_agents.py +++ b/samples/apps/cap/py/demo/list_agents.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import time from typing import List diff --git a/samples/apps/cap/py/demo/single_threaded.py b/samples/apps/cap/py/demo/single_threaded.py index f4c1fdfb633..c19146cc893 100644 --- a/samples/apps/cap/py/demo/single_threaded.py +++ b/samples/apps/cap/py/demo/single_threaded.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import _paths from AppAgents import GreeterAgent from autogencap.DebugLog import Error diff --git a/samples/apps/cap/py/demo/standalone/Broker.py b/samples/apps/cap/py/demo/standalone/Broker.py index f61064eb8e5..cf2e358ea7f 100644 --- a/samples/apps/cap/py/demo/standalone/Broker.py +++ b/samples/apps/cap/py/demo/standalone/Broker.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import _paths from autogencap.Broker import main diff --git a/samples/apps/cap/py/demo/standalone/UserProxy.py b/samples/apps/cap/py/demo/standalone/UserProxy.py index c2eb4bf4238..a6ea7c3d91a 100644 --- a/samples/apps/cap/py/demo/standalone/UserProxy.py +++ b/samples/apps/cap/py/demo/standalone/UserProxy.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import time import _paths diff --git a/samples/apps/cap/py/demo/standalone/_paths.py b/samples/apps/cap/py/demo/standalone/_paths.py index b61d8f82d7b..bb80e64ec7f 100644 --- a/samples/apps/cap/py/demo/standalone/_paths.py +++ b/samples/apps/cap/py/demo/standalone/_paths.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT # Add autogencap to system path in case autogencap is not pip installed # Since this library has not been published to PyPi, it is not easy to install using pip import os diff --git a/samples/apps/cap/py/demo/standalone/assistant.py b/samples/apps/cap/py/demo/standalone/assistant.py index 162071e6089..d8b44d2cd0f 100644 --- a/samples/apps/cap/py/demo/standalone/assistant.py +++ b/samples/apps/cap/py/demo/standalone/assistant.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import time import _paths diff --git a/samples/apps/cap/py/demo/standalone/directory_svc.py b/samples/apps/cap/py/demo/standalone/directory_svc.py index 3320b96e573..06da0280c60 100644 --- a/samples/apps/cap/py/demo/standalone/directory_svc.py +++ b/samples/apps/cap/py/demo/standalone/directory_svc.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import _paths from autogencap.DirectorySvc import main diff --git a/samples/apps/cap/py/demo/standalone/user_proxy.py b/samples/apps/cap/py/demo/standalone/user_proxy.py index d1183a7b7a6..ec417fd026e 100644 --- a/samples/apps/cap/py/demo/standalone/user_proxy.py +++ b/samples/apps/cap/py/demo/standalone/user_proxy.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import time import _paths diff --git a/samples/apps/cap/py/demo/zmq_tests.py b/samples/apps/cap/py/demo/zmq_tests.py index 8550ce6c2c8..4e19ce53073 100644 --- a/samples/apps/cap/py/demo/zmq_tests.py +++ b/samples/apps/cap/py/demo/zmq_tests.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import sys import time from typing import Any, Dict diff --git a/samples/apps/promptflow-autogen/agentchat_nestedchat.py b/samples/apps/promptflow-autogen/agentchat_nestedchat.py index 561d8c11e16..3ed7ed1effd 100644 --- a/samples/apps/promptflow-autogen/agentchat_nestedchat.py +++ b/samples/apps/promptflow-autogen/agentchat_nestedchat.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import json from typing import Any, Dict, List diff --git a/samples/apps/promptflow-autogen/autogen_stateflow.py b/samples/apps/promptflow-autogen/autogen_stateflow.py index 81ffddafae2..d909269d596 100644 --- a/samples/apps/promptflow-autogen/autogen_stateflow.py +++ b/samples/apps/promptflow-autogen/autogen_stateflow.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import json import tempfile from typing import Any, Dict, List diff --git a/samples/apps/promptflow-autogen/autogen_task.py b/samples/apps/promptflow-autogen/autogen_task.py index cf2babb0363..32f6571d6ab 100644 --- a/samples/apps/promptflow-autogen/autogen_task.py +++ b/samples/apps/promptflow-autogen/autogen_task.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from agentchat_nestedchat import AgNestedChat from autogen_stateflow import AgStateFlow from promptflow.connections import AzureOpenAIConnection, CustomConnection diff --git a/samples/apps/websockets/application.py b/samples/apps/websockets/application.py index fe75d135330..0320254e3af 100755 --- a/samples/apps/websockets/application.py +++ b/samples/apps/websockets/application.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python import asyncio diff --git a/samples/apps/websockets/setup.py b/samples/apps/websockets/setup.py index 8410d0afd55..18475980480 100755 --- a/samples/apps/websockets/setup.py +++ b/samples/apps/websockets/setup.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python # Equivalent to running the basj script below, but with an additional check if the files was moved: diff --git a/samples/simple_chat.py b/samples/simple_chat.py index 44682ed4ac5..05ced77cc85 100644 --- a/samples/simple_chat.py +++ b/samples/simple_chat.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from autogen import ConversableAgent, UserProxyAgent, config_list_from_json diff --git a/samples/tools/autogenbench/autogenbench/__init__.py b/samples/tools/autogenbench/autogenbench/__init__.py index 58f3ace6c03..7452f2dd68c 100644 --- a/samples/tools/autogenbench/autogenbench/__init__.py +++ b/samples/tools/autogenbench/autogenbench/__init__.py @@ -1 +1,7 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from .version import __version__ diff --git a/samples/tools/autogenbench/autogenbench/__main__.py b/samples/tools/autogenbench/autogenbench/__main__.py index 9ae637f13cd..5d8e715dc72 100644 --- a/samples/tools/autogenbench/autogenbench/__main__.py +++ b/samples/tools/autogenbench/autogenbench/__main__.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from .cli import main if __name__ == "__main__": diff --git a/samples/tools/autogenbench/autogenbench/cli.py b/samples/tools/autogenbench/autogenbench/cli.py index 8733bb915fb..b1886956d8c 100644 --- a/samples/tools/autogenbench/autogenbench/cli.py +++ b/samples/tools/autogenbench/autogenbench/cli.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import sys from .clone_cmd import clone_cli diff --git a/samples/tools/autogenbench/autogenbench/clone_cmd.py b/samples/tools/autogenbench/autogenbench/clone_cmd.py index 553ef108e61..c8c7eea0b89 100644 --- a/samples/tools/autogenbench/autogenbench/clone_cmd.py +++ b/samples/tools/autogenbench/autogenbench/clone_cmd.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import argparse import json import os diff --git a/samples/tools/autogenbench/autogenbench/load_module.py b/samples/tools/autogenbench/autogenbench/load_module.py index fc4e14ff9f5..3e37b50b477 100644 --- a/samples/tools/autogenbench/autogenbench/load_module.py +++ b/samples/tools/autogenbench/autogenbench/load_module.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import importlib.util import os import sys diff --git a/samples/tools/autogenbench/autogenbench/run_cmd.py b/samples/tools/autogenbench/autogenbench/run_cmd.py index 9e3c48ce562..772825a7ec0 100644 --- a/samples/tools/autogenbench/autogenbench/run_cmd.py +++ b/samples/tools/autogenbench/autogenbench/run_cmd.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import argparse import errno import json diff --git a/samples/tools/autogenbench/autogenbench/tabulate_cmd.py b/samples/tools/autogenbench/autogenbench/tabulate_cmd.py index b93125cfca0..553f5de0ac2 100644 --- a/samples/tools/autogenbench/autogenbench/tabulate_cmd.py +++ b/samples/tools/autogenbench/autogenbench/tabulate_cmd.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import argparse import os import sys diff --git a/samples/tools/autogenbench/autogenbench/template/testbed_utils.py b/samples/tools/autogenbench/autogenbench/template/testbed_utils.py index bce42a625b2..77b247c54a4 100644 --- a/samples/tools/autogenbench/autogenbench/template/testbed_utils.py +++ b/samples/tools/autogenbench/autogenbench/template/testbed_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import json import os from datetime import datetime diff --git a/samples/tools/autogenbench/autogenbench/version.py b/samples/tools/autogenbench/autogenbench/version.py index 27fdca497c3..3b40959f37d 100644 --- a/samples/tools/autogenbench/autogenbench/version.py +++ b/samples/tools/autogenbench/autogenbench/version.py @@ -1 +1,7 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT __version__ = "0.0.3" diff --git a/samples/tools/autogenbench/scenarios/AutoGPT/Challenges/10_password_generator/custom_python/test_pwd.py b/samples/tools/autogenbench/scenarios/AutoGPT/Challenges/10_password_generator/custom_python/test_pwd.py index 86ce911ab8b..29dc2b8d725 100644 --- a/samples/tools/autogenbench/scenarios/AutoGPT/Challenges/10_password_generator/custom_python/test_pwd.py +++ b/samples/tools/autogenbench/scenarios/AutoGPT/Challenges/10_password_generator/custom_python/test_pwd.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import unittest import password_generator diff --git a/samples/tools/autogenbench/scenarios/AutoGPT/Challenges/11_file_organizer/custom_python/test_file_organize.py b/samples/tools/autogenbench/scenarios/AutoGPT/Challenges/11_file_organizer/custom_python/test_file_organize.py index fa39119eda0..258c496fd2f 100644 --- a/samples/tools/autogenbench/scenarios/AutoGPT/Challenges/11_file_organizer/custom_python/test_file_organize.py +++ b/samples/tools/autogenbench/scenarios/AutoGPT/Challenges/11_file_organizer/custom_python/test_file_organize.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import os import subprocess import tempfile diff --git a/samples/tools/autogenbench/scenarios/AutoGPT/Challenges/12_url_shortener/custom_python/test_url_shorten.py b/samples/tools/autogenbench/scenarios/AutoGPT/Challenges/12_url_shortener/custom_python/test_url_shorten.py index c3daffa80b0..927436d77f4 100644 --- a/samples/tools/autogenbench/scenarios/AutoGPT/Challenges/12_url_shortener/custom_python/test_url_shorten.py +++ b/samples/tools/autogenbench/scenarios/AutoGPT/Challenges/12_url_shortener/custom_python/test_url_shorten.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import unittest from url_shortener import retrieve_url, shorten_url diff --git a/samples/tools/autogenbench/scenarios/AutoGPT/Challenges/13_tic_tac_toe/custom_python/test_tictactoe.py b/samples/tools/autogenbench/scenarios/AutoGPT/Challenges/13_tic_tac_toe/custom_python/test_tictactoe.py index 94b77820894..a92bccbbf37 100644 --- a/samples/tools/autogenbench/scenarios/AutoGPT/Challenges/13_tic_tac_toe/custom_python/test_tictactoe.py +++ b/samples/tools/autogenbench/scenarios/AutoGPT/Challenges/13_tic_tac_toe/custom_python/test_tictactoe.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import subprocess import pytest diff --git a/samples/tools/autogenbench/scenarios/AutoGPT/Challenges/9_three_sum/custom_python/test_three_sum.py b/samples/tools/autogenbench/scenarios/AutoGPT/Challenges/9_three_sum/custom_python/test_three_sum.py index 0cc4811f44a..0203b0eea45 100644 --- a/samples/tools/autogenbench/scenarios/AutoGPT/Challenges/9_three_sum/custom_python/test_three_sum.py +++ b/samples/tools/autogenbench/scenarios/AutoGPT/Challenges/9_three_sum/custom_python/test_three_sum.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT # mypy: ignore-errors from typing import List diff --git a/samples/tools/autogenbench/scenarios/AutoGPT/Scripts/custom_tabulate.py b/samples/tools/autogenbench/scenarios/AutoGPT/Scripts/custom_tabulate.py index 7c689cdfedb..fe86db695cc 100644 --- a/samples/tools/autogenbench/scenarios/AutoGPT/Scripts/custom_tabulate.py +++ b/samples/tools/autogenbench/scenarios/AutoGPT/Scripts/custom_tabulate.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import os import sys diff --git a/samples/tools/autogenbench/scenarios/AutoGPT/Scripts/init_tasks.py b/samples/tools/autogenbench/scenarios/AutoGPT/Scripts/init_tasks.py index a5c7556f337..8621d387cc7 100644 --- a/samples/tools/autogenbench/scenarios/AutoGPT/Scripts/init_tasks.py +++ b/samples/tools/autogenbench/scenarios/AutoGPT/Scripts/init_tasks.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT # # Run this file to download the human_eval dataset, and create a corresponding testbed scenario: # (default: ../scenarios/human_eval_two_agents_gpt4.jsonl and ./scenarios/human_eval_two_agents_gpt35.jsonl) diff --git a/samples/tools/autogenbench/scenarios/AutoGPT/Templates/TwoAgents/check.py b/samples/tools/autogenbench/scenarios/AutoGPT/Templates/TwoAgents/check.py index 9bd289d1588..5b6bc111cb7 100644 --- a/samples/tools/autogenbench/scenarios/AutoGPT/Templates/TwoAgents/check.py +++ b/samples/tools/autogenbench/scenarios/AutoGPT/Templates/TwoAgents/check.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT # Disable ruff linter for incomplete template files # ruff: noqa: F821 diff --git a/samples/tools/autogenbench/scenarios/AutoGPT/Templates/TwoAgents/scenario.py b/samples/tools/autogenbench/scenarios/AutoGPT/Templates/TwoAgents/scenario.py index 42dcbadbe63..0a272f83346 100644 --- a/samples/tools/autogenbench/scenarios/AutoGPT/Templates/TwoAgents/scenario.py +++ b/samples/tools/autogenbench/scenarios/AutoGPT/Templates/TwoAgents/scenario.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT # We would like to gracefully handle any exception # ruff: noqa: E722 diff --git a/samples/tools/autogenbench/scenarios/Examples/Templates/ThreeAgents/scenario.py b/samples/tools/autogenbench/scenarios/Examples/Templates/ThreeAgents/scenario.py index 526569f6851..f8c2cc9187e 100644 --- a/samples/tools/autogenbench/scenarios/Examples/Templates/ThreeAgents/scenario.py +++ b/samples/tools/autogenbench/scenarios/Examples/Templates/ThreeAgents/scenario.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import json import os diff --git a/samples/tools/autogenbench/scenarios/Examples/Templates/TwoAgents/scenario.py b/samples/tools/autogenbench/scenarios/Examples/Templates/TwoAgents/scenario.py index 4b9f4830434..dfa337f4b9e 100644 --- a/samples/tools/autogenbench/scenarios/Examples/Templates/TwoAgents/scenario.py +++ b/samples/tools/autogenbench/scenarios/Examples/Templates/TwoAgents/scenario.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import json import os diff --git a/samples/tools/autogenbench/scenarios/GAIA/Scripts/custom_tabulate.py b/samples/tools/autogenbench/scenarios/GAIA/Scripts/custom_tabulate.py index 7a76019a3f5..0ca8d4df393 100644 --- a/samples/tools/autogenbench/scenarios/GAIA/Scripts/custom_tabulate.py +++ b/samples/tools/autogenbench/scenarios/GAIA/Scripts/custom_tabulate.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import json import os import re diff --git a/samples/tools/autogenbench/scenarios/GAIA/Scripts/init_tasks.py b/samples/tools/autogenbench/scenarios/GAIA/Scripts/init_tasks.py index 437a24cf9e0..81a1b9b71de 100644 --- a/samples/tools/autogenbench/scenarios/GAIA/Scripts/init_tasks.py +++ b/samples/tools/autogenbench/scenarios/GAIA/Scripts/init_tasks.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT # # Run this file to download the human_eval dataset, and create a corresponding testbed scenario: # (default: ../scenarios/human_eval_two_agents_gpt4.jsonl and ./scenarios/human_eval_two_agents_gpt35.jsonl) diff --git a/samples/tools/autogenbench/scenarios/GAIA/Templates/BasicTwoAgents/scenario.py b/samples/tools/autogenbench/scenarios/GAIA/Templates/BasicTwoAgents/scenario.py index 2ab48934672..51fdce0281a 100644 --- a/samples/tools/autogenbench/scenarios/GAIA/Templates/BasicTwoAgents/scenario.py +++ b/samples/tools/autogenbench/scenarios/GAIA/Templates/BasicTwoAgents/scenario.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import json import os from datetime import datetime diff --git a/samples/tools/autogenbench/scenarios/GAIA/Templates/SocietyOfMind/scenario.py b/samples/tools/autogenbench/scenarios/GAIA/Templates/SocietyOfMind/scenario.py index 337515dc76c..7ff3dd5b842 100644 --- a/samples/tools/autogenbench/scenarios/GAIA/Templates/SocietyOfMind/scenario.py +++ b/samples/tools/autogenbench/scenarios/GAIA/Templates/SocietyOfMind/scenario.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT # ruff: noqa: E722 import copy import json diff --git a/samples/tools/autogenbench/scenarios/HumanEval/Scripts/custom_tabulate.py b/samples/tools/autogenbench/scenarios/HumanEval/Scripts/custom_tabulate.py index 7c689cdfedb..fe86db695cc 100644 --- a/samples/tools/autogenbench/scenarios/HumanEval/Scripts/custom_tabulate.py +++ b/samples/tools/autogenbench/scenarios/HumanEval/Scripts/custom_tabulate.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import os import sys diff --git a/samples/tools/autogenbench/scenarios/HumanEval/Scripts/init_tasks.py b/samples/tools/autogenbench/scenarios/HumanEval/Scripts/init_tasks.py index c8d31d3a206..c78a9799133 100644 --- a/samples/tools/autogenbench/scenarios/HumanEval/Scripts/init_tasks.py +++ b/samples/tools/autogenbench/scenarios/HumanEval/Scripts/init_tasks.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT # # Run this file to download the human_eval dataset, and create a corresponding testbed scenario: # (default: ../scenarios/human_eval_two_agents_gpt4.jsonl and ./scenarios/human_eval_two_agents_gpt35.jsonl) diff --git a/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatFourAgents/coding/my_tests.py b/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatFourAgents/coding/my_tests.py index 951a4083111..69fcbad32d4 100644 --- a/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatFourAgents/coding/my_tests.py +++ b/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatFourAgents/coding/my_tests.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT # Disable ruff linter for template files # ruff: noqa: F821 diff --git a/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatFourAgents/scenario.py b/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatFourAgents/scenario.py index f3408eed89d..231683618f5 100644 --- a/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatFourAgents/scenario.py +++ b/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatFourAgents/scenario.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import base64 import json import os diff --git a/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatThreeAgents_Distractor/coding/my_tests.py b/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatThreeAgents_Distractor/coding/my_tests.py index 951a4083111..69fcbad32d4 100644 --- a/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatThreeAgents_Distractor/coding/my_tests.py +++ b/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatThreeAgents_Distractor/coding/my_tests.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT # Disable ruff linter for template files # ruff: noqa: F821 diff --git a/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatThreeAgents_Distractor/scenario.py b/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatThreeAgents_Distractor/scenario.py index 96fa94c4976..d4a41b7208f 100644 --- a/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatThreeAgents_Distractor/scenario.py +++ b/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatThreeAgents_Distractor/scenario.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import base64 import json import os diff --git a/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatThreeAgents_Guardrails/coding/my_tests.py b/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatThreeAgents_Guardrails/coding/my_tests.py index 951a4083111..69fcbad32d4 100644 --- a/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatThreeAgents_Guardrails/coding/my_tests.py +++ b/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatThreeAgents_Guardrails/coding/my_tests.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT # Disable ruff linter for template files # ruff: noqa: F821 diff --git a/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatThreeAgents_Guardrails/scenario.py b/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatThreeAgents_Guardrails/scenario.py index 89a00021c79..386234b53da 100644 --- a/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatThreeAgents_Guardrails/scenario.py +++ b/samples/tools/autogenbench/scenarios/HumanEval/Templates/GroupChatThreeAgents_Guardrails/scenario.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import base64 import json import os diff --git a/samples/tools/autogenbench/scenarios/HumanEval/Templates/TwoAgents/coding/my_tests.py b/samples/tools/autogenbench/scenarios/HumanEval/Templates/TwoAgents/coding/my_tests.py index d93c24296e2..e81d4c30825 100644 --- a/samples/tools/autogenbench/scenarios/HumanEval/Templates/TwoAgents/coding/my_tests.py +++ b/samples/tools/autogenbench/scenarios/HumanEval/Templates/TwoAgents/coding/my_tests.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT # Disable ruff linter for template files # ruff: noqa: F821 E722 diff --git a/samples/tools/autogenbench/scenarios/HumanEval/Templates/TwoAgents/scenario.py b/samples/tools/autogenbench/scenarios/HumanEval/Templates/TwoAgents/scenario.py index 113417fb203..33b47344734 100644 --- a/samples/tools/autogenbench/scenarios/HumanEval/Templates/TwoAgents/scenario.py +++ b/samples/tools/autogenbench/scenarios/HumanEval/Templates/TwoAgents/scenario.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import base64 import json import os diff --git a/samples/tools/autogenbench/scenarios/MATH/Scripts/custom_tabulate.py b/samples/tools/autogenbench/scenarios/MATH/Scripts/custom_tabulate.py index 64c11a32e06..7c029c74a0c 100644 --- a/samples/tools/autogenbench/scenarios/MATH/Scripts/custom_tabulate.py +++ b/samples/tools/autogenbench/scenarios/MATH/Scripts/custom_tabulate.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import json import os import sys diff --git a/samples/tools/autogenbench/scenarios/MATH/Scripts/init_tasks.py b/samples/tools/autogenbench/scenarios/MATH/Scripts/init_tasks.py index eb532ee851d..d0a55047d31 100644 --- a/samples/tools/autogenbench/scenarios/MATH/Scripts/init_tasks.py +++ b/samples/tools/autogenbench/scenarios/MATH/Scripts/init_tasks.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT # # Run this file to download the human_eval dataset, and create a corresponding testbed scenario: # (default: ../scenarios/human_eval_two_agents_gpt4.jsonl and ./scenarios/human_eval_two_agents_gpt35.jsonl) diff --git a/samples/tools/autogenbench/scenarios/MATH/Templates/TwoAgents/scenario.py b/samples/tools/autogenbench/scenarios/MATH/Templates/TwoAgents/scenario.py index 1995ac4e12a..c3d52ebe64a 100644 --- a/samples/tools/autogenbench/scenarios/MATH/Templates/TwoAgents/scenario.py +++ b/samples/tools/autogenbench/scenarios/MATH/Templates/TwoAgents/scenario.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import json import os diff --git a/samples/tools/autogenbench/setup.py b/samples/tools/autogenbench/setup.py index 606849326a4..0666adb2cc1 100644 --- a/samples/tools/autogenbench/setup.py +++ b/samples/tools/autogenbench/setup.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from setuptools import setup setup() diff --git a/samples/tools/finetuning/finetuning/__init__.py b/samples/tools/finetuning/finetuning/__init__.py index 3f1f928d57c..3b9376d606e 100644 --- a/samples/tools/finetuning/finetuning/__init__.py +++ b/samples/tools/finetuning/finetuning/__init__.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from .update_model import update_model __all__ = ["update_model"] diff --git a/samples/tools/finetuning/finetuning/update_model.py b/samples/tools/finetuning/finetuning/update_model.py index ad2fec523d3..5daf3769f73 100644 --- a/samples/tools/finetuning/finetuning/update_model.py +++ b/samples/tools/finetuning/finetuning/update_model.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import Any, Dict, List, Protocol from autogen import Agent, ConversableAgent, ModelClient, OpenAIWrapper diff --git a/samples/tools/finetuning/tests/test_conversable_agent_update_model.py b/samples/tools/finetuning/tests/test_conversable_agent_update_model.py index 369bc4b1749..43632f6b033 100644 --- a/samples/tools/finetuning/tests/test_conversable_agent_update_model.py +++ b/samples/tools/finetuning/tests/test_conversable_agent_update_model.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import sys import pytest diff --git a/samples/tools/webarena/webarena/run.py b/samples/tools/webarena/webarena/run.py index 2fb15f7c179..6b8be3cea65 100644 --- a/samples/tools/webarena/webarena/run.py +++ b/samples/tools/webarena/webarena/run.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT """Script to run end-to-end evaluation on the benchmark""" import argparse diff --git a/samples/tools/webarena/webarena/webarena_agents.py b/samples/tools/webarena/webarena/webarena_agents.py index ab97d6982ce..3bc6e814937 100644 --- a/samples/tools/webarena/webarena/webarena_agents.py +++ b/samples/tools/webarena/webarena/webarena_agents.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from browser_env import ( ActionTypes, StateInfo, diff --git a/setup.py b/setup.py index 5704b406062..4c36f188e42 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import os import platform @@ -107,7 +113,7 @@ extras_require=extra_require, classifiers=[ "Programming Language :: Python :: 3", - "License :: OSI Approved :: MIT License", + "License :: OSI Approved :: Apache License 2.0", "Operating System :: OS Independent", ], python_requires=">=3.8,<3.13", diff --git a/test/agentchat/contrib/agent_eval/test_agent_eval.py b/test/agentchat/contrib/agent_eval/test_agent_eval.py index 1ae7562a372..05c547d25ef 100644 --- a/test/agentchat/contrib/agent_eval/test_agent_eval.py +++ b/test/agentchat/contrib/agent_eval/test_agent_eval.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import json diff --git a/test/agentchat/contrib/agent_eval/test_criterion.py b/test/agentchat/contrib/agent_eval/test_criterion.py index 4bfd53201d1..0befdf6d041 100644 --- a/test/agentchat/contrib/agent_eval/test_criterion.py +++ b/test/agentchat/contrib/agent_eval/test_criterion.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest from autogen.agentchat.contrib.agent_eval.criterion import Criterion diff --git a/test/agentchat/contrib/agent_eval/test_task.py b/test/agentchat/contrib/agent_eval/test_task.py index ffed929a955..5489a60b5a8 100644 --- a/test/agentchat/contrib/agent_eval/test_task.py +++ b/test/agentchat/contrib/agent_eval/test_task.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest from autogen.agentchat.contrib.agent_eval.task import Task diff --git a/test/agentchat/contrib/capabilities/chat_with_teachable_agent.py b/test/agentchat/contrib/capabilities/chat_with_teachable_agent.py index 83ce48fc522..46f02337d66 100755 --- a/test/agentchat/contrib/capabilities/chat_with_teachable_agent.py +++ b/test/agentchat/contrib/capabilities/chat_with_teachable_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import os diff --git a/test/agentchat/contrib/capabilities/test_image_generation_capability.py b/test/agentchat/contrib/capabilities/test_image_generation_capability.py index fa62d1f46a1..9703c3b2f49 100644 --- a/test/agentchat/contrib/capabilities/test_image_generation_capability.py +++ b/test/agentchat/contrib/capabilities/test_image_generation_capability.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import itertools import os import sys diff --git a/test/agentchat/contrib/capabilities/test_teachable_agent.py b/test/agentchat/contrib/capabilities/test_teachable_agent.py index 37968f5d290..d148f511bd2 100755 --- a/test/agentchat/contrib/capabilities/test_teachable_agent.py +++ b/test/agentchat/contrib/capabilities/test_teachable_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import os diff --git a/test/agentchat/contrib/capabilities/test_transform_messages.py b/test/agentchat/contrib/capabilities/test_transform_messages.py index 4888b49f327..831ee13277c 100644 --- a/test/agentchat/contrib/capabilities/test_transform_messages.py +++ b/test/agentchat/contrib/capabilities/test_transform_messages.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import os import sys import tempfile diff --git a/test/agentchat/contrib/capabilities/test_transforms.py b/test/agentchat/contrib/capabilities/test_transforms.py index 34094a0008b..22a6ef1cc77 100644 --- a/test/agentchat/contrib/capabilities/test_transforms.py +++ b/test/agentchat/contrib/capabilities/test_transforms.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import copy from typing import Any, Dict, List from unittest.mock import MagicMock, patch diff --git a/test/agentchat/contrib/capabilities/test_transforms_util.py b/test/agentchat/contrib/capabilities/test_transforms_util.py index 089ebbdc8db..ebe49e167de 100644 --- a/test/agentchat/contrib/capabilities/test_transforms_util.py +++ b/test/agentchat/contrib/capabilities/test_transforms_util.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import itertools import tempfile from typing import Dict, Tuple diff --git a/test/agentchat/contrib/capabilities/test_vision_capability.py b/test/agentchat/contrib/capabilities/test_vision_capability.py index 1266cd0a026..24238fc5731 100644 --- a/test/agentchat/contrib/capabilities/test_vision_capability.py +++ b/test/agentchat/contrib/capabilities/test_vision_capability.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import os from unittest.mock import MagicMock, patch diff --git a/test/agentchat/contrib/retrievechat/test_pgvector_retrievechat.py b/test/agentchat/contrib/retrievechat/test_pgvector_retrievechat.py index 3c566352b3e..e0809867b09 100644 --- a/test/agentchat/contrib/retrievechat/test_pgvector_retrievechat.py +++ b/test/agentchat/contrib/retrievechat/test_pgvector_retrievechat.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import os diff --git a/test/agentchat/contrib/retrievechat/test_qdrant_retrievechat.py b/test/agentchat/contrib/retrievechat/test_qdrant_retrievechat.py index 92ca5aa603a..aeda74cf412 100755 --- a/test/agentchat/contrib/retrievechat/test_qdrant_retrievechat.py +++ b/test/agentchat/contrib/retrievechat/test_qdrant_retrievechat.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import os diff --git a/test/agentchat/contrib/retrievechat/test_retrievechat.py b/test/agentchat/contrib/retrievechat/test_retrievechat.py index 0504fc82be4..92b256b93f7 100755 --- a/test/agentchat/contrib/retrievechat/test_retrievechat.py +++ b/test/agentchat/contrib/retrievechat/test_retrievechat.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import os diff --git a/test/agentchat/contrib/test_agent_builder.py b/test/agentchat/contrib/test_agent_builder.py index e2e39e8ba43..b7f7ec88825 100755 --- a/test/agentchat/contrib/test_agent_builder.py +++ b/test/agentchat/contrib/test_agent_builder.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import json diff --git a/test/agentchat/contrib/test_agent_optimizer.py b/test/agentchat/contrib/test_agent_optimizer.py index 9587c9d5975..9f1d8cc01a7 100644 --- a/test/agentchat/contrib/test_agent_optimizer.py +++ b/test/agentchat/contrib/test_agent_optimizer.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import os import sys diff --git a/test/agentchat/contrib/test_gpt_assistant.py b/test/agentchat/contrib/test_gpt_assistant.py index 7132cb72053..7ff0e7285ce 100755 --- a/test/agentchat/contrib/test_gpt_assistant.py +++ b/test/agentchat/contrib/test_gpt_assistant.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import os diff --git a/test/agentchat/contrib/test_img_utils.py b/test/agentchat/contrib/test_img_utils.py index 84dfb1029d1..7057585c29f 100755 --- a/test/agentchat/contrib/test_img_utils.py +++ b/test/agentchat/contrib/test_img_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import base64 diff --git a/test/agentchat/contrib/test_llamaindex_conversable_agent.py b/test/agentchat/contrib/test_llamaindex_conversable_agent.py index ec31e1f6a35..96e0b8eda2e 100644 --- a/test/agentchat/contrib/test_llamaindex_conversable_agent.py +++ b/test/agentchat/contrib/test_llamaindex_conversable_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import os diff --git a/test/agentchat/contrib/test_llava.py b/test/agentchat/contrib/test_llava.py index a77088816e2..d3b644cfc2a 100755 --- a/test/agentchat/contrib/test_llava.py +++ b/test/agentchat/contrib/test_llava.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import unittest diff --git a/test/agentchat/contrib/test_lmm.py b/test/agentchat/contrib/test_lmm.py index 3228d549548..5d2d45aaff4 100755 --- a/test/agentchat/contrib/test_lmm.py +++ b/test/agentchat/contrib/test_lmm.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import unittest diff --git a/test/agentchat/contrib/test_society_of_mind_agent.py b/test/agentchat/contrib/test_society_of_mind_agent.py index ff83b97eb08..c96702d7c14 100755 --- a/test/agentchat/contrib/test_society_of_mind_agent.py +++ b/test/agentchat/contrib/test_society_of_mind_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import os diff --git a/test/agentchat/contrib/test_web_surfer.py b/test/agentchat/contrib/test_web_surfer.py index e27b06f991b..508ebb72e48 100755 --- a/test/agentchat/contrib/test_web_surfer.py +++ b/test/agentchat/contrib/test_web_surfer.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import os diff --git a/test/agentchat/contrib/vectordb/test_chromadb.py b/test/agentchat/contrib/vectordb/test_chromadb.py index ee4886f5154..daf51f371e7 100644 --- a/test/agentchat/contrib/vectordb/test_chromadb.py +++ b/test/agentchat/contrib/vectordb/test_chromadb.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import os import sys diff --git a/test/agentchat/contrib/vectordb/test_mongodb.py b/test/agentchat/contrib/vectordb/test_mongodb.py index 3ae1ed57259..51279848784 100644 --- a/test/agentchat/contrib/vectordb/test_mongodb.py +++ b/test/agentchat/contrib/vectordb/test_mongodb.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import logging import os import random diff --git a/test/agentchat/contrib/vectordb/test_pgvectordb.py b/test/agentchat/contrib/vectordb/test_pgvectordb.py index d238b657cb9..01ad3dc9903 100644 --- a/test/agentchat/contrib/vectordb/test_pgvectordb.py +++ b/test/agentchat/contrib/vectordb/test_pgvectordb.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import os import sys import urllib.parse diff --git a/test/agentchat/contrib/vectordb/test_qdrant.py b/test/agentchat/contrib/vectordb/test_qdrant.py index c2f4270f295..056f7e89b9a 100644 --- a/test/agentchat/contrib/vectordb/test_qdrant.py +++ b/test/agentchat/contrib/vectordb/test_qdrant.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import os import sys diff --git a/test/agentchat/contrib/vectordb/test_vectordb_utils.py b/test/agentchat/contrib/vectordb/test_vectordb_utils.py index 8c26ac9c3cd..71be547b58b 100644 --- a/test/agentchat/contrib/vectordb/test_vectordb_utils.py +++ b/test/agentchat/contrib/vectordb/test_vectordb_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import os diff --git a/test/agentchat/extensions/tsp.py b/test/agentchat/extensions/tsp.py index 82cc98c0cf7..11877abedd0 100644 --- a/test/agentchat/extensions/tsp.py +++ b/test/agentchat/extensions/tsp.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT """Solve a non-symmetric TSP problem. Triangular inequality is not required in this problem. diff --git a/test/agentchat/extensions/tsp_api.py b/test/agentchat/extensions/tsp_api.py index 3980a400caf..4ceb93b56c2 100644 --- a/test/agentchat/extensions/tsp_api.py +++ b/test/agentchat/extensions/tsp_api.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from .tsp import tsp_data diff --git a/test/agentchat/test_agent_file_logging.py b/test/agentchat/test_agent_file_logging.py index 1818b85fa9d..9c014b09a55 100644 --- a/test/agentchat/test_agent_file_logging.py +++ b/test/agentchat/test_agent_file_logging.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import json import os import sys diff --git a/test/agentchat/test_agent_logging.py b/test/agentchat/test_agent_logging.py index 3e479c0bba6..0ae39eaa65e 100644 --- a/test/agentchat/test_agent_logging.py +++ b/test/agentchat/test_agent_logging.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import json import os import sqlite3 diff --git a/test/agentchat/test_agent_setup_with_use_docker_settings.py b/test/agentchat/test_agent_setup_with_use_docker_settings.py index b5a1291b96a..61e2073d9eb 100644 --- a/test/agentchat/test_agent_setup_with_use_docker_settings.py +++ b/test/agentchat/test_agent_setup_with_use_docker_settings.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import os import sys diff --git a/test/agentchat/test_agent_usage.py b/test/agentchat/test_agent_usage.py index 5ce8d1c1875..781727c5248 100755 --- a/test/agentchat/test_agent_usage.py +++ b/test/agentchat/test_agent_usage.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import io diff --git a/test/agentchat/test_agentchat_utils.py b/test/agentchat/test_agentchat_utils.py index a52b4ed77cd..cfdc609d59c 100644 --- a/test/agentchat/test_agentchat_utils.py +++ b/test/agentchat/test_agentchat_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import Dict, List, Union import pytest diff --git a/test/agentchat/test_assistant_agent.py b/test/agentchat/test_assistant_agent.py index c3bfe4045e8..b4cd995b515 100755 --- a/test/agentchat/test_assistant_agent.py +++ b/test/agentchat/test_assistant_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import os diff --git a/test/agentchat/test_async.py b/test/agentchat/test_async.py index c2cfb23973c..07f7a75b07e 100755 --- a/test/agentchat/test_async.py +++ b/test/agentchat/test_async.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import asyncio diff --git a/test/agentchat/test_async_chats.py b/test/agentchat/test_async_chats.py index ff5be06cb09..7d83464d66f 100755 --- a/test/agentchat/test_async_chats.py +++ b/test/agentchat/test_async_chats.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import asyncio diff --git a/test/agentchat/test_async_get_human_input.py b/test/agentchat/test_async_get_human_input.py index c0b0ca6be79..80cd929b6a7 100755 --- a/test/agentchat/test_async_get_human_input.py +++ b/test/agentchat/test_async_get_human_input.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import asyncio diff --git a/test/agentchat/test_cache_agent.py b/test/agentchat/test_cache_agent.py index dbd3767a8bb..4c6d75cd341 100644 --- a/test/agentchat/test_cache_agent.py +++ b/test/agentchat/test_cache_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import os import sys import tempfile diff --git a/test/agentchat/test_chats.py b/test/agentchat/test_chats.py index 896287de278..ec15ce1789a 100755 --- a/test/agentchat/test_chats.py +++ b/test/agentchat/test_chats.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import os diff --git a/test/agentchat/test_conversable_agent.py b/test/agentchat/test_conversable_agent.py index c0d37a7bd7a..da1ad92f5d4 100755 --- a/test/agentchat/test_conversable_agent.py +++ b/test/agentchat/test_conversable_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import asyncio diff --git a/test/agentchat/test_function_and_tool_calling.py b/test/agentchat/test_function_and_tool_calling.py index 4e0775d014c..ed3977ff670 100644 --- a/test/agentchat/test_function_and_tool_calling.py +++ b/test/agentchat/test_function_and_tool_calling.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import json from typing import Any, Callable, Dict, List diff --git a/test/agentchat/test_function_call.py b/test/agentchat/test_function_call.py index 7745181ea64..c8f73b4f4ad 100755 --- a/test/agentchat/test_function_call.py +++ b/test/agentchat/test_function_call.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import asyncio diff --git a/test/agentchat/test_function_call_groupchat.py b/test/agentchat/test_function_call_groupchat.py index c1205ad2432..0e4bc958641 100755 --- a/test/agentchat/test_function_call_groupchat.py +++ b/test/agentchat/test_function_call_groupchat.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import asyncio diff --git a/test/agentchat/test_groupchat.py b/test/agentchat/test_groupchat.py index 291a94d450f..97c9f28ee66 100755 --- a/test/agentchat/test_groupchat.py +++ b/test/agentchat/test_groupchat.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import builtins diff --git a/test/agentchat/test_human_input.py b/test/agentchat/test_human_input.py index a24f94a072a..5c2e99f2431 100755 --- a/test/agentchat/test_human_input.py +++ b/test/agentchat/test_human_input.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import os diff --git a/test/agentchat/test_math_user_proxy_agent.py b/test/agentchat/test_math_user_proxy_agent.py index 8df8caf6421..e2baed12bae 100755 --- a/test/agentchat/test_math_user_proxy_agent.py +++ b/test/agentchat/test_math_user_proxy_agent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import os diff --git a/test/agentchat/test_nested.py b/test/agentchat/test_nested.py index 04fc84b5b39..e9cad254f41 100755 --- a/test/agentchat/test_nested.py +++ b/test/agentchat/test_nested.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import os diff --git a/test/agentchat/test_tool_calls.py b/test/agentchat/test_tool_calls.py index e7d45c5918d..cdb428cae4c 100755 --- a/test/agentchat/test_tool_calls.py +++ b/test/agentchat/test_tool_calls.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import inspect diff --git a/test/cache/test_cache.py b/test/cache/test_cache.py index 05331c165b5..fc7653590eb 100755 --- a/test/cache/test_cache.py +++ b/test/cache/test_cache.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import unittest diff --git a/test/cache/test_cosmos_db_cache.py b/test/cache/test_cosmos_db_cache.py index 80b97bf57ed..8ff466dd6fa 100644 --- a/test/cache/test_cosmos_db_cache.py +++ b/test/cache/test_cosmos_db_cache.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import pickle diff --git a/test/cache/test_disk_cache.py b/test/cache/test_disk_cache.py index e7fa4df484b..4724503c53d 100755 --- a/test/cache/test_disk_cache.py +++ b/test/cache/test_disk_cache.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import unittest diff --git a/test/cache/test_in_memory_cache.py b/test/cache/test_in_memory_cache.py index d9d520ebb56..9f8878de622 100644 --- a/test/cache/test_in_memory_cache.py +++ b/test/cache/test_in_memory_cache.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from autogen.cache.in_memory_cache import InMemoryCache diff --git a/test/cache/test_redis_cache.py b/test/cache/test_redis_cache.py index c915ef5ac3c..120f2bc58d5 100755 --- a/test/cache/test_redis_cache.py +++ b/test/cache/test_redis_cache.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import pickle diff --git a/test/coding/test_commandline_code_executor.py b/test/coding/test_commandline_code_executor.py index 99c564b42a4..39f34bb75e1 100644 --- a/test/coding/test_commandline_code_executor.py +++ b/test/coding/test_commandline_code_executor.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT import os import shutil import sys diff --git a/test/coding/test_embedded_ipython_code_executor.py b/test/coding/test_embedded_ipython_code_executor.py index 376760af824..d09b68aee56 100644 --- a/test/coding/test_embedded_ipython_code_executor.py +++ b/test/coding/test_embedded_ipython_code_executor.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT import os import sys import tempfile diff --git a/test/coding/test_factory.py b/test/coding/test_factory.py index 4316721e394..786c566c8c7 100644 --- a/test/coding/test_factory.py +++ b/test/coding/test_factory.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT import pytest from autogen.coding.factory import CodeExecutorFactory diff --git a/test/coding/test_markdown_code_extractor.py b/test/coding/test_markdown_code_extractor.py index 4185d67527b..bffabab71f2 100644 --- a/test/coding/test_markdown_code_extractor.py +++ b/test/coding/test_markdown_code_extractor.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT from autogen.coding import MarkdownCodeExtractor _message_1 = """ diff --git a/test/coding/test_user_defined_functions.py b/test/coding/test_user_defined_functions.py index 6cd3e115f96..a542dae7e8d 100644 --- a/test/coding/test_user_defined_functions.py +++ b/test/coding/test_user_defined_functions.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Original portions of this file are derived from https://github.com/microsoft/autogen under the MIT License. +# SPDX-License-Identifier: MIT import tempfile import pytest diff --git a/test/conftest.py b/test/conftest.py index 0eb742fe9c2..d5a99a02398 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import pytest skip_openai = False diff --git a/test/io/test_base.py b/test/io/test_base.py index ba05955164c..21c59813dea 100644 --- a/test/io/test_base.py +++ b/test/io/test_base.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from threading import Thread from typing import Any, List diff --git a/test/io/test_console.py b/test/io/test_console.py index a0b95a5bec4..eb6ed0fff34 100644 --- a/test/io/test_console.py +++ b/test/io/test_console.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from unittest.mock import MagicMock, patch import pytest diff --git a/test/io/test_websockets.py b/test/io/test_websockets.py index 1458afcd88c..335bade6e4f 100644 --- a/test/io/test_websockets.py +++ b/test/io/test_websockets.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from tempfile import TemporaryDirectory from typing import Dict diff --git a/test/oai/_test_completion.py b/test/oai/_test_completion.py index fe410255d2f..592dc1ce5bb 100755 --- a/test/oai/_test_completion.py +++ b/test/oai/_test_completion.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import json diff --git a/test/oai/test_anthropic.py b/test/oai/test_anthropic.py index 53926dbd18d..5b7e0a9b438 100644 --- a/test/oai/test_anthropic.py +++ b/test/oai/test_anthropic.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import os diff --git a/test/oai/test_client.py b/test/oai/test_client.py index 443ec995de4..b9bff919246 100755 --- a/test/oai/test_client.py +++ b/test/oai/test_client.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import os diff --git a/test/oai/test_client_stream.py b/test/oai/test_client_stream.py index 59abd97151a..c658104d4d5 100755 --- a/test/oai/test_client_stream.py +++ b/test/oai/test_client_stream.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import os diff --git a/test/oai/test_client_utils.py b/test/oai/test_client_utils.py index 9a0b47061be..2fb7f1ea719 100644 --- a/test/oai/test_client_utils.py +++ b/test/oai/test_client_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import pytest diff --git a/test/oai/test_cohere.py b/test/oai/test_cohere.py index 83ef56b1708..a8f55c22883 100644 --- a/test/oai/test_cohere.py +++ b/test/oai/test_cohere.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import os diff --git a/test/oai/test_custom_client.py b/test/oai/test_custom_client.py index 0090933906f..d4dc987d278 100644 --- a/test/oai/test_custom_client.py +++ b/test/oai/test_custom_client.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import Dict import pytest diff --git a/test/oai/test_gemini.py b/test/oai/test_gemini.py index 61fdbe6d735..f2fe15684df 100644 --- a/test/oai/test_gemini.py +++ b/test/oai/test_gemini.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import os from unittest.mock import MagicMock, patch diff --git a/test/oai/test_groq.py b/test/oai/test_groq.py index f55edbd8c7a..aca4282b5d8 100644 --- a/test/oai/test_groq.py +++ b/test/oai/test_groq.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from unittest.mock import MagicMock, patch import pytest diff --git a/test/oai/test_mistral.py b/test/oai/test_mistral.py index f89c3d304d9..188a975dd90 100644 --- a/test/oai/test_mistral.py +++ b/test/oai/test_mistral.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from unittest.mock import MagicMock, patch import pytest diff --git a/test/oai/test_together.py b/test/oai/test_together.py index 0581d19f0f7..838a7e908bf 100644 --- a/test/oai/test_together.py +++ b/test/oai/test_together.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from unittest.mock import MagicMock, patch import pytest diff --git a/test/oai/test_utils.py b/test/oai/test_utils.py index fd81d3f9f54..95076f4972f 100755 --- a/test/oai/test_utils.py +++ b/test/oai/test_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import json diff --git a/test/test_browser_utils.py b/test/test_browser_utils.py index ab632ccb043..1986d4fb4e0 100755 --- a/test/test_browser_utils.py +++ b/test/test_browser_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import hashlib diff --git a/test/test_code_utils.py b/test/test_code_utils.py index ade3855ad85..354fd1cc1a8 100755 --- a/test/test_code_utils.py +++ b/test/test_code_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import os diff --git a/test/test_function_utils.py b/test/test_function_utils.py index 0475044b49f..0c23a74899d 100644 --- a/test/test_function_utils.py +++ b/test/test_function_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import asyncio import inspect import unittest.mock diff --git a/test/test_graph_utils.py b/test/test_graph_utils.py index a8b2902121b..020bc0a3151 100644 --- a/test/test_graph_utils.py +++ b/test/test_graph_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import logging from typing import Any diff --git a/test/test_logging.py b/test/test_logging.py index bd9a74d3fd4..531cda1181d 100644 --- a/test/test_logging.py +++ b/test/test_logging.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT import json import sqlite3 import uuid diff --git a/test/test_notebook.py b/test/test_notebook.py index 9d05533c913..17d57e22dcd 100755 --- a/test/test_notebook.py +++ b/test/test_notebook.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import os diff --git a/test/test_pydantic.py b/test/test_pydantic.py index ce7b95a7c05..5cea6574d89 100644 --- a/test/test_pydantic.py +++ b/test/test_pydantic.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from typing import Dict, List, Optional, Tuple, Union from pydantic import BaseModel, Field diff --git a/test/test_retrieve_utils.py b/test/test_retrieve_utils.py index a8c38455557..243d2d5cadf 100755 --- a/test/test_retrieve_utils.py +++ b/test/test_retrieve_utils.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest """ diff --git a/test/test_token_count.py b/test/test_token_count.py index e9a731465e1..ee096c16cbd 100755 --- a/test/test_token_count.py +++ b/test/test_token_count.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python3 -m pytest import pytest diff --git a/test/twoagent.py b/test/twoagent.py index 1f7db31c208..20e9b59e60c 100644 --- a/test/twoagent.py +++ b/test/twoagent.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT from autogen import AssistantAgent, UserProxyAgent, config_list_from_json # Load LLM inference endpoints from an env variable or a file diff --git a/website/blog/2023-04-21-LLM-tuning-math/index.md b/website/blog/2023-04-21-LLM-tuning-math/index.md index eb83af21501..a8eeb253823 100644 --- a/website/blog/2023-04-21-LLM-tuning-math/index.md +++ b/website/blog/2023-04-21-LLM-tuning-math/index.md @@ -62,7 +62,7 @@ An example notebook to run these experiments can be found at: https://github.com While gpt-3.5-turbo demonstrates competitive accuracy with voted answers in relatively easy algebra problems under the same inference budget, gpt-4 is a better choice for the most difficult problems. In general, through parameter tuning and model selection, we can identify the opportunity to save the expensive model for more challenging tasks, and improve the overall effectiveness of a budget-constrained system. -There are many other alternative ways of solving math problems, which we have not covered in this blog post. When there are choices beyond the inference parameters, they can be generally tuned via [`flaml.tune`](https://autogen-ai.github.io/FLAML/docs/Use-Cases/Tune-User-Defined-Function). +There are many other alternative ways of solving math problems, which we have not covered in this blog post. When there are choices beyond the inference parameters, they can be generally tuned via [`flaml.tune`](https://microsoft.github.io/FLAML/docs/Use-Cases/Tune-User-Defined-Function). The need for model selection, parameter tuning and cost saving is not specific to the math problems. The [Auto-GPT](https://github.com/Significant-Gravitas/Auto-GPT) project is an example where high cost can easily prevent a generic complex task to be accomplished as it needs many LLM inference calls. diff --git a/website/docs/Migration-Guide.md b/website/docs/Migration-Guide.md index 2cdc6a2ecc3..95af5a6ba98 100644 --- a/website/docs/Migration-Guide.md +++ b/website/docs/Migration-Guide.md @@ -28,7 +28,7 @@ autogen.runtime_logging.stop() ``` Checkout [Logging documentation](https://autogen-ai.github.io/autogen/docs/Use-Cases/enhanced_inference#logging) and [Logging example notebook](https://github.com/autogen-ai/autogen/blob/main/notebook/agentchat_logging.ipynb) to learn more. -Inference parameter tuning can be done via [`flaml.tune`](https://autogen-ai.github.io/FLAML/docs/Use-Cases/Tune-User-Defined-Function). +Inference parameter tuning can be done via [`flaml.tune`](https://microsoft.github.io/FLAML/docs/Use-Cases/Tune-User-Defined-Function). - `seed` in autogen is renamed into `cache_seed` to accommodate the newly added `seed` param in openai chat completion api. `use_cache` is removed as a kwarg in `OpenAIWrapper.create()` for being automatically decided by `cache_seed`: int | None. The difference between autogen's `cache_seed` and openai's `seed` is that: - autogen uses local disk cache to guarantee the exactly same output is produced for the same input and when cache is hit, no openai api call will be made. - openai's `seed` is a best-effort deterministic sampling with no guarantee of determinism. When using openai's `seed` with `cache_seed` set to None, even for the same input, an openai api call will be made and there is no guarantee for getting exactly the same output. diff --git a/website/docs/contributor-guide/contributing.md b/website/docs/contributor-guide/contributing.md index abe89f4b27b..84538a39f6a 100644 --- a/website/docs/contributor-guide/contributing.md +++ b/website/docs/contributor-guide/contributing.md @@ -24,3 +24,27 @@ There is currently no formal reviewer solicitation process. Current reviewers id ## Contact Maintainers The project is currently maintained by a [dynamic group of volunteers](https://butternut-swordtail-8a5.notion.site/410675be605442d3ada9a42eb4dfef30?v=fa5d0a79fd3d4c0f9c112951b2831cbb&pvs=4) from several different organizations. Contact project administrators Chi Wang and Qingyun Wu via auto-gen@outlook.com if you are interested in becoming a maintainer. + + +## License Headers + +To maintain proper licensing and copyright notices, please include the following header at the top of each new source code file you create, regardless of the programming language: + +```python +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +``` + +For files that contain or are derived from the original MIT-licensed code from https://github.com/microsoft/autogen, please use this extended header: + +```python +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT +``` + +Please ensure you update the year range as appropriate. If you're unsure which header to use or have any questions about licensing, please don't hesitate to ask in your pull request or reach out to the maintainers. diff --git a/website/package.json b/website/package.json index 3eab1f28c77..62edcdad2b0 100644 --- a/website/package.json +++ b/website/package.json @@ -62,5 +62,6 @@ "last 1 firefox version", "last 1 safari version" ] - } + }, + "license": "Apache-2.0" } diff --git a/website/process_notebooks.py b/website/process_notebooks.py index bbeb141f821..fe498b41a9c 100755 --- a/website/process_notebooks.py +++ b/website/process_notebooks.py @@ -1,3 +1,9 @@ +# Copyright (c) 2023 - 2024, Owners of https://github.com/autogen-ai +# +# SPDX-License-Identifier: Apache-2.0 +# +# Portions derived from https://github.com/microsoft/autogen are under the MIT License. +# SPDX-License-Identifier: MIT #!/usr/bin/env python from __future__ import annotations