1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hatchling,
6 llama-index-core,
7 llama-index-llms-openai,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "llama-index-agent-openai";
13 version = "0.4.12";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchPypi {
19 pname = "llama_index_agent_openai";
20 inherit version;
21 hash = "sha256-0v5T/rac/kV1LttzKL8NJfapBxs8BWeH5mG5Plt0iig=";
22 };
23
24 pythonRelaxDeps = [ "llama-index-llms-openai" ];
25
26 build-system = [ hatchling ];
27
28 dependencies = [
29 llama-index-core
30 llama-index-llms-openai
31 ];
32
33 pythonImportsCheck = [ "llama_index.agent.openai" ];
34
35 meta = with lib; {
36 description = "LlamaIndex Agent Integration for OpenAI";
37 homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/agent/llama-index-agent-openai";
38 license = licenses.mit;
39 maintainers = with maintainers; [ fab ];
40 };
41}