Skip to content
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
37 changes: 37 additions & 0 deletions .github/workflows/copyright-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Copyright Check

on:
pull_request:
branches:
- main
paths-ignore:
- '**.md'
- '**.svg'
- '**.png'
- 'docs/**'
- '.github/**'
push:
branches:
- main
paths-ignore:
- 'docs/**'
- '.github/**'

jobs:

build:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- name: install sponge
shell: bash
run: sudo apt-get update && sudo apt-get install -y moreutils
- name: generate copyright
shell: bash
run: |
make gen-copyright
- name: check diff
shell: bash
run: |
git diff --exit-code
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ vet: ## Run go vet against code.
lint: golangci-lint ## Run golangci-lint
$(GOLANGCI_LINT) run ./...

# Generate copyright headers
.PHONY: gen-copyright
gen-copyright:
@echo "Adding copyright headers..."
@hack/update-copyright.sh

# Install to system
install: build
@echo "Installing workloadmanager..."
Expand Down
16 changes: 16 additions & 0 deletions cmd/agentd/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
Copyright The Volcano Authors.
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.
*/

package main

import (
Expand Down
14 changes: 14 additions & 0 deletions cmd/cli/agentcube/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright The Volcano Authors.
#
# 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.

"""
AgentCube CLI - A developer tool for packaging, building, and deploying AI agents to AgentCube.
"""
Expand Down
14 changes: 14 additions & 0 deletions cmd/cli/agentcube/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright The Volcano Authors.
#
# 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.

"""
CLI module for AgentCube.
"""
14 changes: 14 additions & 0 deletions cmd/cli/agentcube/cli/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright The Volcano Authors.
#
# 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.

"""
Main CLI entry point for AgentCube.
Expand Down
14 changes: 14 additions & 0 deletions cmd/cli/agentcube/models/pack_models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright The Volcano Authors.
#
# 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.

"""
This module defines the data models used in the pack runtime.
"""
Expand Down
14 changes: 14 additions & 0 deletions cmd/cli/agentcube/operations/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright The Volcano Authors.
#
# 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.

"""
Operations module for AgentCube.
Expand Down
14 changes: 14 additions & 0 deletions cmd/cli/agentcube/runtime/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright The Volcano Authors.
#
# 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.

"""
Runtime module for AgentCube.
Expand Down
14 changes: 14 additions & 0 deletions cmd/cli/agentcube/runtime/build_runtime.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright The Volcano Authors.
#
# 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.

"""
Build runtime for AgentCube.
Expand Down
14 changes: 14 additions & 0 deletions cmd/cli/agentcube/runtime/invoke_runtime.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright The Volcano Authors.
#
# 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.

"""
Invoke runtime for AgentCube.
Expand Down
14 changes: 14 additions & 0 deletions cmd/cli/agentcube/runtime/pack_runtime.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright The Volcano Authors.
#
# 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.

"""
Pack runtime for AgentCube.
Expand Down
14 changes: 14 additions & 0 deletions cmd/cli/agentcube/runtime/publish_runtime.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright The Volcano Authors.
#
# 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.

"""
Publish runtime for AgentCube.
Expand Down
14 changes: 14 additions & 0 deletions cmd/cli/agentcube/runtime/status_runtime.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright The Volcano Authors.
#
# 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.

"""
Status runtime for AgentCube.

Expand Down
14 changes: 14 additions & 0 deletions cmd/cli/agentcube/services/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright The Volcano Authors.
#
# 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.

"""
Services module for AgentCube.
Expand Down
14 changes: 14 additions & 0 deletions cmd/cli/agentcube/services/agentcube_provider.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright The Volcano Authors.
#
# 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.

"""
AgentCube provider for deploying AgentRuntime CRs to Kubernetes.
Expand Down
14 changes: 14 additions & 0 deletions cmd/cli/agentcube/services/docker_service.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright The Volcano Authors.
#
# 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.

"""
Docker service for building and managing container images.

Expand Down
14 changes: 14 additions & 0 deletions cmd/cli/agentcube/services/k8s_provider.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright The Volcano Authors.
#
# 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.

"""
Kubernetes provider for local agent deployment.

Expand Down
14 changes: 14 additions & 0 deletions cmd/cli/agentcube/services/metadata_service.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright The Volcano Authors.
#
# 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.

"""
Metadata service for handling agent metadata configuration.
Expand Down
14 changes: 14 additions & 0 deletions cmd/cli/examples/hello-agent/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright The Volcano Authors.
#
# 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.

#!/usr/bin/env python3
"""
Hello Agent - A simple example AI agent.
Expand Down
14 changes: 14 additions & 0 deletions cmd/cli/examples/math-agent/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright The Volcano Authors.
#
# 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.

#!/usr/bin/env python3
"""
Math Agent - An example AI agent using LangChain and LangGraph.
Expand Down
Loading
Loading