NAME
Langertha::Role::ContextSize - Role for an engine where you can specify the context size (in tokens)
VERSION
version 0.303
context_size
The maximum context size in tokens to use for requests. Optional. When not set, the engine uses its own default_context_size if available, or omits the parameter from the request.
get_context_size
my $size = $engine->get_context_size;
Returns the effective context size: the explicit context_size if set, otherwise the engine's default_context_size, otherwise undef.
SEE ALSO
Langertha::Role::ResponseSize - Limit response token count
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.