On this page
Strictspec-generated validator for the data_tool TOML schema (do not edit; regenerate via strictspec gen). Provides validate_bytes/validate_value plus frozen typed bindings: DataTool, ToolIdentity, HttpExecution, MontyExecution, CommandExecution.
#tool.src.orxtra.tool._gen_data_tool
#tool.src.orxtra.tool._gen_data_tool
#validate_bytes
def validate_bytes(input: bytes, syntax: str) -> tuple[DataTool | None, tuple[Diagnostic, ...]]RAW-BYTES entry point: lossless parse of input in the given syntax ("json" | "toml" | "jsonl"), then validate. Returns the typed root value (None when any diagnostic fired) and the ordered diagnostics.
#validate_bytes_with_evidence
def validate_bytes_with_evidence(input: bytes, syntax: str, evidence: dict | None) -> tuple[DataTool | None, tuple[Diagnostic, ...]]validate_bytes plus cross-document resolver evidence for the phase-2 constraint vocabulary.
#validate_value
def validate_value(v: Value) -> tuple[DataTool | None, tuple[Diagnostic, ...]]TAGGED-VALUE entry point: validate an already-parsed tagged document value (from strictspec.load_value or a typed constructor). Raw untagged dicts are never accepted.
#DataTool
Frozen typed binding of the "DataTool" record. Immutable; use with_* for copy-on-write.
#with_tool
def with_tool(self, v: ToolIdentity) -> DataTool#with_params
def with_params(self, v: Value) -> DataTool#with_execution
def with_execution(self, v: Value) -> DataTool#with_output
def with_output(self, v: OutputConfig | None) -> DataTool#ToolIdentity
Frozen typed binding of the "ToolIdentity" record. Immutable; use with_* for copy-on-write.
#with_name
def with_name(self, v: str) -> ToolIdentity#with_description
def with_description(self, v: str) -> ToolIdentity#with_namespace
def with_namespace(self, v: str) -> ToolIdentity#with_deferred
def with_deferred(self, v: bool) -> ToolIdentity#with_tags
def with_tags(self, v: list[str]) -> ToolIdentity#ParamDef
Frozen typed binding of the "ParamDef" record. Immutable; use with_* for copy-on-write.
#with_type
def with_type(self, v: str) -> ParamDef#with_description
def with_description(self, v: str) -> ParamDef#with_required
def with_required(self, v: bool) -> ParamDef#with_pattern
def with_pattern(self, v: str) -> ParamDef#HttpExecution
Frozen typed binding of the "HttpExecution" record. Immutable; use with_* for copy-on-write.
#with_type
def with_type(self, v: str) -> HttpExecution#with_method
def with_method(self, v: str) -> HttpExecution#with_url
def with_url(self, v: str) -> HttpExecution#with_headers
def with_headers(self, v: Value) -> HttpExecution#with_body_template
def with_body_template(self, v: str) -> HttpExecution#MontyExecution
Frozen typed binding of the "MontyExecution" record. Immutable; use with_* for copy-on-write.
#with_type
def with_type(self, v: str) -> MontyExecution#with_code
def with_code(self, v: str) -> MontyExecution#with_capabilities
def with_capabilities(self, v: list[str]) -> MontyExecution#with_limits
def with_limits(self, v: ResourceLimits) -> MontyExecution#ResourceLimits
Frozen typed binding of the "ResourceLimits" record. Immutable; use with_* for copy-on-write.
#with_max_duration_secs
def with_max_duration_secs(self, v: int) -> ResourceLimits#with_max_allocations
def with_max_allocations(self, v: int) -> ResourceLimits#with_max_memory
def with_max_memory(self, v: int) -> ResourceLimits#CommandExecution
Frozen typed binding of the "CommandExecution" record. Immutable; use with_* for copy-on-write.
#with_type
def with_type(self, v: str) -> CommandExecution#with_executable
def with_executable(self, v: str) -> CommandExecution#with_arg_validation
def with_arg_validation(self, v: bool) -> CommandExecution#with_timeout_ceiling
def with_timeout_ceiling(self, v: int) -> CommandExecution#OutputConfig
Frozen typed binding of the "OutputConfig" record. Immutable; use with_* for copy-on-write.
#with_schema
def with_schema(self, v: Value) -> OutputConfig