orxtra v0.13.0 /tool.src.orxtra.tool._gen_data_tool
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

python
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

python
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

python
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

python
def with_tool(self, v: ToolIdentity) -> DataTool

#with_params

python
def with_params(self, v: Value) -> DataTool

#with_execution

python
def with_execution(self, v: Value) -> DataTool

#with_output

python
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

python
def with_name(self, v: str) -> ToolIdentity

#with_description

python
def with_description(self, v: str) -> ToolIdentity

#with_namespace

python
def with_namespace(self, v: str) -> ToolIdentity

#with_deferred

python
def with_deferred(self, v: bool) -> ToolIdentity

#with_tags

python
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

python
def with_type(self, v: str) -> ParamDef

#with_description

python
def with_description(self, v: str) -> ParamDef

#with_required

python
def with_required(self, v: bool) -> ParamDef

#with_pattern

python
def with_pattern(self, v: str) -> ParamDef

#HttpExecution

Frozen typed binding of the "HttpExecution" record. Immutable; use with_* for copy-on-write.

#with_type

python
def with_type(self, v: str) -> HttpExecution

#with_method

python
def with_method(self, v: str) -> HttpExecution

#with_url

python
def with_url(self, v: str) -> HttpExecution

#with_headers

python
def with_headers(self, v: Value) -> HttpExecution

#with_body_template

python
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

python
def with_type(self, v: str) -> MontyExecution

#with_code

python
def with_code(self, v: str) -> MontyExecution

#with_capabilities

python
def with_capabilities(self, v: list[str]) -> MontyExecution

#with_limits

python
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

python
def with_max_duration_secs(self, v: int) -> ResourceLimits

#with_max_allocations

python
def with_max_allocations(self, v: int) -> ResourceLimits

#with_max_memory

python
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

python
def with_type(self, v: str) -> CommandExecution

#with_executable

python
def with_executable(self, v: str) -> CommandExecution

#with_arg_validation

python
def with_arg_validation(self, v: bool) -> CommandExecution

#with_timeout_ceiling

python
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

python
def with_schema(self, v: Value) -> OutputConfig
Search