From e29668da02e28a9ed6ad9de4522faa678f0577c9 Mon Sep 17 00:00:00 2001 From: isamu Date: Mon, 30 Dec 2024 16:17:57 +0900 Subject: [PATCH] update document --- agents/llm_agents/README.md | 10 ++++++++++ agents/llm_agents/package.json | 1 - docs/document_generation.md | 4 +++- llm_agents/groq_agent/package.json | 1 - llm_agents/replicate_agent/src/replicate_agent.ts | 2 +- packages/agentdoc/templates/readme-agent.md | 10 ---------- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/agents/llm_agents/README.md b/agents/llm_agents/README.md index f227f06a9..595027c9b 100644 --- a/agents/llm_agents/README.md +++ b/agents/llm_agents/README.md @@ -9,6 +9,16 @@ LLM agents for GraphAI. yarn add @graphai/llm_agents ``` +| **Agent** | APIKEY | Stream | Tools | Web | History | +|----------------|----------------------|--------|-------|-------|---------| +| anthropicAgent | ANTHROPIC_API_KEY | Y | N | Y(*1) | Y | +| geminiAgent | GOOGLE_GENAI_API_KEY | Y | Y | ? | Y | +| groqAgent | GROQ_API_KEY | Y | Y | Y(*1) | Y | +| openAIAgent | OPENAI_API_KEY | Y | Y | Y(*1) | Y | +| replicateAgent | REPLICATE_API_TOKEN | N | N | ? | N | + +(*1) dangerouslyAllowBrowser + ### Usage diff --git a/agents/llm_agents/package.json b/agents/llm_agents/package.json index d54db0f22..de0dd2d74 100644 --- a/agents/llm_agents/package.json +++ b/agents/llm_agents/package.json @@ -34,7 +34,6 @@ "@graphai/replicate_agent": "^0.2.0", "@graphai/slashgpt_agent": "^0.2.0" }, - "devDependencies": {}, "types": "./lib/index.d.ts", "directories": { "lib": "lib" diff --git a/docs/document_generation.md b/docs/document_generation.md index e8ad30126..e5fa4302b 100644 --- a/docs/document_generation.md +++ b/docs/document_generation.md @@ -56,7 +56,9 @@ The implementation of this script is `graphai/packages/agentdoc/src/agentdoc.ts` If you want to add your own text to the readme, add the following md under docs. -GraphDataJSON.md READMEBefore.md READMEAfter.md +- GraphDataJSON.md +- READMEBefore.md +- READMEAfter.md ## markdown template diff --git a/llm_agents/groq_agent/package.json b/llm_agents/groq_agent/package.json index 222dc0936..b7fe45b9f 100644 --- a/llm_agents/groq_agent/package.json +++ b/llm_agents/groq_agent/package.json @@ -30,7 +30,6 @@ "@graphai/llm_utils": "^0.0.2", "groq-sdk": "^0.9.0" }, - "devDependencies": {}, "types": "./lib/index.d.ts", "directories": { "lib": "lib" diff --git a/llm_agents/replicate_agent/src/replicate_agent.ts b/llm_agents/replicate_agent/src/replicate_agent.ts index 13e1fa479..7128b0bc5 100644 --- a/llm_agents/replicate_agent/src/replicate_agent.ts +++ b/llm_agents/replicate_agent/src/replicate_agent.ts @@ -7,7 +7,7 @@ type ReplicateInputs = { verbose?: boolean; baseURL?: string; apiKey?: string; - stream?: boolean; + // stream?: boolean; messages?: Array>; forWeb?: boolean; } & GrapAILLMInputBase; diff --git a/packages/agentdoc/templates/readme-agent.md b/packages/agentdoc/templates/readme-agent.md index f08e5a748..7d8a4fa0e 100644 --- a/packages/agentdoc/templates/readme-agent.md +++ b/packages/agentdoc/templates/readme-agent.md @@ -20,16 +20,6 @@ const graph = new GraphAI(graph_data, agents); const result = await graph.run(); ``` -| **Agent** | APIKEY | Stream | Tools | Web | History | -|----------------|----------------------|--------|-------|-------|---------| -| anthropicAgent | ANTHROPIC_API_KEY | Y | N | Y(*1) | Y | -| geminiAgent | GOOGLE_GENAI_API_KEY | Y | Y | ? | Y | -| groqAgent | GROQ_API_KEY | Y | Y | Y(*1) | Y | -| openAIAgent | OPENAI_API_KEY | Y | Y | Y(*1) | Y | -| replicateAgent | REPLICATE_API_TOKEN | N | N | ? | N | - -(*1) dangerouslyAllowBrowser - {relatedAgents} {GraphDataJSON}