Skip to content

Commit fc105fe

Browse files
authored
Merge pull request #19 from HumanAssisted/0.2.13
0.2.13
2 parents 6d51018 + 5066a78 commit fc105fe

File tree

54 files changed

+1527
-63
lines changed

Some content is hidden

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

54 files changed

+1527
-63
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
PLANNED
2+
3+
- refine schema usage
4+
- more getters and setters for documents recognized by schemas
5+
- gzip local files
6+
- update libs based on devin work
7+
- store files by type (eval, program, node, task, actor, message)
8+
- WASM option
9+
10+
## 0.2.13
11+
- save public key to local fs
12+
- restricted signingAlgorithm in schema
13+
- refresh schema for program, program node/consent/action/tool
14+
115
## 0.2.12
216

317
- Let Devin.ai have a go at looking for issues with missing documentation, unsafe calles, and uncessary copies of data, updated some libs

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "jacs"
3-
version = "0.2.12"
3+
version = "0.2.13"
44
edition = "2021"
55
include = [
66
"src/**/*",
@@ -15,6 +15,8 @@ include = [
1515
"schemas/components/tool/v1/tool.schema.json",
1616
"schemas/components/contact/v1/contact.schema.json",
1717
"schemas/message/v1/message.schema.json",
18+
"schemas/node/v1/node.schema.json",
19+
"schemas/program/v1/program.schema.json",
1820
"schemas/eval/v1/eval.schema.json",
1921
"schemas/task/v1/task.schema.json",
2022
"jacs.config.schema.json",
@@ -29,7 +31,7 @@ include = [
2931
]
3032
description = "JACS JSON AI Communication Standard"
3133
readme = "README.md"
32-
authors = ["Jonathan Hendler <[email protected]>"]
34+
authors = ["HAI.AI <[email protected]>"]
3335
license = "Apache-2.0"
3436
homepage = "https://humanassisted.github.io/JACS"
3537
repository = "https://github.com/HumanAssisted/JACS"

docs/schema/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
* [Contact](./contact.md "How to contact over human channels")`https://hai.ai/schemas/contact/v1/contact-schema.json`
1212

13+
* [Evaluation](./program.md "A signed, immutable message evaluation an agent's performance on a task")`https://hai.ai/schemas/program/v1/eval.program.json`
14+
1315
* [Evaluation](./eval.md "A signed, immutable message evaluation an agent's performance on a task")`https://hai.ai/schemas/eval/v1/eval.schema.json`
1416

1517
* [File](./files.md "General data about unstructured content not in JACS")`https://hai.ai/schemas/components/files/v1/files.schema.json`
@@ -18,6 +20,8 @@
1820

1921
* [Message](./message.md "A signed, immutable message about a task")`https://hai.ai/schemas/message/v1/message.schema.json`
2022

23+
* [Node](./node.md "A a node in a finite state machine")`https://hai.ai/schemas/node/v1/node.schema.json`
24+
2125
* [Service](./service.md "Services that an Agent claims to provide")`https://hai.ai/schemas/service/v1/service-schema.json`
2226

2327
* [Signature](./signature.md "Cryptographic signature to be embedded in other documents")`https://hai.ai/schemas/components/signature/v1/signature.schema.json`
@@ -56,6 +60,8 @@
5660

5761
* [Untitled array in Agent](./agent-allof-1-jacscontacts.md "Contact information for the agent")`https://hai.ai/schemas/agent/v1/agent.schema.json#/allOf/1/jacsContacts`
5862

63+
* [Untitled array in Evaluation](./program-allof-1-properties-nodes.md "list of evaluation units, informatio labels")`https://hai.ai/schemas/program/v1/eval.program.json#/allOf/1/properties/nodes`
64+
5965
* [Untitled array in Evaluation](./eval-properties-quantifications.md "list of evaluation units, informatio labels")`https://hai.ai/schemas/eval/v1/eval.schema.json#/properties/quantifications`
6066

6167
* [Untitled array in Header](./header-properties-jacsfiles.md "A set of files included with the jacs document")`https://hai.ai/schemas/header/v1/header.schema.json#/properties/jacsFiles`

docs/schema/action.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ General actions definitions which can comprise a service. Distinct from function
2121
| [name](#name) | `string` | Required | cannot be null | [Action](action-properties-name.md "https://hai.ai/schemas/components/action/v1/action-schema.json#/properties/name") |
2222
| [description](#description) | `string` | Required | cannot be null | [Action](action-properties-description.md "https://hai.ai/schemas/components/action/v1/action-schema.json#/properties/description") |
2323
| [tools](#tools) | `array` | Optional | cannot be null | [Action](action-properties-tools.md "https://hai.ai/schemas/components/action/v1/action-schema.json#/properties/tools") |
24-
| [cost](#cost) | `object` | Optional | cannot be null | [Action](eval-properties-quantifications-unit.md "https://hai.ai/schemas/components/unit/v1/unit.schema.json#/properties/cost") |
25-
| [duration](#duration) | `object` | Optional | cannot be null | [Action](eval-properties-quantifications-unit.md "https://hai.ai/schemas/components/unit/v1/unit.schema.json#/properties/duration") |
24+
| [cost](#cost) | `object` | Optional | cannot be null | [Action](program-allof-1-properties-nodes-unit.md "https://hai.ai/schemas/components/unit/v1/unit.schema.json#/properties/cost") |
25+
| [duration](#duration) | `object` | Optional | cannot be null | [Action](program-allof-1-properties-nodes-unit.md "https://hai.ai/schemas/components/unit/v1/unit.schema.json#/properties/duration") |
2626
| [completionAgreementRequired](#completionagreementrequired) | `boolean` | Optional | cannot be null | [Action](action-properties-completionagreementrequired.md "https://hai.ai/schemas/components/action/v1/action-schema.json#/properties/completionAgreementRequired") |
2727

2828
## name
@@ -87,15 +87,15 @@ Labels and quantitative values.
8787

8888
* is optional
8989

90-
* Type: `object` ([Unit](eval-properties-quantifications-unit.md))
90+
* Type: `object` ([Unit](program-allof-1-properties-nodes-unit.md))
9191

9292
* cannot be null
9393

94-
* defined in: [Action](eval-properties-quantifications-unit.md "https://hai.ai/schemas/components/unit/v1/unit.schema.json#/properties/cost")
94+
* defined in: [Action](program-allof-1-properties-nodes-unit.md "https://hai.ai/schemas/components/unit/v1/unit.schema.json#/properties/cost")
9595

9696
### cost Type
9797

98-
`object` ([Unit](eval-properties-quantifications-unit.md))
98+
`object` ([Unit](program-allof-1-properties-nodes-unit.md))
9999

100100
## duration
101101

@@ -105,15 +105,15 @@ Labels and quantitative values.
105105

106106
* is optional
107107

108-
* Type: `object` ([Unit](eval-properties-quantifications-unit.md))
108+
* Type: `object` ([Unit](program-allof-1-properties-nodes-unit.md))
109109

110110
* cannot be null
111111

112-
* defined in: [Action](eval-properties-quantifications-unit.md "https://hai.ai/schemas/components/unit/v1/unit.schema.json#/properties/duration")
112+
* defined in: [Action](program-allof-1-properties-nodes-unit.md "https://hai.ai/schemas/components/unit/v1/unit.schema.json#/properties/duration")
113113

114114
### duration Type
115115

116-
`object` ([Unit](eval-properties-quantifications-unit.md))
116+
`object` ([Unit](program-allof-1-properties-nodes-unit.md))
117117

118118
## completionAgreementRequired
119119

docs/schema/eval-properties-quantifications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ list of evaluation units, informatio labels
1212

1313
## quantifications Type
1414

15-
`object[]` ([Unit](eval-properties-quantifications-unit.md))
15+
`object[]` ([Unit](program-allof-1-properties-nodes-unit.md))

docs/schema/eval.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,12 @@ list of evaluation units, informatio labels
135135

136136
* is optional
137137

138-
* Type: `object[]` ([Unit](eval-properties-quantifications-unit.md))
138+
* Type: `object[]` ([Unit](program-allof-1-properties-nodes-unit.md))
139139

140140
* cannot be null
141141

142142
* defined in: [Evaluation](eval-properties-quantifications.md "https://hai.ai/schemas/eval/v1/eval.schema.json#/properties/quantifications")
143143

144144
### quantifications Type
145145

146-
`object[]` ([Unit](eval-properties-quantifications-unit.md))
146+
`object[]` ([Unit](program-allof-1-properties-nodes-unit.md))

docs/schema/header-properties-signature-1.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,16 @@ What signature algorithm was used
148148

149149
`string`
150150

151+
### signingAlgorithm Constraints
152+
153+
**enum**: the value of this property must be equal to one of the following values:
154+
155+
| Value | Explanation |
156+
| :--------------- | :---------- |
157+
| `"RSA-PSS"` | |
158+
| `"ring-Ed25519"` | |
159+
| `"pq-dilithium"` | |
160+
151161
## response
152162

153163
When prompting an agent, is there text provided with the agreement?
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Untitled string in Node Schema
2+
3+
```txt
4+
https://hai.ai/schemas/node/v1/node.schema.json#/properties/datetime
5+
```
6+
7+
Date of evaluation
8+
9+
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10+
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :---------------------------------------------------------------------------------- |
11+
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [node.schema.json\*](../../schemas/node/v1/node.schema.json "open original schema") |
12+
13+
## datetime Type
14+
15+
`string`
16+
17+
## datetime Constraints
18+
19+
**date time**: the string must be a date time string, according to [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339 "check the specification")
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Untitled string in Node Schema
2+
3+
```txt
4+
https://hai.ai/schemas/node/v1/node.schema.json#/properties/evaluatingAgent
5+
```
6+
7+
Agent doing the evaluation, implies tools and services
8+
9+
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10+
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :---------------------------------------------------------------------------------- |
11+
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [node.schema.json\*](../../schemas/node/v1/node.schema.json "open original schema") |
12+
13+
## evaluatingAgent Type
14+
15+
`string`
16+
17+
## evaluatingAgent Constraints
18+
19+
**UUID**: the string must be a UUID, according to [RFC 4122](https://tools.ietf.org/html/rfc4122 "check the specification")

docs/schema/node-properties-id.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Untitled string in Node Schema
2+
3+
```txt
4+
https://hai.ai/schemas/node/v1/node.schema.json#/properties/id
5+
```
6+
7+
8+
9+
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10+
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :---------------------------------------------------------------------------------- |
11+
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [node.schema.json\*](../../schemas/node/v1/node.schema.json "open original schema") |
12+
13+
## id Type
14+
15+
`string`
16+
17+
## id Constraints
18+
19+
**UUID**: the string must be a UUID, according to [RFC 4122](https://tools.ietf.org/html/rfc4122 "check the specification")

0 commit comments

Comments
 (0)