Skip to content

License update #22

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -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.
28 changes: 2 additions & 26 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Apache License

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

Expand Down Expand Up @@ -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.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
19 changes: 4 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion agntcy_iomapper/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion agntcy_iomapper/agent/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion agntcy_iomapper/agent/agent_io_mapper.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion agntcy_iomapper/base/__init__.py
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
3 changes: 2 additions & 1 deletion agntcy_iomapper/base/base.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion agntcy_iomapper/base/models.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 3 additions & 0 deletions agntcy_iomapper/base/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0

import copy
import json
import logging
Expand Down
4 changes: 2 additions & 2 deletions agntcy_iomapper/imperative/__init__.py
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
5 changes: 3 additions & 2 deletions agntcy_iomapper/imperative/imperative.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions agntcy_iomapper/langgraph/__init__.py
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 2 additions & 2 deletions agntcy_iomapper/langgraph/create_langraph_iomapper.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 2 additions & 1 deletion agntcy_iomapper/langgraph/langgraph.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions agntcy_iomapper/llamaindex/__init__.py
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
5 changes: 3 additions & 2 deletions agntcy_iomapper/llamaindex/llamaindex.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 2 additions & 1 deletion agntcy_iomapper/pydantic_ai.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 2 additions & 1 deletion agntcy_iomapper/version.py
Original file line number Diff line number Diff line change
@@ -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"
22 changes: 22 additions & 0 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<[email protected]>
```

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
Expand Down
24 changes: 0 additions & 24 deletions docs/LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
19 changes: 4 additions & 15 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
3 changes: 3 additions & 0 deletions examples/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/__init__.py
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions examples/langgraph/__init__.py
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion examples/langgraph/imperative.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 4 additions & 3 deletions examples/langgraph/langgraph_pydantic.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions examples/langgraph/langgraph_typedict.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions examples/langgraph/langraph_manifest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0
4 changes: 2 additions & 2 deletions examples/llamaindex/__init__.py
Original file line number Diff line number Diff line change
@@ -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
5 changes: 3 additions & 2 deletions examples/llamaindex/llamaindex_workflow.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions examples/llm.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion examples/models/__init__.py
Original file line number Diff line number Diff line change
@@ -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 *
3 changes: 3 additions & 0 deletions examples/models/data.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion examples/models/models.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading