NAME
Langertha::Role::Seed - Role for an engine that can set a seed
VERSION
version 0.305
randomize_seed
When true, a random seed is generated for each request. Defaults to 0 (disabled). Useful when you want varied outputs without setting a fixed seed.
seed
Fixed integer seed for reproducible outputs. Optional. When set, the engine passes it to the API to make sampling deterministic. Use randomize_seed instead when you want a different random seed on each call.
random_seed
my $seed = $engine->random_seed;
Returns a random unsigned integer suitable for use as a seed value.
SEE ALSO
Langertha::Role::Temperature - Sampling temperature
Langertha::Engine::Ollama - Engine that composes this role
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/Getty/langertha/issues.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <torsten@raudssus.de> https://raudss.us/
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.