diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md new file mode 100644 index 0000000..c6ed28b --- /dev/null +++ b/CONTRIBUTORS.md @@ -0,0 +1,10 @@ +# Contributors + +CONTRIBUTORS file should only contain list of copyright holder (i.e. employers of +maintainers). All files that support comments should include standard header for +the project. AGNTCY uses the following file header: + + Copyright AGNTCY Contributors (https://github.com/agntcy) + SPDX-License-Identifier: Apache-2.0 + +1. Cisco Systems Inc. diff --git a/LICENSE b/LICENSE index b198ede..f433b1a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,5 @@ -Apache License + + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -174,28 +175,3 @@ Apache License 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 2025, Cisco and/or its affiliates. - - 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. \ No newline at end of file diff --git a/Makefile b/Makefile index 8a3721c..ac5c009 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +# Copyright AGNTCY Contributors (https://github.com/agntcy) +# SPDX-License-Identifier: Apache-2.0 + PROJECT_NAME := agntcy_iomapper DOCKER_IMAGE=$(PROJECT_NAME) DOCKER_TAG=latest diff --git a/README.md b/README.md index 39a0cfe..9e0c5a1 100644 --- a/README.md +++ b/README.md @@ -52,20 +52,9 @@ learn, inspire, and create. Any contributions you make are **greatly appreciated**. For detailed contributing guidelines, please see [CONTRIBUTING.md](https://github.com/agntcy/acp-sdk/blob/main/docs/CONTRIBUTING.md) -## Copyright Notice and License +## Copyright Notice -[Copyright Notice and License](https://github.com/agntcy/acp-sdk/blob/main/LICENSE) +[Copyright Notice and License](./LICENSE) -Copyright (c) 2025 Cisco and/or its affiliates. - -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. +Distributed under Apache 2.0 License. See LICENSE for more information. +Copyright AGNTCY Contributors (https://github.com/agntcy) diff --git a/agntcy_iomapper/__init__.py b/agntcy_iomapper/__init__.py index b7b3c7e..f31d663 100644 --- a/agntcy_iomapper/__init__.py +++ b/agntcy_iomapper/__init__.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 # ruff: noqa: F401 from agntcy_iomapper.agent import IOMappingAgent diff --git a/agntcy_iomapper/agent/__init__.py b/agntcy_iomapper/agent/__init__.py index 447f90f..36cd10a 100644 --- a/agntcy_iomapper/agent/__init__.py +++ b/agntcy_iomapper/agent/__init__.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 from agntcy_iomapper.agent.agent_io_mapper import IOMappingAgent diff --git a/agntcy_iomapper/agent/agent_io_mapper.py b/agntcy_iomapper/agent/agent_io_mapper.py index 11deceb..9ea795d 100644 --- a/agntcy_iomapper/agent/agent_io_mapper.py +++ b/agntcy_iomapper/agent/agent_io_mapper.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 import logging diff --git a/agntcy_iomapper/base/__init__.py b/agntcy_iomapper/base/__init__.py index a9f2d06..20117b7 100644 --- a/agntcy_iomapper/base/__init__.py +++ b/agntcy_iomapper/base/__init__.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 from agntcy_iomapper.base.base import ( diff --git a/agntcy_iomapper/base/base.py b/agntcy_iomapper/base/base.py index b9d0192..eb98646 100644 --- a/agntcy_iomapper/base/base.py +++ b/agntcy_iomapper/base/base.py @@ -1,5 +1,6 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 + import json import logging import re diff --git a/agntcy_iomapper/base/models.py b/agntcy_iomapper/base/models.py index 637c16f..cdf18e0 100644 --- a/agntcy_iomapper/base/models.py +++ b/agntcy_iomapper/base/models.py @@ -1,5 +1,6 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 + import logging from typing import Any, Callable, List, Optional, Union diff --git a/agntcy_iomapper/base/utils.py b/agntcy_iomapper/base/utils.py index 0a1aad5..81516c3 100644 --- a/agntcy_iomapper/base/utils.py +++ b/agntcy_iomapper/base/utils.py @@ -1,3 +1,6 @@ +# Copyright AGNTCY Contributors (https://github.com/agntcy) +# SPDX-License-Identifier: Apache-2.0 + import copy import json import logging diff --git a/agntcy_iomapper/imperative/__init__.py b/agntcy_iomapper/imperative/__init__.py index 6fddabf..134162f 100644 --- a/agntcy_iomapper/imperative/__init__.py +++ b/agntcy_iomapper/imperative/__init__.py @@ -1,5 +1,5 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. -# SPDX-License-Identifier: Apache-2.0" +# Copyright AGNTCY Contributors (https://github.com/agntcy) +# SPDX-License-Identifier: Apache-2.0 from .imperative import ( ImperativeIOMapper, diff --git a/agntcy_iomapper/imperative/imperative.py b/agntcy_iomapper/imperative/imperative.py index 6f041d0..c4949c8 100644 --- a/agntcy_iomapper/imperative/imperative.py +++ b/agntcy_iomapper/imperative/imperative.py @@ -1,5 +1,6 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. -# SPDX-License-Identifier: Apache-2.0" +# Copyright AGNTCY Contributors (https://github.com/agntcy) +# SPDX-License-Identifier: Apache-2.0 + """ The deterministic I/O mapper is a component designed to translate specific inputs into diff --git a/agntcy_iomapper/langgraph/__init__.py b/agntcy_iomapper/langgraph/__init__.py index d64d15c..7215228 100644 --- a/agntcy_iomapper/langgraph/__init__.py +++ b/agntcy_iomapper/langgraph/__init__.py @@ -1,5 +1,5 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. -# SPDX-License-Identifier: Apache-2.0" +# Copyright AGNTCY Contributors (https://github.com/agntcy) +# SPDX-License-Identifier: Apache-2.0 from agntcy_iomapper.langgraph.create_langraph_iomapper import ( create_langraph_iomapper, diff --git a/agntcy_iomapper/langgraph/create_langraph_iomapper.py b/agntcy_iomapper/langgraph/create_langraph_iomapper.py index 84fdd1d..f3686d4 100644 --- a/agntcy_iomapper/langgraph/create_langraph_iomapper.py +++ b/agntcy_iomapper/langgraph/create_langraph_iomapper.py @@ -1,5 +1,5 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. -# SPDX-License-Identifier: Apache-2.0" +# Copyright AGNTCY Contributors (https://github.com/agntcy) +# SPDX-License-Identifier: Apache-2.0 from langchain_core.runnables import Runnable diff --git a/agntcy_iomapper/langgraph/langgraph.py b/agntcy_iomapper/langgraph/langgraph.py index 3a078bf..17fb6b7 100644 --- a/agntcy_iomapper/langgraph/langgraph.py +++ b/agntcy_iomapper/langgraph/langgraph.py @@ -1,5 +1,6 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 + import logging from typing import Any, Optional, Union diff --git a/agntcy_iomapper/llamaindex/__init__.py b/agntcy_iomapper/llamaindex/__init__.py index 18624c0..bcf0a4e 100644 --- a/agntcy_iomapper/llamaindex/__init__.py +++ b/agntcy_iomapper/llamaindex/__init__.py @@ -1,5 +1,5 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. -# SPDX-License-Identifier: Apache-2.0" +# Copyright AGNTCY Contributors (https://github.com/agntcy) +# SPDX-License-Identifier: Apache-2.0 from agntcy_iomapper.llamaindex.models import ( IOMappingInputEvent, diff --git a/agntcy_iomapper/llamaindex/llamaindex.py b/agntcy_iomapper/llamaindex/llamaindex.py index 69f79b8..d40d6f0 100644 --- a/agntcy_iomapper/llamaindex/llamaindex.py +++ b/agntcy_iomapper/llamaindex/llamaindex.py @@ -1,5 +1,6 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. -# SPDX-License-Identifier: Apache-2.0" +# Copyright AGNTCY Contributors (https://github.com/agntcy) +# SPDX-License-Identifier: Apache-2.0 + import logging from typing import Any, List, Optional, Sequence diff --git a/agntcy_iomapper/pydantic_ai.py b/agntcy_iomapper/pydantic_ai.py index 5fd6129..87d0300 100644 --- a/agntcy_iomapper/pydantic_ai.py +++ b/agntcy_iomapper/pydantic_ai.py @@ -1,5 +1,6 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 + import logging from typing import Any, Literal, Optional, Union diff --git a/agntcy_iomapper/version.py b/agntcy_iomapper/version.py index d4f0eab..54abe30 100644 --- a/agntcy_iomapper/version.py +++ b/agntcy_iomapper/version.py @@ -1,3 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 + GIT_COMMIT = "NOT_SET" diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 4dea2b7..f76dddd 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -37,6 +37,28 @@ We expect new pull requests to include tests for any affected behavior, and, as we follow semantic versioning, we may reserve breaking changes until the next major version release. +## Developer’s Certificate of Origin + +To improve tracking of who did what, we have introduced a “sign-off” procedure. +The sign-off is a line at the end of the explanation for the commit, which +certifies that you wrote it or otherwise have the right to pass it on as open +source work. We use the Developer Certificate of Origin (see +https://developercertificate.org/) for our sign-off procedure. You must include +a sign-off in the commit message of your pull request for it to be accepted. The +format for a sign-off is: + +``` +Signed-off-by: Random J Developer + +``` + +You can use the -s when you do a git commit to simplify including a properly +formatted sign-off in your commits. If you need to add your sign-off to a commit +you have already made, you will need to amend: +``` +git commit --amend --signoff +``` + ## Other Ways to Contribute We welcome anyone that wants to contribute to this project to triage and diff --git a/docs/LICENSE.md b/docs/LICENSE.md index 66f12cf..52a82a3 100644 --- a/docs/LICENSE.md +++ b/docs/LICENSE.md @@ -167,27 +167,3 @@ 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 [yyyy] [name of copyright owner] - - 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/docs/README.md b/docs/README.md index 536fc74..e7dab56 100644 --- a/docs/README.md +++ b/docs/README.md @@ -54,20 +54,9 @@ appreciated**. For detailed contributing guidelines, please see For security policies and procedures, please see [Security](SECURITY#security-policies-and-procedures) -## Copyright Notice and License +## Copyright Notice -[Copyright Notice and License](LICENSE#apache-license) +[Copyright Notice and License](./LICENSE) -Copyright (c) 2025 Cisco and/or its affiliates. - -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. +Distributed under Apache 2.0 License. See LICENSE for more information. +Copyright AGNTCY Contributors (https://github.com/agntcy) diff --git a/examples/Makefile b/examples/Makefile index 5d799bf..038faad 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,3 +1,6 @@ +# Copyright AGNTCY Contributors (https://github.com/agntcy) +# SPDX-License-Identifier: Apache-2.0 + EXAMPLES ?= . VENV_NAME = venv PYTHON = $(VENV_NAME)/bin/python diff --git a/examples/__init__.py b/examples/__init__.py index 1c5f094..9ae9aeb 100644 --- a/examples/__init__.py +++ b/examples/__init__.py @@ -1,2 +1,2 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 diff --git a/examples/langgraph/__init__.py b/examples/langgraph/__init__.py index 227a8bc..9ae9aeb 100644 --- a/examples/langgraph/__init__.py +++ b/examples/langgraph/__init__.py @@ -1,2 +1,2 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. -# SPDX-License-Identifier: Apache-2.0" +# Copyright AGNTCY Contributors (https://github.com/agntcy) +# SPDX-License-Identifier: Apache-2.0 diff --git a/examples/langgraph/imperative.py b/examples/langgraph/imperative.py index 918d1f5..0f4af2b 100644 --- a/examples/langgraph/imperative.py +++ b/examples/langgraph/imperative.py @@ -1,5 +1,6 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 + import logging from datetime import datetime from typing import Optional diff --git a/examples/langgraph/langgraph_pydantic.py b/examples/langgraph/langgraph_pydantic.py index 8db17bc..024a6fd 100644 --- a/examples/langgraph/langgraph_pydantic.py +++ b/examples/langgraph/langgraph_pydantic.py @@ -1,5 +1,6 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 + from typing import List, Optional from langchain_core.messages import SystemMessage @@ -32,7 +33,7 @@ def select_user_node(state: OverallState): def define_campaign_node(state: OverallState): prompt = f""" - You are a campaign builder for company XYZ. Given a list of selected users and a user prompt, create an engaging campaign. + You are a campaign builder for company XYZ. Given a list of selected users and a user prompt, create an engaging campaign. Return the campaign details as a JSON object with the following structure: {{ "name": "Campaign Name", @@ -58,7 +59,7 @@ def define_campaign_node(state: OverallState): def create_communication(state: OverallState): prompt = f""" - You are an email communication creator. Given a campaign and a list of selected users, create an email communication. + You are an email communication creator. Given a campaign and a list of selected users, create an email communication. Return the communication details as a JSON object with the following structure: {{ "subject": "Email Subject", diff --git a/examples/langgraph/langgraph_typedict.py b/examples/langgraph/langgraph_typedict.py index 458f9db..b9f5ad0 100644 --- a/examples/langgraph/langgraph_typedict.py +++ b/examples/langgraph/langgraph_typedict.py @@ -1,3 +1,6 @@ +# Copyright AGNTCY Contributors (https://github.com/agntcy) +# SPDX-License-Identifier: Apache-2.0 + from typing import List, TypedDict, Union from langchain.schema import Document diff --git a/examples/langgraph/langraph_manifest.py b/examples/langgraph/langraph_manifest.py index e69de29..9ae9aeb 100644 --- a/examples/langgraph/langraph_manifest.py +++ b/examples/langgraph/langraph_manifest.py @@ -0,0 +1,2 @@ +# Copyright AGNTCY Contributors (https://github.com/agntcy) +# SPDX-License-Identifier: Apache-2.0 diff --git a/examples/llamaindex/__init__.py b/examples/llamaindex/__init__.py index 227a8bc..9ae9aeb 100644 --- a/examples/llamaindex/__init__.py +++ b/examples/llamaindex/__init__.py @@ -1,2 +1,2 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. -# SPDX-License-Identifier: Apache-2.0" +# Copyright AGNTCY Contributors (https://github.com/agntcy) +# SPDX-License-Identifier: Apache-2.0 diff --git a/examples/llamaindex/llamaindex_workflow.py b/examples/llamaindex/llamaindex_workflow.py index d61a255..ba77080 100644 --- a/examples/llamaindex/llamaindex_workflow.py +++ b/examples/llamaindex/llamaindex_workflow.py @@ -1,5 +1,6 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 + from typing import List, Optional from llama_index.core.output_parsers import PydanticOutputParser @@ -59,7 +60,7 @@ async def create_campaign( self, ctx: Context, ev: CreateCampaignEvent ) -> IOMappingInputEvent: prompt = f""" - You are a campaign builder for company XYZ. Given a list of selected users and a user prompt, create an engaging campaign. + You are a campaign builder for company XYZ. Given a list of selected users and a user prompt, create an engaging campaign. Return the campaign details as a JSON object with the following structure: {{ "name": "Campaign Name", diff --git a/examples/llm.py b/examples/llm.py index 6e93c21..a4ecb7a 100644 --- a/examples/llm.py +++ b/examples/llm.py @@ -1,6 +1,6 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 -# + import os from enum import Enum diff --git a/examples/models/__init__.py b/examples/models/__init__.py index 2833061..d30ae04 100644 --- a/examples/models/__init__.py +++ b/examples/models/__init__.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 from .models import * diff --git a/examples/models/data.py b/examples/models/data.py index bb3b116..5231fe7 100644 --- a/examples/models/data.py +++ b/examples/models/data.py @@ -1,3 +1,6 @@ +# Copyright AGNTCY Contributors (https://github.com/agntcy) +# SPDX-License-Identifier: Apache-2.0 + from typing import List from examples.models import User diff --git a/examples/models/models.py b/examples/models/models.py index 44fd3c7..d6f59df 100644 --- a/examples/models/models.py +++ b/examples/models/models.py @@ -1,5 +1,6 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 + from typing import List, TypedDict from pydantic import BaseModel, Field diff --git a/tests/agentio_data.py b/tests/agentio_data.py index a0449ba..da2729e 100644 --- a/tests/agentio_data.py +++ b/tests/agentio_data.py @@ -1,5 +1,6 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 + from openapi_pydantic import DataType, Schema from agntcy_iomapper.base import ( diff --git a/tests/conftest.py b/tests/conftest.py index f231555..fe24bfe 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,5 +1,6 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 + import pytest from dotenv import find_dotenv, load_dotenv from langchain_openai.chat_models.azure import AzureChatOpenAI diff --git a/tests/test_agent_iomapper_from_manifest.py b/tests/test_agent_iomapper_from_manifest.py index bf8ea94..26a51b2 100644 --- a/tests/test_agent_iomapper_from_manifest.py +++ b/tests/test_agent_iomapper_from_manifest.py @@ -1,5 +1,6 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. -# SPDX-License-Identifier: Apache-2.0" +# Copyright AGNTCY Contributors (https://github.com/agntcy) +# SPDX-License-Identifier: Apache-2.0 + import json from pathlib import Path from typing import List, TypedDict diff --git a/tests/test_imperative_iomapper.py b/tests/test_imperative_iomapper.py index 23c7a88..1daac63 100644 --- a/tests/test_imperative_iomapper.py +++ b/tests/test_imperative_iomapper.py @@ -1,5 +1,6 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 + import json import pytest diff --git a/tests/test_langgraph_agent_iomapper.py b/tests/test_langgraph_agent_iomapper.py index 8ba7d48..393612d 100644 --- a/tests/test_langgraph_agent_iomapper.py +++ b/tests/test_langgraph_agent_iomapper.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 from typing import TypedDict diff --git a/tests/test_langgraph_graph_with_io_mapper.py b/tests/test_langgraph_graph_with_io_mapper.py index a9367a2..dc2dab0 100644 --- a/tests/test_langgraph_graph_with_io_mapper.py +++ b/tests/test_langgraph_graph_with_io_mapper.py @@ -1,5 +1,6 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 + from typing import List, Optional import pytest diff --git a/tests/test_pydantic_ai_agent_iomapper.py b/tests/test_pydantic_ai_agent_iomapper.py index ff895df..d2a3520 100644 --- a/tests/test_pydantic_ai_agent_iomapper.py +++ b/tests/test_pydantic_ai_agent_iomapper.py @@ -1,5 +1,6 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 + import re import pytest @@ -99,7 +100,7 @@ def test_agent_mapping(llm_iomapper_config, jinja_env, input, expected_output): assert len(mapdiff.affected_paths) == 0 -__COMPARE_SYSTEM_PROMPT = """You are comparing two texts for similarity. +__COMPARE_SYSTEM_PROMPT = """You are comparing two texts for similarity. First, write out in a step by step manner your reasoning to be sure that your conclusion is correct. Avoid simply stating the correct answer at the outset. Then print only a single choice from [true, false] (without quotes or punctuation) on its own line corresponding to the correct answer. At the end, repeat just the answer by itself on a new line. """ __COMPARE_USER_PROMPT = """Here is the data: diff --git a/tests/unittests/test_langgraph_node.py b/tests/unittests/test_langgraph_node.py index b890087..cbe9087 100644 --- a/tests/unittests/test_langgraph_node.py +++ b/tests/unittests/test_langgraph_node.py @@ -1,5 +1,6 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 + import pytest from langchain_core.language_models import FakeListChatModel diff --git a/tests/unittests/test_schema_mapping.py b/tests/unittests/test_schema_mapping.py index dbffd00..aab8625 100644 --- a/tests/unittests/test_schema_mapping.py +++ b/tests/unittests/test_schema_mapping.py @@ -1,5 +1,6 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 + from typing import List, Optional from pydantic import BaseModel, Field diff --git a/tests/unittests/test_schema_union_types.py b/tests/unittests/test_schema_union_types.py index c255a2e..ff04a58 100644 --- a/tests/unittests/test_schema_union_types.py +++ b/tests/unittests/test_schema_union_types.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 from enum import Enum diff --git a/tests/util.py b/tests/util.py index 2b49ec0..79526dc 100644 --- a/tests/util.py +++ b/tests/util.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright AGNTCY Contributors (https://github.com/agntcy) # SPDX-License-Identifier: Apache-2.0 import re @@ -18,7 +18,7 @@ class State(TypedDict): output: LangGraphIOMapperOutput -__COMPARE_SYSTEM_PROMPT = """You are comparing two texts for similarity. +__COMPARE_SYSTEM_PROMPT = """You are comparing two texts for similarity. First, write out in a step by step manner your reasoning to be sure that your conclusion is correct. Avoid simply stating the correct answer at the outset. Then print only a single choice from [true, false] (without quotes or punctuation) on its own line corresponding to the correct answer. At the end, repeat just the answer by itself on a new line. """ __COMPARE_USER_PROMPT = """Here is the data: