Skip to main content

estimate_tokens

function estimate_tokens

Rough estimate of token count (approximately 4 characters per token).
Parameters
str
required
String value
Returns
int
Signature

get_local_network_ip

function get_local_network_ip

Get the local network IP address.
Returns
str | None
Signature

get_return_type

function get_return_type

Get the return type annotation from a function or callable class.
Parameters
required
Parameter value
Returns
type
Signature