NAME
Wordsmith::Claude::Options - Configuration options for text rewriting
SYNOPSIS
use Wordsmith::Claude::Options;
my $options = Wordsmith::Claude::Options->new(
model => 'haiku', # Use faster/cheaper model
language => 'Spanish', # Translate while rewriting
);
my $result = rewrite(
text => $input,
mode => 'casual',
options => $options,
)->get;
DESCRIPTION
Configuration options for the Wordsmith::Claude rewrite function.
ATTRIBUTES
model
Claude model to use. Options: 'sonnet', 'opus', 'haiku'. Defaults to the Claude Agent default.
max_length
Hint for maximum output length in characters. Not strictly enforced.
preserve_formatting
Boolean. If true, attempt to preserve the original formatting (paragraphs, lists, etc.) in the output.
language
Output language for translation. If set, the rewritten text will be in this language regardless of the input language.
permission_mode
Claude Agent permission mode. Defaults to 'bypassPermissions' which disables the Claude Agent SDK's permission system. This is required for text rewriting operations where no file system or tool access is needed. Advanced users can set this to other values if integrating with systems that require permission prompts.
AUTHOR
LNATION, <email at lnation.org>
LICENSE AND COPYRIGHT
This software is Copyright (c) 2026 by LNATION.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)