llm_meta#

class baf.nlp.llm.llm_meta.LLMMeta(agent, name, parameters, num_previous_messages=1, global_context=None)[source]#

Bases: LLMOpenAICompatible

LLM wrapper for Meta Llama models via Meta’s OpenAI-compatible API.

Requires nlp.meta.api_key to be set in the agent config file. The default base URL points to https://api.llama.com/compat/v1/.

Example model names: "Llama-4-Scout-17B-16E-Instruct-FP8", "Llama-4-Maverick-17B-128E-Instruct-FP8", "Llama-3.3-70B-Instruct".

API_KEY_PROPERTY = <baf.core.property.Property object>#

Property constant used to look up the API key from the agent config file.

DEFAULT_BASE_URL = 'https://api.llama.com/compat/v1/'#

Provider base URL. None → use the OpenAI SDK default (api.openai.com).

_abc_impl = <_abc._abc_data object>#