nat.test.llm#
Classes#
Mock LLM configuration. |
|
Helper class to choose the next response according to config using itertools.cycle and provide synchronous and |
Functions#
|
Register the |
|
LLM client for LangChain/LangGraph. |
|
|
|
LLM client for CrewAI. |
|
LLM client for SemanticKernel. |
|
LLM client for agno. |
|
LLM client for Google ADK. |
Module Contents#
- class MockLLMConfig#
Bases:
nat.data_models.llm.LLMBaseConfigMock LLM configuration.
- class _ResponseChooser(response_seq: list[str], delay_ms: int)#
Helper class to choose the next response according to config using itertools.cycle and provide synchronous and asynchronous sleep functions.
- _cycler#
- _delay_ms#
- async test_llm_provider(
- config: MockLLMConfig,
- builder: nat.builder.builder.Builder,
Register the
nat_test_llmprovider for the NAT registry.
- async test_llm_langchain(
- config: MockLLMConfig,
- builder: nat.builder.builder.Builder,
LLM client for LangChain/LangGraph.
- async test_llm_llama_index(
- config: MockLLMConfig,
- builder: nat.builder.builder.Builder,
- async test_llm_crewai(
- config: MockLLMConfig,
- builder: nat.builder.builder.Builder,
LLM client for CrewAI.
- async test_llm_semantic_kernel(
- config: MockLLMConfig,
- builder: nat.builder.builder.Builder,
LLM client for SemanticKernel.
- async test_llm_agno(
- config: MockLLMConfig,
- builder: nat.builder.builder.Builder,
LLM client for agno.
- async test_llm_adk(
- config: MockLLMConfig,
- builder: nat.builder.builder.Builder,
LLM client for Google ADK.