Module core.context

Functions

def get_default_context() ‑> Context

Classes

class Context (llm: llama_index.core.llms.llm.LLM,
mm_llm: llama_index.core.multi_modal_llms.base.MultiModalLLM,
embedding: llama_index.core.base.embeddings.base.BaseEmbedding,
extraction_llm: llama_index.core.llms.llm.LLM | None = None)

Set the context which will be used thourough the action generation pipeline.

llm (LLM): The llm that will be used the generate the python code mm_llm (MultiModalLLM): The multimodal llm that will be used by the world model embedding: (BaseEmbedding) The embedder used by the python engine