Get Model Context Window • Rust AI Agent SDK

get_model_context_window: Get model context window size.

get_model_context_window

Function

</div>

This function is defined in the rag module.

Get model context window size.

Signature

python
def get_model_context_window(model: &str) -> usize

Parameters

ParamField &str

No description available.

Returns

ResponseField usize

The result of the operation.

Uses

  • contains

Source

View on GitHub

praisonai/src/rag/mod.rs at line 408


Related Documentation