Utilities

Utilities#

Langworks ships with various utility functions that simplify prompting and guiding LLMs. These utilities are available through the langworks.util module, organized by submodule:

Module name

Description

util.auth

Interfaces for authenticating with external resources

util.balancing

Utilities for load balancing

util.caching

Implementations of client-side caches adapted to LLM prompting

util.json

Utilities for handling JSON objects and JSON schemas

util.string

Utilities for handling text-based data