Skip to content

Commit 3b24c41

Browse files
raylchenraychen911
authored andcommitted
docs: 整理 openclaw 的文档和版权
1 parent 363b0ef commit 3b24c41

54 files changed

Lines changed: 1208 additions & 133 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/mkdocs/en/openclaw.md

Lines changed: 403 additions & 0 deletions
Large diffs are not rendered by default.

docs/mkdocs/zh/openclaw.md

Lines changed: 403 additions & 0 deletions
Large diffs are not rendered by default.

trpc_agent_sdk/memory/_in_memory_memory_service.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,23 @@
33
# Copyright (C) 2026 Tencent. All rights reserved.
44
#
55
# tRPC-Agent-Python is licensed under Apache-2.0.
6+
#
7+
# Directly reuse the types from adk-python
8+
# Below code are copy and modified from https://github.com/google/adk-python.git
9+
#
10+
# Copyright 2025 Google LLC
11+
#
12+
# Licensed under the Apache License, Version 2.0 (the "License");
13+
# you may not use this file except in compliance with the License.
14+
# You may obtain a copy of the License at
15+
#
16+
# http://www.apache.org/licenses/LICENSE-2.0
17+
#
18+
# Unless required by applicable law or agreed to in writing, software
19+
# distributed under the License is distributed on an "AS IS" BASIS,
20+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21+
# See the License for the specific language governing permissions and
22+
# limitations under the License.
623
"""An in-memory memory service for prototyping purpose only."""
724

825
from __future__ import annotations
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
# -*- coding: utf-8 -*-
1+
# Tencent is pleased to support the open source community by making tRPC-Agent-Python available.
22
#
3-
# Copyright @ 2026 Tencent.com
3+
# Copyright (C) 2026 Tencent. All rights reserved.
4+
#
5+
# tRPC-Agent-Python is licensed under Apache-2.0.

trpc_agent_sdk/server/openclaw/_cli.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# -*- coding: utf-8 -*-
1+
# Tencent is pleased to support the open source community by making tRPC-Agent-Python available.
22
#
3-
# Copyright @ 2026 Tencent.com
3+
# Copyright (C) 2026 Tencent. All rights reserved.
4+
#
5+
# tRPC-Agent-Python is licensed under Apache-2.0.
46
"""CLI entry point for OpenClaw runtime.
57
68
This module provides a nanobot-style command layout while staying aligned with

trpc_agent_sdk/server/openclaw/_logger.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# -*- coding: utf-8 -*-
1+
# Tencent is pleased to support the open source community by making tRPC-Agent-Python available.
22
#
3-
# Copyright @ 2026 Tencent.com
3+
# Copyright (C) 2026 Tencent. All rights reserved.
4+
#
5+
# tRPC-Agent-Python is licensed under Apache-2.0.
46
"""This file is used to forward nanobot/loguru logs to trpc_agent_sdk logger."""
57

68
import logging

trpc_agent_sdk/server/openclaw/_utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# -*- coding: utf-8 -*-
1+
# Tencent is pleased to support the open source community by making tRPC-Agent-Python available.
22
#
3-
# Copyright @ 2026 Tencent.com
3+
# Copyright (C) 2026 Tencent. All rights reserved.
4+
#
5+
# tRPC-Agent-Python is licensed under Apache-2.0.
46
"""This file is used to parse the origin of an inbound message."""
57

68
import mimetypes

trpc_agent_sdk/server/openclaw/agent/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# -*- coding: utf-8 -*-
1+
# Tencent is pleased to support the open source community by making tRPC-Agent-Python available.
22
#
3-
# Copyright @ 2026 Tencent.com
3+
# Copyright (C) 2026 Tencent. All rights reserved.
4+
#
5+
# tRPC-Agent-Python is licensed under Apache-2.0.
46
"""Agent module for trpc-claw."""
57

68
from ._agent import create_agent

trpc_agent_sdk/server/openclaw/agent/_agent.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# -*- coding: utf-8 -*-
1+
# Tencent is pleased to support the open source community by making tRPC-Agent-Python available.
22
#
3-
# Copyright @ 2026 Tencent.com
3+
# Copyright (C) 2026 Tencent. All rights reserved.
4+
#
5+
# tRPC-Agent-Python is licensed under Apache-2.0.
46
"""ClawAgent definition.
57
68
This module only defines and wires the agent objects — no runtime loop.

trpc_agent_sdk/server/openclaw/agent/_prompts.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1-
# -*- coding: utf-8 -*-
1+
# Tencent is pleased to support the open source community by making tRPC-Agent-Python available.
2+
#
3+
# Copyright (C) 2026 Tencent. All rights reserved.
4+
#
5+
# This file is part of tRPC-Agent-Python and is licensed under Apache-2.0.
6+
#
7+
# Portions of this file are derived from HKUDS/nanobot (MIT License):
8+
# https://github.com/HKUDS/nanobot.git
9+
#
10+
# Copyright (c) 2025 nanobot contributors
11+
#
12+
# See the project LICENSE / third-party attribution notices for details.
213
#
3-
# Copyright @ 2026 Tencent.com
414
"""Prompts for agent."""
515

616
import platform

0 commit comments

Comments
 (0)