class Anthropic::Internal::Type::FileInput
def dump(value, state:)
-
(Pathname, StringIO, IO, String, Object)
-
Options Hash:
(**state)
-
:can_retry
(Boolean
) --
Parameters:
-
state
(Hash{Symbol=>Object}
) -- . -
value
(Pathname, StringIO, IO, String, Object
) --
Other tags:
- Api: - private
def dump(value, state:) # rubocop:disable Lint/DuplicateBranch case value in IO state[:can_retry] = false in Anthropic::FilePart if value.content.is_a?(IO) state[:can_retry] = false else end # rubocop:enable Lint/DuplicateBranch value end