@agenticforge/tools 1.1.4 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +123 -23
- package/README.zh_CN.md +124 -20
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/types/AsyncToolExecutor.d.ts +1 -1
- package/dist/types/AsyncToolExecutor.d.ts.map +1 -1
- package/dist/types/Tool.d.ts +23 -2
- package/dist/types/Tool.d.ts.map +1 -1
- package/dist/types/ToolChain.d.ts +1 -1
- package/dist/types/ToolChain.d.ts.map +1 -1
- package/dist/types/ToolRegistry.d.ts +2 -1
- package/dist/types/ToolRegistry.d.ts.map +1 -1
- package/package.json +12 -12
- package/LICENSE +0 -437
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# @agenticforge/tools
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@agenticforge/tools)
|
|
4
|
-
[](https://creativecommons.org/licenses/by-nc-sa/4.0/)
|
|
5
5
|
|
|
6
6
|
<p><a href="./README.zh_CN.md">中文</a> | <strong>English</strong></p>
|
|
7
7
|
|
|
8
|
-
Tool abstraction layer for AgenticFORGE
|
|
8
|
+
Tool abstraction layer for AgenticFORGE — `Tool` base class, `ToolRegistry`, `ToolChain`, and async executor.
|
|
9
9
|
|
|
10
10
|
## Installation
|
|
11
11
|
|
|
@@ -17,37 +17,137 @@ npm install @agenticforge/tools
|
|
|
17
17
|
|
|
18
18
|
| Name | Description |
|
|
19
19
|
|------|-------------|
|
|
20
|
-
| `Tool` |
|
|
21
|
-
| `
|
|
22
|
-
| `ToolRegistry` |
|
|
23
|
-
| `ToolChain` |
|
|
24
|
-
| `
|
|
20
|
+
| `Tool` | Abstract base class — extend it to define tools with typed parameters and execution logic |
|
|
21
|
+
| `defineFunctionTool` | Factory for creating lightweight function tools with optional Zod schema |
|
|
22
|
+
| `ToolRegistry` | Central registry for managing and executing tools |
|
|
23
|
+
| `ToolChain` | Sequential pipeline — compose multiple tools where each step feeds the next |
|
|
24
|
+
| `ToolChainManager` | Manages multiple named `ToolChain` instances |
|
|
25
|
+
| `AsyncToolExecutor` | Executes a batch of tool calls concurrently with bounded concurrency |
|
|
25
26
|
|
|
26
27
|
## Usage
|
|
27
28
|
|
|
29
|
+
### Extending `Tool` (recommended for complex tools)
|
|
30
|
+
|
|
28
31
|
```ts
|
|
29
|
-
import {Tool,
|
|
30
|
-
import {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
]
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
import { Tool, ToolRegistry } from "@agenticforge/tools";
|
|
33
|
+
import type { ToolParameter } from "@agenticforge/tools";
|
|
34
|
+
|
|
35
|
+
class SearchTool extends Tool {
|
|
36
|
+
constructor() {
|
|
37
|
+
super("search", "Search the web for information");
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
getParameters(): ToolParameter[] {
|
|
41
|
+
return [
|
|
42
|
+
{ name: "query", type: "string", description: "Search query", required: true, default: null },
|
|
43
|
+
{ name: "limit", type: "number", description: "Max results", required: false, default: 5 },
|
|
44
|
+
];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
async run(params: Record<string, unknown>): Promise<string> {
|
|
48
|
+
return `Search results for: ${params.query}`;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
42
51
|
|
|
43
52
|
const registry = new ToolRegistry();
|
|
44
|
-
registry.
|
|
53
|
+
registry.registerTool(new SearchTool());
|
|
45
54
|
|
|
46
|
-
const
|
|
47
|
-
const result = await tool.execute({query: "AgenticFORGE"});
|
|
55
|
+
const result = await registry.execute("search", { query: "AgenticFORGE" });
|
|
48
56
|
console.log(result);
|
|
49
57
|
```
|
|
50
58
|
|
|
59
|
+
### Custom Zod schema override (optional)
|
|
60
|
+
|
|
61
|
+
For precise validation beyond the auto-generated schema, override `zodSchema()`:
|
|
62
|
+
|
|
63
|
+
```ts
|
|
64
|
+
import { Tool, z } from "@agenticforge/tools";
|
|
65
|
+
import type { ToolParameter } from "@agenticforge/tools";
|
|
66
|
+
|
|
67
|
+
class FetchUrlTool extends Tool {
|
|
68
|
+
constructor() {
|
|
69
|
+
super("fetch-url", "Fetch content from a URL");
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
getParameters(): ToolParameter[] {
|
|
73
|
+
return [
|
|
74
|
+
{ name: "url", type: "string", description: "Target URL", required: true, default: null },
|
|
75
|
+
];
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Override for stricter validation (e.g. URL format check)
|
|
79
|
+
protected zodSchema() {
|
|
80
|
+
return z.object({
|
|
81
|
+
url: z.string().url("Must be a valid URL"),
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
async run(params: Record<string, unknown>): Promise<string> {
|
|
86
|
+
const res = await fetch(String(params.url));
|
|
87
|
+
return await res.text();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Using `defineFunctionTool` (lightweight function tools)
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
import { defineFunctionTool, ToolRegistry } from "@agenticforge/tools";
|
|
96
|
+
import { z } from "zod";
|
|
97
|
+
|
|
98
|
+
const echoTool = defineFunctionTool({
|
|
99
|
+
name: "echo",
|
|
100
|
+
description: "Echo the input back",
|
|
101
|
+
schema: z.object({ message: z.string() }),
|
|
102
|
+
func: ({ message }) => message.toUpperCase(),
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
const registry = new ToolRegistry();
|
|
106
|
+
registry.registerFunction(echoTool.name, echoTool.description, echoTool.func, echoTool.schema);
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### ToolChain — sequential pipelines
|
|
110
|
+
|
|
111
|
+
```ts
|
|
112
|
+
import { ToolChain, ToolRegistry } from "@agenticforge/tools";
|
|
113
|
+
|
|
114
|
+
const chain = new ToolChain("search-and-summarize", "Search then summarize");
|
|
115
|
+
chain.addStep("search", "{input}", "raw_results");
|
|
116
|
+
chain.addStep("summarize", "{raw_results}", "summary");
|
|
117
|
+
|
|
118
|
+
const result = await chain.execute(registry, "AgenticFORGE latest news");
|
|
119
|
+
console.log(result); // value stored under "summary"
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### AsyncToolExecutor — parallel batch execution
|
|
123
|
+
|
|
124
|
+
```ts
|
|
125
|
+
import { AsyncToolExecutor, ToolRegistry } from "@agenticforge/tools";
|
|
126
|
+
|
|
127
|
+
const executor = new AsyncToolExecutor(registry, 4); // max 4 concurrent
|
|
128
|
+
const results = await executor.executeBatch([
|
|
129
|
+
{ id: "r1", toolName: "search", parameters: { query: "AI news" } },
|
|
130
|
+
{ id: "r2", toolName: "search", parameters: { query: "frontend trends" } },
|
|
131
|
+
]);
|
|
132
|
+
|
|
133
|
+
for (const r of results) {
|
|
134
|
+
console.log(r.id, r.output, r.durationMs);
|
|
135
|
+
}
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
## Parameter Validation
|
|
139
|
+
|
|
140
|
+
`Tool` subclasses get automatic parameter validation powered by Zod — no extra code needed:
|
|
141
|
+
|
|
142
|
+
| Behavior | Detail |
|
|
143
|
+
|---|---|
|
|
144
|
+
| Required field check | Returns `Error: <field>: Required` if a required param is missing |
|
|
145
|
+
| Type coercion | `number` / `boolean` params auto-coerce from strings (e.g. `"42"` → `42`) |
|
|
146
|
+
| Default filling | Optional params are filled with `default` value when omitted |
|
|
147
|
+
| Custom schema | Override `zodSchema()` for precise rules (`.url()`, `.email()`, `.min()`, etc.) |
|
|
148
|
+
|
|
149
|
+
When `ToolRegistry.execute()` is called, validation runs before `run()`. On failure, an `"Error: ..."` string is returned to the caller (LLM-friendly) rather than throwing.
|
|
150
|
+
|
|
51
151
|
## Links
|
|
52
152
|
|
|
53
153
|
- [GitHub](https://github.com/LittleBlacky/AgenticFORGE/tree/main/packages/tools)
|
package/README.zh_CN.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# @agenticforge/tools
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@agenticforge/tools)
|
|
4
|
-
[](https://creativecommons.org/licenses/by-nc-sa/4.0/)
|
|
5
5
|
|
|
6
6
|
<p><strong>中文</strong> | <a href="./README.md">English</a></p>
|
|
7
7
|
|
|
8
|
-
AgenticFORGE 工具核心包,提供 Tool
|
|
8
|
+
AgenticFORGE 工具核心包,提供 `Tool` 抽象基类、`ToolRegistry`、`ToolChain` 与异步执行器。
|
|
9
9
|
|
|
10
10
|
## 安装
|
|
11
11
|
|
|
@@ -17,33 +17,137 @@ npm install @agenticforge/tools
|
|
|
17
17
|
|
|
18
18
|
| 名称 | 说明 |
|
|
19
19
|
|------|------|
|
|
20
|
-
| `Tool` |
|
|
21
|
-
| `
|
|
22
|
-
| `ToolRegistry` |
|
|
23
|
-
| `ToolChain` |
|
|
24
|
-
| `
|
|
20
|
+
| `Tool` | 抽象基类 — 继承它来定义带类型参数和执行逻辑的工具 |
|
|
21
|
+
| `defineFunctionTool` | 轻量函数工具工厂,支持可选 Zod schema |
|
|
22
|
+
| `ToolRegistry` | 工具注册表,统一管理和执行工具 |
|
|
23
|
+
| `ToolChain` | 顺序管道 — 将多个工具串联,前一步输出作为后一步输入 |
|
|
24
|
+
| `ToolChainManager` | 管理多个命名的 `ToolChain` 实例 |
|
|
25
|
+
| `AsyncToolExecutor` | 有并发上限的批量工具执行器 |
|
|
25
26
|
|
|
26
27
|
## 使用示例
|
|
27
28
|
|
|
29
|
+
### 继承 `Tool`(推荐用于复杂工具)
|
|
30
|
+
|
|
28
31
|
```ts
|
|
29
|
-
import {Tool,
|
|
30
|
-
import {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
32
|
+
import { Tool, ToolRegistry } from "@agenticforge/tools";
|
|
33
|
+
import type { ToolParameter } from "@agenticforge/tools";
|
|
34
|
+
|
|
35
|
+
class SearchTool extends Tool {
|
|
36
|
+
constructor() {
|
|
37
|
+
super("search", "搜索互联网信息");
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
getParameters(): ToolParameter[] {
|
|
41
|
+
return [
|
|
42
|
+
{ name: "query", type: "string", description: "搜索关键词", required: true, default: null },
|
|
43
|
+
{ name: "limit", type: "number", description: "最大结果数", required: false, default: 5 },
|
|
44
|
+
];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
async run(params: Record<string, unknown>): Promise<string> {
|
|
48
|
+
return `搜索结果:${params.query} 相关内容...`;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
40
51
|
|
|
41
52
|
const registry = new ToolRegistry();
|
|
42
|
-
registry.
|
|
43
|
-
|
|
53
|
+
registry.registerTool(new SearchTool());
|
|
54
|
+
|
|
55
|
+
const result = await registry.execute("search", { query: "AgenticFORGE" });
|
|
44
56
|
console.log(result);
|
|
45
57
|
```
|
|
46
58
|
|
|
59
|
+
### 自定义 Zod schema(可选)
|
|
60
|
+
|
|
61
|
+
需要比自动生成更精确的校验时,覆盖 `zodSchema()` 方法:
|
|
62
|
+
|
|
63
|
+
```ts
|
|
64
|
+
import { Tool, z } from "@agenticforge/tools";
|
|
65
|
+
import type { ToolParameter } from "@agenticforge/tools";
|
|
66
|
+
|
|
67
|
+
class FetchUrlTool extends Tool {
|
|
68
|
+
constructor() {
|
|
69
|
+
super("fetch-url", "获取网页内容");
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
getParameters(): ToolParameter[] {
|
|
73
|
+
return [
|
|
74
|
+
{ name: "url", type: "string", description: "目标 URL", required: true, default: null },
|
|
75
|
+
];
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// 覆盖以启用更严格的校验(如 URL 格式验证)
|
|
79
|
+
protected zodSchema() {
|
|
80
|
+
return z.object({
|
|
81
|
+
url: z.string().url("必须是合法的 URL 格式"),
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
async run(params: Record<string, unknown>): Promise<string> {
|
|
86
|
+
const res = await fetch(String(params.url));
|
|
87
|
+
return await res.text();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### 使用 `defineFunctionTool`(轻量函数工具)
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
import { defineFunctionTool, ToolRegistry } from "@agenticforge/tools";
|
|
96
|
+
import { z } from "zod";
|
|
97
|
+
|
|
98
|
+
const echoTool = defineFunctionTool({
|
|
99
|
+
name: "echo",
|
|
100
|
+
description: "将输入原样返回",
|
|
101
|
+
schema: z.object({ message: z.string() }),
|
|
102
|
+
func: ({ message }) => message.toUpperCase(),
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
const registry = new ToolRegistry();
|
|
106
|
+
registry.registerFunction(echoTool.name, echoTool.description, echoTool.func, echoTool.schema);
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### ToolChain — 顺序管道
|
|
110
|
+
|
|
111
|
+
```ts
|
|
112
|
+
import { ToolChain, ToolRegistry } from "@agenticforge/tools";
|
|
113
|
+
|
|
114
|
+
const chain = new ToolChain("search-and-summarize", "搜索后摘要");
|
|
115
|
+
chain.addStep("search", "{input}", "raw_results");
|
|
116
|
+
chain.addStep("summarize", "{raw_results}", "summary");
|
|
117
|
+
|
|
118
|
+
const result = await chain.execute(registry, "AgenticFORGE 最新动态");
|
|
119
|
+
console.log(result); // summary 步骤的输出
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### AsyncToolExecutor — 并发批量执行
|
|
123
|
+
|
|
124
|
+
```ts
|
|
125
|
+
import { AsyncToolExecutor, ToolRegistry } from "@agenticforge/tools";
|
|
126
|
+
|
|
127
|
+
const executor = new AsyncToolExecutor(registry, 4); // 最多 4 个并发
|
|
128
|
+
const results = await executor.executeBatch([
|
|
129
|
+
{ id: "r1", toolName: "search", parameters: { query: "AI 新闻" } },
|
|
130
|
+
{ id: "r2", toolName: "search", parameters: { query: "前端趋势" } },
|
|
131
|
+
]);
|
|
132
|
+
|
|
133
|
+
for (const r of results) {
|
|
134
|
+
console.log(r.id, r.output, r.durationMs);
|
|
135
|
+
}
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
## 参数校验机制
|
|
139
|
+
|
|
140
|
+
`Tool` 子类内置了基于 Zod 的自动参数校验,无需额外代码:
|
|
141
|
+
|
|
142
|
+
| 行为 | 说明 |
|
|
143
|
+
|---|---|
|
|
144
|
+
| 必填字段检查 | 缺少 required 参数时返回 `Error: <字段>: Required` |
|
|
145
|
+
| 类型强制转换 | `number` / `boolean` 类型参数会自动从字符串转换(如 `"42"` → `42`) |
|
|
146
|
+
| 默认值填充 | 可选参数缺省时自动填入 `default` 值 |
|
|
147
|
+
| 自定义 schema | 覆盖 `zodSchema()` 以启用精确规则(`.url()`、`.email()`、`.min()` 等) |
|
|
148
|
+
|
|
149
|
+
`ToolRegistry.execute()` 执行时会先做参数校验,校验失败返回 `"Error: ..."` 字符串(对 LLM 友好),而不是抛出异常。
|
|
150
|
+
|
|
47
151
|
## 链接
|
|
48
152
|
|
|
49
153
|
- [GitHub](https://github.com/LittleBlacky/AgenticFORGE/tree/main/packages/tools)
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var e=require("zod");const t=Symbol("tool:actions");function s(e){const t=(e??"string").toLowerCase();return["string","number","integer","boolean","array","object"].includes(t)?t:"string"}function r(e,t){return e.replace(/\{(\w+)\}/g,(e,s)=>t[s]??`{${s}}`)}Object.defineProperty(exports,"z",{enumerable:!0,get:function(){return e.z}}),exports.AsyncToolExecutor=class{registry;concurrency;constructor(e,t=4){this.registry=e,this.concurrency=Math.max(1,t)}async executeBatch(e){const t=[];let s=0;const r=Array.from({length:Math.min(this.concurrency,e.length)},async()=>{for(;s<e.length;){const r=e[s++];t.push(await this.executeSingle(r))}});return await Promise.all(r),t}async executeSingle(e){const t=Date.now();try{const s=await this.registry.execute(e.toolName,e.parameters);return{id:e.id,toolName:e.toolName,output:s,durationMs:Date.now()-t}}catch(s){return{id:e.id,toolName:e.toolName,output:"",error:s instanceof Error?s.message:String(s),durationMs:Date.now()-t}}}},exports.Tool=class{name;description;expandable;_zodSchemaCache=null;constructor(e,t,s=!1){this.name=e,this.description=t,this.expandable=s}zodSchema(){return null}buildZodSchema(){if(this._zodSchemaCache)return this._zodSchemaCache;const t={};for(const s of this.getParameters()){let r;switch(s.type){case"number":r=e.z.coerce.number();break;case"integer":r=e.z.coerce.number().int();break;case"boolean":r=e.z.coerce.boolean();break;case"array":r=e.z.array(e.z.unknown());break;case"object":r=e.z.record(e.z.string(),e.z.unknown());break;default:r=e.z.string()}if(s.required)t[s.name]=r;else{const e=null!==s.default&&void 0!==s.default?r.default(s.default):r.optional();t[s.name]=e}}return this._zodSchemaCache=e.z.object(t),this._zodSchemaCache}validateParameters(e){return this.validateAndNormalizeParameters(e).success}validateAndNormalizeParameters(e){const t=(this.zodSchema()??this.buildZodSchema()).safeParse(e);return t.success?{success:!0,data:t.data}:{success:!1,error:t.error.issues.map(e=>`${e.path.join(".")||"input"}: ${e.message}`).join("; ")}}toOpenAISchema(){const e=this.getParameters(),t={},r=[];for(const n of e)t[n.name]={type:s(n.type),description:n.description,...null!==n.default&&void 0!==n.default?{default:n.default}:{}},n.required&&r.push(n.name);return{type:"function",function:{name:this.name,description:this.description,parameters:{type:"object",properties:t,...r.length>0?{required:r}:{}}}}}describe(){const e=this.getParameters().map(e=>` - ${e.name} (${e.type}${e.required?", required":""}): ${e.description}`).join("\n");return`Tool: ${this.name}\nDescription: ${this.description}\nParameters:\n${e}`}},exports.ToolChain=class{name;description;steps=[];constructor(e,t){this.name=e,this.description=t}addStep(e,t,s){return this.steps.push({toolName:e,inputTemplate:t,outputKey:s}),this}getSteps(){return[...this.steps]}async execute(e,t){const s={input:t};for(const t of this.steps){const n=r(t.inputTemplate,s),o=await e.execute(t.toolName,{input:n});s[t.outputKey]=o}const n=this.steps[this.steps.length-1];return n?s[n.outputKey]??t:t}},exports.ToolChainManager=class{chains=new Map;registry;constructor(e){this.registry=e}registerChain(e){this.chains.set(e.name,e)}getChain(e){return this.chains.get(e)}listChains(){return Array.from(this.chains.keys())}async executeChain(e,t){const s=this.chains.get(e);if(!s)throw new Error(`ToolChain not found: ${e}`);return s.execute(this.registry,t)}},exports.ToolRegistry=class{tools=new Map;functions=new Map;registerTool(e){this.tools.set(e.name,e)}unregisterTool(e){return this.tools.delete(e)}registerFunction(e,t,s,r){this.functions.set(e,{name:e,description:t,func:s,schema:r})}unregisterFunction(e){return this.functions.delete(e)}getTool(e){return this.tools.get(e)}getFunction(e){return this.functions.get(e)}getAllTools(){return Array.from(this.tools.values())}listTools(){return[...Array.from(this.tools.keys()),...Array.from(this.functions.keys())]}hasTool(e){return this.tools.has(e)||this.functions.has(e)}async execute(e,t){const s=this.tools.get(e);if(s){const e=s.validateAndNormalizeParameters(t);return e.success?await s.run(e.data):`Error: ${e.error}`}const r=this.functions.get(e);if(r){if(r.schema){const e=r.schema.safeParse(t);return e.success?await r.func(e.data):`Error: ${e.error.issues.map(e=>`${e.path.join(".")||"input"}: ${e.message}`).join("; ")}`}return await r.func(t)}throw new Error(`Tool not found: ${e}`)}getAvailableTools(){const e=[];for(const t of this.tools.values())e.push(t.describe());for(const t of this.functions.values())e.push(`Tool: ${t.name}\nDescription: ${t.description}`);return 0===e.length?"暂无可用工具":e.join("\n\n")}getOpenAISchemas(){const t=[];for(const e of this.tools.values())t.push(e.toOpenAISchema());for(const s of this.functions.values()){let r={type:"object",properties:{input:{type:"string",description:"输入文本"}},required:["input"]};if(s.schema)try{r=e.z.toJSONSchema(s.schema,{target:"draft-7"})}catch{}t.push({type:"function",function:{name:s.name,description:s.description,parameters:r}})}return t}},exports.defineFunctionTool=function(e){return e},exports.toolAction=function(e,s){return function(r,n,o){const i=Reflect.getMetadata(t,r)??[];i.push({key:e,description:s,method:n}),Reflect.defineMetadata(t,i,r)}};
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{z}from"zod";const t=Symbol("tool:actions");function
|
|
1
|
+
import{z as e}from"zod";export{z}from"zod";const t=Symbol("tool:actions");function s(e,s){return function(r,n,o){const a=Reflect.getMetadata(t,r)??[];a.push({key:e,description:s,method:n}),Reflect.defineMetadata(t,a,r)}}class r{name;description;expandable;_zodSchemaCache=null;constructor(e,t,s=!1){this.name=e,this.description=t,this.expandable=s}zodSchema(){return null}buildZodSchema(){if(this._zodSchemaCache)return this._zodSchemaCache;const t={};for(const s of this.getParameters()){let r;switch(s.type){case"number":r=e.coerce.number();break;case"integer":r=e.coerce.number().int();break;case"boolean":r=e.coerce.boolean();break;case"array":r=e.array(e.unknown());break;case"object":r=e.record(e.string(),e.unknown());break;default:r=e.string()}if(s.required)t[s.name]=r;else{const e=null!==s.default&&void 0!==s.default?r.default(s.default):r.optional();t[s.name]=e}}return this._zodSchemaCache=e.object(t),this._zodSchemaCache}validateParameters(e){return this.validateAndNormalizeParameters(e).success}validateAndNormalizeParameters(e){const t=(this.zodSchema()??this.buildZodSchema()).safeParse(e);return t.success?{success:!0,data:t.data}:{success:!1,error:t.error.issues.map(e=>`${e.path.join(".")||"input"}: ${e.message}`).join("; ")}}toOpenAISchema(){const e=this.getParameters(),t={},s=[];for(const r of e)t[r.name]={type:n(r.type),description:r.description,...null!==r.default&&void 0!==r.default?{default:r.default}:{}},r.required&&s.push(r.name);return{type:"function",function:{name:this.name,description:this.description,parameters:{type:"object",properties:t,...s.length>0?{required:s}:{}}}}}describe(){const e=this.getParameters().map(e=>` - ${e.name} (${e.type}${e.required?", required":""}): ${e.description}`).join("\n");return`Tool: ${this.name}\nDescription: ${this.description}\nParameters:\n${e}`}}function n(e){const t=(e??"string").toLowerCase();return["string","number","integer","boolean","array","object"].includes(t)?t:"string"}function o(e){return e}class a{name;description;steps=[];constructor(e,t){this.name=e,this.description=t}addStep(e,t,s){return this.steps.push({toolName:e,inputTemplate:t,outputKey:s}),this}getSteps(){return[...this.steps]}async execute(e,t){const s={input:t};for(const t of this.steps){const r=c(t.inputTemplate,s),n=await e.execute(t.toolName,{input:r});s[t.outputKey]=n}const r=this.steps[this.steps.length-1];return r?s[r.outputKey]??t:t}}class i{chains=new Map;registry;constructor(e){this.registry=e}registerChain(e){this.chains.set(e.name,e)}getChain(e){return this.chains.get(e)}listChains(){return Array.from(this.chains.keys())}async executeChain(e,t){const s=this.chains.get(e);if(!s)throw new Error(`ToolChain not found: ${e}`);return s.execute(this.registry,t)}}function c(e,t){return e.replace(/\{(\w+)\}/g,(e,s)=>t[s]??`{${s}}`)}class u{tools=new Map;functions=new Map;registerTool(e){this.tools.set(e.name,e)}unregisterTool(e){return this.tools.delete(e)}registerFunction(e,t,s,r){this.functions.set(e,{name:e,description:t,func:s,schema:r})}unregisterFunction(e){return this.functions.delete(e)}getTool(e){return this.tools.get(e)}getFunction(e){return this.functions.get(e)}getAllTools(){return Array.from(this.tools.values())}listTools(){return[...Array.from(this.tools.keys()),...Array.from(this.functions.keys())]}hasTool(e){return this.tools.has(e)||this.functions.has(e)}async execute(e,t){const s=this.tools.get(e);if(s){const e=s.validateAndNormalizeParameters(t);return e.success?await s.run(e.data):`Error: ${e.error}`}const r=this.functions.get(e);if(r){if(r.schema){const e=r.schema.safeParse(t);return e.success?await r.func(e.data):`Error: ${e.error.issues.map(e=>`${e.path.join(".")||"input"}: ${e.message}`).join("; ")}`}return await r.func(t)}throw new Error(`Tool not found: ${e}`)}getAvailableTools(){const e=[];for(const t of this.tools.values())e.push(t.describe());for(const t of this.functions.values())e.push(`Tool: ${t.name}\nDescription: ${t.description}`);return 0===e.length?"暂无可用工具":e.join("\n\n")}getOpenAISchemas(){const t=[];for(const e of this.tools.values())t.push(e.toOpenAISchema());for(const s of this.functions.values()){let r={type:"object",properties:{input:{type:"string",description:"输入文本"}},required:["input"]};if(s.schema)try{r=e.toJSONSchema(s.schema,{target:"draft-7"})}catch{}t.push({type:"function",function:{name:s.name,description:s.description,parameters:r}})}return t}}class h{registry;concurrency;constructor(e,t=4){this.registry=e,this.concurrency=Math.max(1,t)}async executeBatch(e){const t=[];let s=0;const r=Array.from({length:Math.min(this.concurrency,e.length)},async()=>{for(;s<e.length;){const r=e[s++];t.push(await this.executeSingle(r))}});return await Promise.all(r),t}async executeSingle(e){const t=Date.now();try{const s=await this.registry.execute(e.toolName,e.parameters);return{id:e.id,toolName:e.toolName,output:s,durationMs:Date.now()-t}}catch(s){return{id:e.id,toolName:e.toolName,output:"",error:s instanceof Error?s.message:String(s),durationMs:Date.now()-t}}}}export{h as AsyncToolExecutor,r as Tool,a as ToolChain,i as ToolChainManager,u as ToolRegistry,o as defineFunctionTool,s as toolAction};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AsyncToolExecutor.d.ts","sourceRoot":"","sources":["../../src/AsyncToolExecutor.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"AsyncToolExecutor.d.ts","sourceRoot":"","sources":["../../src/AsyncToolExecutor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAe;IACxC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;gBAEzB,QAAQ,EAAE,YAAY,EAAE,WAAW,SAAI;IAKnD;;OAEG;IACG,YAAY,CAAC,QAAQ,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAgB1E;;OAEG;IACG,aAAa,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC;CAoBvE"}
|
package/dist/types/Tool.d.ts
CHANGED
|
@@ -24,16 +24,37 @@ export declare abstract class Tool {
|
|
|
24
24
|
readonly name: string;
|
|
25
25
|
readonly description: string;
|
|
26
26
|
readonly expandable: boolean;
|
|
27
|
+
private _zodSchemaCache;
|
|
27
28
|
constructor(name: string, description: string, expandable?: boolean);
|
|
28
29
|
abstract run(parameters: Record<string, unknown>): Promise<string> | string;
|
|
29
30
|
abstract getParameters(): ToolParameter[];
|
|
30
31
|
/**
|
|
31
|
-
*
|
|
32
|
+
* Optional override: provide a custom Zod schema for precise validation.
|
|
33
|
+
* If not overridden, a schema is automatically built from getParameters().
|
|
34
|
+
*
|
|
35
|
+
* ```ts
|
|
36
|
+
* protected zodSchema() {
|
|
37
|
+
* return z.object({
|
|
38
|
+
* url: z.string().url("Must be a valid URL"),
|
|
39
|
+
* count: z.number().int().min(1).max(100),
|
|
40
|
+
* });
|
|
41
|
+
* }
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
protected zodSchema(): z.ZodObject<z.ZodRawShape> | null;
|
|
45
|
+
/**
|
|
46
|
+
* Build a Zod schema from getParameters() with type coercion.
|
|
47
|
+
* Uses cache to avoid rebuilding on every call.
|
|
48
|
+
*/
|
|
49
|
+
private buildZodSchema;
|
|
50
|
+
/**
|
|
51
|
+
* Validate that required parameters are present.
|
|
32
52
|
* Returns true if valid.
|
|
33
53
|
*/
|
|
34
54
|
validateParameters(parameters: Record<string, unknown>): boolean;
|
|
35
55
|
/**
|
|
36
|
-
* Validate and coerce parameters
|
|
56
|
+
* Validate and coerce parameters using Zod.
|
|
57
|
+
* Uses zodSchema() override if provided, otherwise auto-builds from getParameters().
|
|
37
58
|
*/
|
|
38
59
|
validateAndNormalizeParameters(parameters: Record<string, unknown>): {
|
|
39
60
|
success: true;
|
package/dist/types/Tool.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tool.d.ts","sourceRoot":"","sources":["../../src/Tool.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"Tool.d.ts","sourceRoot":"","sources":["../../src/Tool.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,CAAC,EAAE,KAAK,OAAO,EAAE,MAAM,KAAK,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,YAAY,EAAE,aAAa,EAAE,CAAC;AAM9B,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACrC,CAAC;CACH;AAQD,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,IACxC,QAAQ,MAAM,EAAE,aAAa,MAAM,EAAE,aAAa,kBAAkB,KAAG,IAAI,CAK7F;AAMD,8BAAsB,IAAI;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAE7B,OAAO,CAAC,eAAe,CAA2C;gBAEtD,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,UAAQ;IAMjE,QAAQ,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM;IAC3E,QAAQ,CAAC,aAAa,IAAI,aAAa,EAAE;IAEzC;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,SAAS,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,GAAG,IAAI;IAIxD;;;OAGG;IACH,OAAO,CAAC,cAAc;IA+CtB;;;OAGG;IACH,kBAAkB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO;IAIhE;;;OAGG;IACH,8BAA8B,CAC5B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAClC;QAAE,OAAO,EAAE,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,GAAG;QAAE,OAAO,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE;IAYvF;;OAEG;IACH,cAAc,IAAI,oBAAoB;IA4BtC;;OAEG;IACH,QAAQ,IAAI,MAAM;CAOnB;AAcD,MAAM,WAAW,YAAY,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAChD,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACzB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACtE,OAAO,EAAE,YAAY,CAAC,KAAK,CAAC,GAC3B,YAAY,CAAC,KAAK,CAAC,CAErB;AAED,OAAO,EAAE,CAAC,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolChain.d.ts","sourceRoot":"","sources":["../../src/ToolChain.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ToolChain.d.ts","sourceRoot":"","sources":["../../src/ToolChain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAMnD,MAAM,WAAW,aAAa;IAC5B,wCAAwC;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,+EAA+E;IAC/E,aAAa,EAAE,MAAM,CAAC;IACtB,2DAA2D;IAC3D,SAAS,EAAE,MAAM,CAAC;CACnB;AAMD;;;;;;;;;GASG;AACH,qBAAa,SAAS;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAuB;gBAEjC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAK7C,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;IAKzE,QAAQ,IAAI,aAAa,EAAE;IAI3B;;;;;OAKG;IACG,OAAO,CAAC,QAAQ,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAatE;AAMD;;GAEG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IACvD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAe;gBAE5B,QAAQ,EAAE,YAAY;IAIlC,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAIrC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS;IAI7C,UAAU,IAAI,MAAM,EAAE;IAIhB,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAKtE"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Tool
|
|
1
|
+
import type { Tool } from "./Tool";
|
|
2
|
+
import { type FunctionTool, type OpenAIFunctionSchema } from "./Tool";
|
|
2
3
|
/**
|
|
3
4
|
* Central registry that manages Tool instances and raw FunctionTools.
|
|
4
5
|
* Supports registration, lookup, and execution.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolRegistry.d.ts","sourceRoot":"","sources":["../../src/ToolRegistry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ToolRegistry.d.ts","sourceRoot":"","sources":["../../src/ToolRegistry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAEtE;;;GAGG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA2B;IACjD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA4D;IAMtF,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAI9B,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIrC,gBAAgB,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpD,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,EAC/C,MAAM,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,GACrC,IAAI;IASP,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAQzC,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;IAIvC,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS;IAI5E,WAAW,IAAI,IAAI,EAAE;IAIrB,SAAS,IAAI,MAAM,EAAE;IAIrB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAQxB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IA6BjF,iBAAiB,IAAI,MAAM;IAe3B,gBAAgB,IAAI,KAAK,CAAC,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CA4B1E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agenticforge/tools",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "Tooling core for AgenticFORGE",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -17,6 +17,13 @@
|
|
|
17
17
|
"files": [
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"clean": "rimraf dist",
|
|
22
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
23
|
+
"build:types": "tsc -p tsconfig.build.json",
|
|
24
|
+
"build:js": "rollup -c",
|
|
25
|
+
"build": "pnpm run clean && pnpm run typecheck && pnpm run build:types && pnpm run build:js"
|
|
26
|
+
},
|
|
20
27
|
"dependencies": {
|
|
21
28
|
"reflect-metadata": "^0.2.2",
|
|
22
29
|
"zod": "^4.3.6"
|
|
@@ -28,14 +35,14 @@
|
|
|
28
35
|
"@rollup/plugin-terser": "^0.4.4",
|
|
29
36
|
"@types/node": "^25.3.3",
|
|
30
37
|
"rimraf": "^6.0.1",
|
|
31
|
-
"rollup": "^4.
|
|
38
|
+
"rollup": "^4.59.1",
|
|
32
39
|
"rollup-plugin-esbuild": "^6.2.1",
|
|
33
40
|
"tsx": "^4.21.0",
|
|
34
41
|
"typescript": "~5.9.3"
|
|
35
42
|
},
|
|
36
43
|
"repository": {
|
|
37
44
|
"type": "git",
|
|
38
|
-
"url": "https://github.com/LittleBlacky/AgenticFORGE.git",
|
|
45
|
+
"url": "git+https://github.com/LittleBlacky/AgenticFORGE.git",
|
|
39
46
|
"directory": "packages/tools"
|
|
40
47
|
},
|
|
41
48
|
"homepage": "https://github.com/LittleBlacky/AgenticFORGE/tree/main/packages/tools#readme",
|
|
@@ -54,12 +61,5 @@
|
|
|
54
61
|
"tool-chain",
|
|
55
62
|
"function-calling",
|
|
56
63
|
"zod"
|
|
57
|
-
]
|
|
58
|
-
|
|
59
|
-
"clean": "rimraf dist",
|
|
60
|
-
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
61
|
-
"build:types": "tsc -p tsconfig.build.json",
|
|
62
|
-
"build:js": "rollup -c",
|
|
63
|
-
"build": "pnpm run clean && pnpm run typecheck && pnpm run build:types && pnpm run build:js"
|
|
64
|
-
}
|
|
65
|
-
}
|
|
64
|
+
]
|
|
65
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,437 +0,0 @@
|
|
|
1
|
-
Attribution-NonCommercial-ShareAlike 4.0 International
|
|
2
|
-
|
|
3
|
-
=======================================================================
|
|
4
|
-
|
|
5
|
-
Creative Commons Corporation ("Creative Commons") is not a law firm and
|
|
6
|
-
does not provide legal services or legal advice. Distribution of
|
|
7
|
-
Creative Commons public licenses does not create a lawyer-client or
|
|
8
|
-
other relationship. Creative Commons makes its licenses and related
|
|
9
|
-
information available on an "as-is" basis. Creative Commons gives no
|
|
10
|
-
warranties regarding its licenses, any material licensed under their
|
|
11
|
-
terms and conditions, or any related information. Creative Commons
|
|
12
|
-
disclaims all liability for damages resulting from their use to the
|
|
13
|
-
fullest extent possible.
|
|
14
|
-
|
|
15
|
-
Using Creative Commons Public Licenses
|
|
16
|
-
|
|
17
|
-
Creative Commons public licenses provide a standard set of terms and
|
|
18
|
-
conditions that creators and other rights holders may use to share
|
|
19
|
-
original works of authorship and other material subject to copyright
|
|
20
|
-
and certain other rights specified in the public license below. The
|
|
21
|
-
following considerations are for informational purposes only, are not
|
|
22
|
-
exhaustive, and do not form part of our licenses.
|
|
23
|
-
|
|
24
|
-
Considerations for licensors: Our public licenses are
|
|
25
|
-
intended for use by those authorized to give the public
|
|
26
|
-
permission to use material in ways otherwise restricted by
|
|
27
|
-
copyright and certain other rights. Our licenses are
|
|
28
|
-
irrevocable. Licensors should read and understand the terms
|
|
29
|
-
and conditions of the license they choose before applying it.
|
|
30
|
-
Licensors should also secure all rights necessary before
|
|
31
|
-
applying our licenses so that the public can reuse the
|
|
32
|
-
material as expected. Licensors should clearly mark any
|
|
33
|
-
material not subject to the license. This includes other CC-
|
|
34
|
-
licensed material, or material used under an exception or
|
|
35
|
-
limitation to copyright. More considerations for licensors:
|
|
36
|
-
wiki.creativecommons.org/Considerations_for_licensors
|
|
37
|
-
|
|
38
|
-
Considerations for the public: By using one of our public
|
|
39
|
-
licenses, a licensor grants the public permission to use the
|
|
40
|
-
licensed material under specified terms and conditions. If
|
|
41
|
-
the licensor's permission is not necessary for any reason--for
|
|
42
|
-
example, because of any applicable exception or limitation to
|
|
43
|
-
copyright--then that use is not regulated by the license. Our
|
|
44
|
-
licenses grant only permissions under copyright and certain
|
|
45
|
-
other rights that a licensor has authority to grant. Use of
|
|
46
|
-
the licensed material may still be restricted for other
|
|
47
|
-
reasons, including because others have copyright or other
|
|
48
|
-
rights in the material. A licensor may make special requests,
|
|
49
|
-
such as asking that all changes be marked or described.
|
|
50
|
-
Although not required by our licenses, you are encouraged to
|
|
51
|
-
respect those requests where reasonable. More considerations
|
|
52
|
-
for the public:
|
|
53
|
-
wiki.creativecommons.org/Considerations_for_licensees
|
|
54
|
-
|
|
55
|
-
=======================================================================
|
|
56
|
-
|
|
57
|
-
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
|
|
58
|
-
Public License
|
|
59
|
-
|
|
60
|
-
By exercising the Licensed Rights (defined below), You accept and agree
|
|
61
|
-
to be bound by the terms and conditions of this Creative Commons
|
|
62
|
-
Attribution-NonCommercial-ShareAlike 4.0 International Public License
|
|
63
|
-
("Public License"). To the extent this Public License may be
|
|
64
|
-
interpreted as a contract, You are granted the Licensed Rights in
|
|
65
|
-
consideration of Your acceptance of these terms and conditions, and the
|
|
66
|
-
Licensor grants You such rights in consideration of benefits the
|
|
67
|
-
Licensor receives from making the Licensed Material available under
|
|
68
|
-
these terms and conditions.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
Section 1 -- Definitions.
|
|
72
|
-
|
|
73
|
-
a. Adapted Material means material subject to Copyright and Similar
|
|
74
|
-
Rights that is derived from or based upon the Licensed Material
|
|
75
|
-
and in which the Licensed Material is translated, altered,
|
|
76
|
-
arranged, transformed, or otherwise modified in a manner requiring
|
|
77
|
-
permission under the Copyright and Similar Rights held by the
|
|
78
|
-
Licensor. For purposes of this Public License, where the Licensed
|
|
79
|
-
Material is a musical work, performance, or sound recording,
|
|
80
|
-
Adapted Material is always produced where the Licensed Material is
|
|
81
|
-
synched in timed relation with a moving image.
|
|
82
|
-
|
|
83
|
-
b. Adapter's License means the license You apply to Your Copyright
|
|
84
|
-
and Similar Rights in Your contributions to Adapted Material in
|
|
85
|
-
accordance with the terms and conditions of this Public License.
|
|
86
|
-
|
|
87
|
-
c. BY-NC-SA Compatible License means a license listed at
|
|
88
|
-
creativecommons.org/compatiblelicenses, approved by Creative
|
|
89
|
-
Commons as essentially the equivalent of this Public License.
|
|
90
|
-
|
|
91
|
-
d. Copyright and Similar Rights means copyright and/or similar rights
|
|
92
|
-
closely related to copyright including, without limitation,
|
|
93
|
-
performance, broadcast, sound recording, and Sui Generis Database
|
|
94
|
-
Rights, without regard to how the rights are labeled or
|
|
95
|
-
categorized. For purposes of this Public License, the rights
|
|
96
|
-
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
|
97
|
-
Rights.
|
|
98
|
-
|
|
99
|
-
e. Effective Technological Measures means those measures that, in the
|
|
100
|
-
absence of proper authority, may not be circumvented under laws
|
|
101
|
-
fulfilling obligations under Article 11 of the WIPO Copyright
|
|
102
|
-
Treaty adopted on December 20, 1996, and/or similar international
|
|
103
|
-
agreements.
|
|
104
|
-
|
|
105
|
-
f. Exceptions and Limitations means fair use, fair dealing, and/or
|
|
106
|
-
any other exception or limitation to Copyright and Similar Rights
|
|
107
|
-
that applies to Your use of the Licensed Material.
|
|
108
|
-
|
|
109
|
-
g. License Elements means the license attributes listed in the name
|
|
110
|
-
of a Creative Commons Public License. The License Elements of this
|
|
111
|
-
Public License are Attribution, NonCommercial, and ShareAlike.
|
|
112
|
-
|
|
113
|
-
h. Licensed Material means the artistic or literary work, database,
|
|
114
|
-
or other material to which the Licensor applied this Public
|
|
115
|
-
License.
|
|
116
|
-
|
|
117
|
-
i. Licensed Rights means the rights granted to You subject to the
|
|
118
|
-
terms and conditions of this Public License, which are limited to
|
|
119
|
-
all Copyright and Similar Rights that apply to Your use of the
|
|
120
|
-
Licensed Material and that the Licensor has authority to license.
|
|
121
|
-
|
|
122
|
-
j. Licensor means the individual(s) or entity(ies) granting rights
|
|
123
|
-
under this Public License.
|
|
124
|
-
|
|
125
|
-
k. NonCommercial means not primarily intended for or directed towards
|
|
126
|
-
commercial advantage or monetary compensation. For purposes of
|
|
127
|
-
this Public License, the exchange of the Licensed Material for
|
|
128
|
-
other material subject to Copyright and Similar Rights by digital
|
|
129
|
-
file-sharing or similar means is NonCommercial provided there is
|
|
130
|
-
no payment of monetary compensation in connection with the
|
|
131
|
-
exchange.
|
|
132
|
-
|
|
133
|
-
l. Share means to provide material to the public by any means or
|
|
134
|
-
process that requires permission under the Licensed Rights, such
|
|
135
|
-
as reproduction, public display, public performance, distribution,
|
|
136
|
-
dissemination, communication, or importation, and to make material
|
|
137
|
-
available to the public including in ways that members of the
|
|
138
|
-
public may access the material from a place and at a time
|
|
139
|
-
individually chosen by them.
|
|
140
|
-
|
|
141
|
-
m. Sui Generis Database Rights means rights other than copyright
|
|
142
|
-
resulting from Directive 96/9/EC of the European Parliament and of
|
|
143
|
-
the Council of 11 March 1996 on the legal protection of databases,
|
|
144
|
-
as amended and/or succeeded, as well as other essentially
|
|
145
|
-
equivalent rights anywhere in the world.
|
|
146
|
-
|
|
147
|
-
n. You means the individual or entity exercising the Licensed Rights
|
|
148
|
-
under this Public License. Your has a corresponding meaning.
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
Section 2 -- Scope.
|
|
152
|
-
|
|
153
|
-
a. License grant.
|
|
154
|
-
|
|
155
|
-
1. Subject to the terms and conditions of this Public License,
|
|
156
|
-
the Licensor hereby grants You a worldwide, royalty-free,
|
|
157
|
-
non-sublicensable, non-exclusive, irrevocable license to
|
|
158
|
-
exercise the Licensed Rights in the Licensed Material to:
|
|
159
|
-
|
|
160
|
-
a. reproduce and Share the Licensed Material, in whole or
|
|
161
|
-
in part, for NonCommercial purposes only; and
|
|
162
|
-
|
|
163
|
-
b. produce, reproduce, and Share Adapted Material for
|
|
164
|
-
NonCommercial purposes only.
|
|
165
|
-
|
|
166
|
-
2. Exceptions and Limitations. For the avoidance of doubt, where
|
|
167
|
-
Exceptions and Limitations apply to Your use, this Public
|
|
168
|
-
License does not apply, and You do not need to comply with
|
|
169
|
-
its terms and conditions.
|
|
170
|
-
|
|
171
|
-
3. Term. The term of this Public License is specified in Section
|
|
172
|
-
6(a).
|
|
173
|
-
|
|
174
|
-
4. Media and formats; technical modifications allowed. The
|
|
175
|
-
Licensor authorizes You to exercise the Licensed Rights in
|
|
176
|
-
all media and formats whether now known or hereafter created,
|
|
177
|
-
and to make technical modifications necessary to do so. The
|
|
178
|
-
Licensor waives and/or agrees not to assert any right or
|
|
179
|
-
authority to forbid You from making technical modifications
|
|
180
|
-
necessary to exercise the Licensed Rights, including
|
|
181
|
-
technical modifications necessary to circumvent Effective
|
|
182
|
-
Technological Measures. For purposes of this Public License,
|
|
183
|
-
simply making modifications authorized by this Section 2(a)
|
|
184
|
-
(4) never produces Adapted Material.
|
|
185
|
-
|
|
186
|
-
5. Downstream recipients.
|
|
187
|
-
|
|
188
|
-
a. Offer from the Licensor -- Licensed Material. Every
|
|
189
|
-
recipient of the Licensed Material automatically
|
|
190
|
-
receives an offer from the Licensor to exercise the
|
|
191
|
-
Licensed Rights under the terms and conditions of this
|
|
192
|
-
Public License.
|
|
193
|
-
|
|
194
|
-
b. Additional offer from the Licensor -- Adapted Material.
|
|
195
|
-
Every recipient of Adapted Material from You
|
|
196
|
-
automatically receives an offer from the Licensor to
|
|
197
|
-
exercise the Licensed Rights in the Adapted Material
|
|
198
|
-
under the conditions of the Adapter's License You apply.
|
|
199
|
-
|
|
200
|
-
c. No downstream restrictions. You may not offer or impose
|
|
201
|
-
any additional or different terms or conditions on, or
|
|
202
|
-
apply any Effective Technological Measures to, the
|
|
203
|
-
Licensed Material if doing so restricts exercise of the
|
|
204
|
-
Licensed Rights by any recipient of the Licensed
|
|
205
|
-
Material.
|
|
206
|
-
|
|
207
|
-
6. No endorsement. Nothing in this Public License constitutes or
|
|
208
|
-
may be construed as permission to assert or imply that You
|
|
209
|
-
are, or that Your use of the Licensed Material is, connected
|
|
210
|
-
with, or sponsored, endorsed, or granted official status by,
|
|
211
|
-
the Licensor or others designated to receive attribution as
|
|
212
|
-
provided in Section 3(a)(1)(A)(i).
|
|
213
|
-
|
|
214
|
-
b. Other rights.
|
|
215
|
-
|
|
216
|
-
1. Moral rights, such as the right of integrity, are not
|
|
217
|
-
licensed under this Public License, nor are publicity,
|
|
218
|
-
privacy, and/or other similar personality rights; however, to
|
|
219
|
-
the extent possible, the Licensor waives and/or agrees not to
|
|
220
|
-
assert any such rights held by the Licensor to the limited
|
|
221
|
-
extent necessary to allow You to exercise the Licensed
|
|
222
|
-
Rights, but not otherwise.
|
|
223
|
-
|
|
224
|
-
2. Patent and trademark rights are not licensed under this
|
|
225
|
-
Public License.
|
|
226
|
-
|
|
227
|
-
3. To the extent possible, the Licensor waives any right to
|
|
228
|
-
collect royalties from You for the exercise of the Licensed
|
|
229
|
-
Rights, whether directly or through a collecting society
|
|
230
|
-
under any voluntary or waivable statutory or compulsory
|
|
231
|
-
licensing scheme. In all other cases the Licensor expressly
|
|
232
|
-
reserves any right to collect such royalties, including when
|
|
233
|
-
the Licensed Material is used other than for NonCommercial
|
|
234
|
-
purposes.
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
Section 3 -- License Conditions.
|
|
238
|
-
|
|
239
|
-
Your exercise of the Licensed Rights is expressly made subject to the
|
|
240
|
-
following conditions.
|
|
241
|
-
|
|
242
|
-
a. Attribution.
|
|
243
|
-
|
|
244
|
-
1. If You Share the Licensed Material (including in modified
|
|
245
|
-
form), You must:
|
|
246
|
-
|
|
247
|
-
a. retain the following if it is supplied by the Licensor
|
|
248
|
-
with the Licensed Material:
|
|
249
|
-
|
|
250
|
-
i. identification of the creator(s) of the Licensed
|
|
251
|
-
Material and any others designated to receive
|
|
252
|
-
attribution, in any reasonable manner requested by
|
|
253
|
-
the Licensor (including by pseudonym if
|
|
254
|
-
designated);
|
|
255
|
-
|
|
256
|
-
ii. a copyright notice;
|
|
257
|
-
|
|
258
|
-
iii. a notice that refers to this Public License;
|
|
259
|
-
|
|
260
|
-
iv. a notice that refers to the disclaimer of
|
|
261
|
-
warranties;
|
|
262
|
-
|
|
263
|
-
v. a URI or hyperlink to the Licensed Material to the
|
|
264
|
-
extent reasonably practicable;
|
|
265
|
-
|
|
266
|
-
b. indicate if You modified the Licensed Material and
|
|
267
|
-
retain an indication of any previous modifications; and
|
|
268
|
-
|
|
269
|
-
c. indicate the Licensed Material is licensed under this
|
|
270
|
-
Public License, and include the text of, or the URI or
|
|
271
|
-
hyperlink to, this Public License.
|
|
272
|
-
|
|
273
|
-
2. You may satisfy the conditions in Section 3(a)(1) in any
|
|
274
|
-
reasonable manner based on the medium, means, and context in
|
|
275
|
-
which You Share the Licensed Material. For example, it may be
|
|
276
|
-
reasonable to satisfy the conditions by providing a URI or
|
|
277
|
-
hyperlink to a resource that includes the required
|
|
278
|
-
information.
|
|
279
|
-
3. If requested by the Licensor, You must remove any of the
|
|
280
|
-
information required by Section 3(a)(1)(A) to the extent
|
|
281
|
-
reasonably practicable.
|
|
282
|
-
|
|
283
|
-
b. ShareAlike.
|
|
284
|
-
|
|
285
|
-
In addition to the conditions in Section 3(a), if You Share
|
|
286
|
-
Adapted Material You produce, the following conditions also apply.
|
|
287
|
-
|
|
288
|
-
1. The Adapter's License You apply must be a Creative Commons
|
|
289
|
-
license with the same License Elements, this version or
|
|
290
|
-
later, or a BY-NC-SA Compatible License.
|
|
291
|
-
|
|
292
|
-
2. You must include the text of, or the URI or hyperlink to, the
|
|
293
|
-
Adapter's License You apply. You may satisfy this condition
|
|
294
|
-
in any reasonable manner based on the medium, means, and
|
|
295
|
-
context in which You Share Adapted Material.
|
|
296
|
-
|
|
297
|
-
3. You may not offer or impose any additional or different terms
|
|
298
|
-
or conditions on, or apply any Effective Technological
|
|
299
|
-
Measures to, Adapted Material that restrict exercise of the
|
|
300
|
-
rights granted under the Adapter's License You apply.
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
Section 4 -- Sui Generis Database Rights.
|
|
304
|
-
|
|
305
|
-
Where the Licensed Rights include Sui Generis Database Rights that
|
|
306
|
-
apply to Your use of the Licensed Material:
|
|
307
|
-
|
|
308
|
-
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
|
309
|
-
to extract, reuse, reproduce, and Share all or a substantial
|
|
310
|
-
portion of the contents of the database for NonCommercial purposes
|
|
311
|
-
only;
|
|
312
|
-
|
|
313
|
-
b. if You include all or a substantial portion of the database
|
|
314
|
-
contents in a database in which You have Sui Generis Database
|
|
315
|
-
Rights, then the database in which You have Sui Generis Database
|
|
316
|
-
Rights (but not its individual contents) is Adapted Material,
|
|
317
|
-
including for purposes of Section 3(b); and
|
|
318
|
-
|
|
319
|
-
c. You must comply with the conditions in Section 3(a) if You Share
|
|
320
|
-
all or a substantial portion of the contents of the database.
|
|
321
|
-
|
|
322
|
-
For the avoidance of doubt, this Section 4 supplements and does not
|
|
323
|
-
replace Your obligations under this Public License where the Licensed
|
|
324
|
-
Rights include other Copyright and Similar Rights.
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
|
328
|
-
|
|
329
|
-
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
|
330
|
-
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
|
331
|
-
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
|
332
|
-
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
|
333
|
-
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
|
334
|
-
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
335
|
-
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
|
336
|
-
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
|
337
|
-
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
|
338
|
-
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
|
339
|
-
|
|
340
|
-
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
|
341
|
-
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
|
342
|
-
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
|
343
|
-
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
|
344
|
-
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
|
345
|
-
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
|
346
|
-
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
|
347
|
-
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
|
348
|
-
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
|
349
|
-
|
|
350
|
-
c. The disclaimer of warranties and limitation of liability provided
|
|
351
|
-
above shall be interpreted in a manner that, to the extent
|
|
352
|
-
possible, most closely approximates an absolute disclaimer and
|
|
353
|
-
waiver of all liability.
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
Section 6 -- Term and Termination.
|
|
357
|
-
|
|
358
|
-
a. This Public License applies for the term of the Copyright and
|
|
359
|
-
Similar Rights licensed here. However, if You fail to comply with
|
|
360
|
-
this Public License, then Your rights under this Public License
|
|
361
|
-
terminate automatically.
|
|
362
|
-
|
|
363
|
-
b. Where Your right to use the Licensed Material has terminated under
|
|
364
|
-
Section 6(a), it reinstates:
|
|
365
|
-
|
|
366
|
-
1. automatically as of the date the violation is cured, provided
|
|
367
|
-
it is cured within 30 days of Your discovery of the
|
|
368
|
-
violation; or
|
|
369
|
-
|
|
370
|
-
2. upon express reinstatement by the Licensor.
|
|
371
|
-
|
|
372
|
-
For the avoidance of doubt, this Section 6(b) does not affect any
|
|
373
|
-
right the Licensor may have to seek remedies for Your violations
|
|
374
|
-
of this Public License.
|
|
375
|
-
|
|
376
|
-
c. For the avoidance of doubt, the Licensor may also offer the
|
|
377
|
-
Licensed Material under separate terms or conditions or stop
|
|
378
|
-
distributing the Licensed Material at any time; however, doing so
|
|
379
|
-
will not terminate this Public License.
|
|
380
|
-
|
|
381
|
-
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
|
382
|
-
License.
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
Section 7 -- Other Terms and Conditions.
|
|
386
|
-
|
|
387
|
-
a. The Licensor shall not be bound by any additional or different
|
|
388
|
-
terms or conditions communicated by You unless expressly agreed.
|
|
389
|
-
|
|
390
|
-
b. Any arrangements, understandings, or agreements regarding the
|
|
391
|
-
Licensed Material not stated herein are separate from and
|
|
392
|
-
independent of the terms and conditions of this Public License.
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
Section 8 -- Interpretation.
|
|
396
|
-
|
|
397
|
-
a. For the avoidance of doubt, this Public License does not, and
|
|
398
|
-
shall not be interpreted to, reduce, limit, restrict, or impose
|
|
399
|
-
conditions on any use of the Licensed Material that could lawfully
|
|
400
|
-
be made without permission under this Public License.
|
|
401
|
-
|
|
402
|
-
b. To the extent possible, if any provision of this Public License is
|
|
403
|
-
deemed unenforceable, it shall be automatically reformed to the
|
|
404
|
-
minimum extent necessary to make it enforceable. If the provision
|
|
405
|
-
cannot be reformed, it shall be severed from this Public License
|
|
406
|
-
without affecting the enforceability of the remaining terms and
|
|
407
|
-
conditions.
|
|
408
|
-
|
|
409
|
-
c. No term or condition of this Public License will be waived and no
|
|
410
|
-
failure to comply consented to unless expressly agreed to by the
|
|
411
|
-
Licensor.
|
|
412
|
-
|
|
413
|
-
d. Nothing in this Public License constitutes or may be interpreted
|
|
414
|
-
as a limitation upon, or waiver of, any privileges and immunities
|
|
415
|
-
that apply to the Licensor or You, including from the legal
|
|
416
|
-
processes of any jurisdiction or authority.
|
|
417
|
-
|
|
418
|
-
=======================================================================
|
|
419
|
-
|
|
420
|
-
Creative Commons is not a party to its public
|
|
421
|
-
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
|
422
|
-
its public licenses to material it publishes and in those instances
|
|
423
|
-
will be considered the “Licensor.” The text of the Creative Commons
|
|
424
|
-
public licenses is dedicated to the public domain under the CC0 Public
|
|
425
|
-
Domain Dedication. Except for the limited purpose of indicating that
|
|
426
|
-
material is shared under a Creative Commons public license or as
|
|
427
|
-
otherwise permitted by the Creative Commons policies published at
|
|
428
|
-
creativecommons.org/policies, Creative Commons does not authorize the
|
|
429
|
-
use of the trademark "Creative Commons" or any other trademark or logo
|
|
430
|
-
of Creative Commons without its prior written consent including,
|
|
431
|
-
without limitation, in connection with any unauthorized modifications
|
|
432
|
-
to any of its public licenses or any other arrangements,
|
|
433
|
-
understandings, or agreements concerning use of licensed material. For
|
|
434
|
-
the avoidance of doubt, this paragraph does not form part of the
|
|
435
|
-
public licenses.
|
|
436
|
-
|
|
437
|
-
Creative Commons may be contacted at creativecommons.org.
|