Skip to content

ConfigOutput

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  3904982052["output_types.ConfigOutput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 3904982052
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Output from the Config tool.

Source code in src/clawd_code_sdk/models/output_types.py
class ConfigOutput(TypedDict):
    """Output from the Config tool."""

    success: bool
    """Whether the operation succeeded."""
    operation: NotRequired[Literal["get", "set"]]
    """The config operation that was performed."""
    setting: NotRequired[str]
    """The setting name."""
    value: NotRequired[Any]
    """The current or requested value."""
    previousValue: NotRequired[Any]
    """The previous value (for set operations)."""
    newValue: NotRequired[Any]
    """The new value (for set operations)."""
    error: NotRequired[str]
    """Error message if the operation failed."""

error instance-attribute

error: NotRequired[str]

Error message if the operation failed.

newValue instance-attribute

newValue: NotRequired[Any]

The new value (for set operations).

operation instance-attribute

operation: NotRequired[Literal['get', 'set']]

The config operation that was performed.

previousValue instance-attribute

previousValue: NotRequired[Any]

The previous value (for set operations).

setting instance-attribute

setting: NotRequired[str]

The setting name.

success instance-attribute

success: bool

Whether the operation succeeded.

value instance-attribute

value: NotRequired[Any]

The current or requested value.

:fa-brands-github: Show source on GitHub