if_else

A conditional system tool that executes different blocks of tools based on a condition.

Fields

Returns

Example

- name: if_else
  condition: <existence-if-condition>
  returns_key: <optional-return-key-for-block-scope>
  if:
    tools:
      - name: some_tool
  else:
    tools:
      - name: some_other_tool
  returns: <return-value-from-block-scope-name>

Last updated