Skip to content

Actions

nodekit.actions.KeyAction pydantic-model

Fields:

action_value pydantic-field

action_value: str

The key that was pressed.

nodekit.actions.SliderAction pydantic-model

Fields:

action_value pydantic-field

action_value: int

The index of the bin that was selected.

nodekit.actions.TextEntryAction pydantic-model

Fields:

action_value pydantic-field

action_value: str

The text that was entered by the agent.

nodekit.actions.WaitAction pydantic-model

Fields:

  • action_type (Literal['WaitAction'])
  • action_value (None)

nodekit.actions.SelectAction pydantic-model

Fields:

action_value pydantic-field

action_value: str

The selection made by the agent.

nodekit.actions.MultiSelectAction pydantic-model

Fields:

action_value pydantic-field

action_value: list[str]

The selections made by the agent.

nodekit.actions.ProductAction pydantic-model

Fields:

action_value pydantic-field

action_value: dict[str, Action]

A dictionary mapping child IDs to their corresponding Actions.

nodekit.actions.SumAction pydantic-model

Fields:

action_value pydantic-field

action_value: tuple[str, Action]

A tuple of (winner_id, Action) taken by the child node.