Skip to content
Open
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
15 changes: 2 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./taxonomies": {
"types": "./dist/taxonomies/index.d.ts",
"default": "./dist/taxonomies/index.js"
},
"./eip6963": {
"types": "./dist/browser/eip6963.d.ts",
"default": "./dist/browser/eip6963.js"
Expand All @@ -36,7 +40,8 @@
"blockchain",
"ethereum",
"ipfs",
"reputation"
"reputation",
"oasf"
],
"author": "Agent0 Team <team@ag0.xyz>",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,11 @@ export type { TransactionMined, TransactionWaitOptions } from './core/transactio
// Export contract definitions
export * from './core/contracts.js';

// Export OASF taxonomies
export {
OASF_SKILLS,
OASF_DOMAINS,
OASF_SKILL_SLUGS,
OASF_DOMAIN_SLUGS,
OASF_VERSION,
} from './taxonomies/index.js';
65 changes: 65 additions & 0 deletions src/taxonomies/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/**
* OASF Taxonomies - Public exports
*
* Provides access to the Open Agentic Schema Framework (OASF) taxonomies
* for skills and domains. These are used for standardized agent categorization.
*
* @example
* ```typescript
* import { OASF_SKILLS, OASF_DOMAINS } from 'agent0-sdk/taxonomies';
*
* // Access skill slugs
* const skillSlugs = Object.keys(OASF_SKILLS.skills);
*
* // Access domain slugs
* const domainSlugs = Object.keys(OASF_DOMAINS.domains);
* ```
*/

import allSkills from './generated/all_skills.js';
import allDomains from './generated/all_domains.js';

/**
* OASF Skills taxonomy data
* Contains all standardized skill categories and their metadata
*/
export const OASF_SKILLS = allSkills as {
metadata: {
version: string;
description: string;
identifier_format: string;
total_skills: number;
};
categories: Record<string, { caption: string; description: string }>;
skills: Record<string, { caption?: string; name?: string; category?: string }>;
};

/**
* OASF Domains taxonomy data
* Contains all standardized domain categories and their metadata
*/
export const OASF_DOMAINS = allDomains as {
metadata: {
version: string;
description: string;
identifier_format: string;
total_domains: number;
};
categories: Record<string, { caption: string; description: string }>;
domains: Record<string, { caption?: string; name?: string; category?: string }>;
};

/**
* Set of all valid OASF skill slugs
*/
export const OASF_SKILL_SLUGS = new Set(Object.keys(OASF_SKILLS.skills));

/**
* Set of all valid OASF domain slugs
*/
export const OASF_DOMAIN_SLUGS = new Set(Object.keys(OASF_DOMAINS.domains));

/**
* OASF version currently bundled in the SDK
*/
export const OASF_VERSION = OASF_SKILLS.metadata.version;