1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 llama-index-core,
6 llama-index-llms-openai,
7 poetry-core,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "llama-index-agent-openai";
13 version = "0.2.7";
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-E85TXwPjLIIXY8AeJq9CIvOYEXhiJBTThoAToZRugSQ=";
22 };
23
24 pythonRelaxDeps = [ "llama-index-llms-openai" ];
25
26 build-system = [
27 poetry-core
28 ];
29
30 dependencies = [
31 llama-index-core
32 llama-index-llms-openai
33 ];
34
35 pythonImportsCheck = [ "llama_index.agent.openai" ];
36
37 meta = with lib; {
38 description = "LlamaIndex Agent Integration for OpenAI";
39 homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/agent/llama-index-agent-openai";
40 license = licenses.mit;
41 maintainers = with maintainers; [ fab ];
42 };
43}