Files
wehub-resource-sync c889a57b6b
Test Suites / Build CI Environment (push) Has been cancelled
Test Suites / Basic Tests (push) Has been cancelled
Test Suites / End-to-End Tests (push) Has been cancelled
Test Suites / CLI Tests (push) Has been cancelled
Test Suites / Slow End-to-End Tests (push) Has been cancelled
Test Suites / Graph Database Tests (push) Has been cancelled
Test Suites / Vector DB Tests (push) Has been cancelled
Test Suites / Temporal Graph Test (push) Has been cancelled
Test Suites / Search Test on Different DBs (push) Has been cancelled
Test Suites / Example Tests (push) Has been cancelled
Test Suites / Notebook Tests (push) Has been cancelled
Test Suites / OS and Python Tests Ubuntu (push) Has been cancelled
Test Suites / OS and Python Tests Extended (push) Has been cancelled
Test Suites / LLM Test Suite (push) Has been cancelled
Test Suites / S3 File Storage Test (push) Has been cancelled
Test Suites / Run Integration Tests (push) Has been cancelled
Test Suites / MCP Tests (push) Has been cancelled
Test Suites / Docker Compose Test (push) Has been cancelled
Test Suites / Docker CI test (push) Has been cancelled
Test Suites / Relational DB Migration Tests (push) Has been cancelled
Test Suites / Distributed Cognee Test (push) Has been cancelled
Test Suites / DB Examples Tests (push) Has been cancelled
Test Suites / Test Completion Status (push) Has been cancelled
Test Suites / Claude Code Review (push) Has been cancelled
Test Suites / basic checks (push) Has been cancelled
build | Build and Push Cognee MCP Docker Image to dockerhub / docker-build-and-push (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
build | Build and Push Docker Image to dockerhub / docker-build-and-push (push) Has been cancelled
Weighted Edges Tests / Test Weighted Edges Core Functionality (3.11) (push) Has been cancelled
Weighted Edges Tests / Test Weighted Edges Core Functionality (3.12) (push) Has been cancelled
Weighted Edges Tests / Test Weighted Edges with Different Graph Databases (kuzu, kuzu) (push) Has been cancelled
Weighted Edges Tests / Test Weighted Edges with Different Graph Databases (neo4j, neo4j) (push) Has been cancelled
Weighted Edges Tests / Test Weighted Edges Examples (push) Has been cancelled
Weighted Edges Tests / Code Quality for Weighted Edges (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:02:24 +08:00

42 lines
1.3 KiB
Python

from typing import Annotated, List
from pydantic import Field
from cognee.infrastructure.engine import DataPoint, Dedup, Embeddable, LLMContext
class Skill(DataPoint):
"""A dataset-scoped procedural playbook loaded by the agentic retriever."""
name: Annotated[str, Dedup()]
description: str = ""
procedure: str = ""
declared_tools: List[str] = Field(default_factory=list)
# Publisher / provenance metadata. Surfaced in the SaaS UI so users can see
# which company or team maintains a skill. Populated from SKILL.md frontmatter
# (maintainer/company/author, maintainer_url/url, version, tags, license) and
# falls back to empty values for skills authored before these fields existed.
maintainer: str = ""
maintainer_url: str = ""
skill_version: str = ""
tags: List[str] = Field(default_factory=list)
license: str = ""
source_repo_url: str = ""
source_file: str = ""
source_dir: str = ""
content_hash: str = ""
dataset_scope: List[str] = Field(default_factory=list)
is_active: bool = True
skill_text: str = ""
search_text: Annotated[str, Embeddable(), LLMContext()] = ""
metadata: dict = Field(
default={
"index_fields": ["search_text"],
"identity_fields": ["name", "source_dir"],
}
)