Skip to content

Commit

Permalink
fix: agents & awel examples
Browse files Browse the repository at this point in the history
  • Loading branch information
csunny committed Dec 27, 2024
1 parent 64d9e5e commit d626d58
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 254 deletions.
29 changes: 29 additions & 0 deletions examples/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
# TODO add example run code here

import asyncio

# Agents examples
from .agents.auto_plan_agent_dialogue_example import main as auto_plan_main
from .agents.awel_layout_agents_chat_examples import main as awel_layout_main
from .agents.custom_tool_agent_example import main as custom_tool_main
from .agents.plugin_agent_dialogue_example import main as plugin_main
from .agents.retrieve_summary_agent_dialogue_example import (
main as retrieve_summary_main,
)
from .agents.sandbox_code_agent_example import main as sandbox_code_main
from .agents.single_agent_dialogue_example import main as single_agent_main
from .agents.sql_agent_dialogue_example import main as sql_main

if __name__ == "__main__":

# Run the examples

## Agent examples
asyncio.run(auto_plan_main())
asyncio.run(awel_layout_main())
asyncio.run(custom_tool_main())
asyncio.run(retrieve_summary_main())
asyncio.run(plugin_main())
asyncio.run(sandbox_code_main())
asyncio.run(single_agent_main())
asyncio.run(sql_main())

## awel examples
print("hello world!")
2 changes: 1 addition & 1 deletion examples/awel/simple_rag_summary_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from dbgpt._private.pydantic import BaseModel, Field
from dbgpt.core.awel import DAG, HttpTrigger, MapOperator
from dbgpt.model.proxy import OpenAILLMClient
from dbgpt.rag.knowledge import KnowledgeType
from dbgpt.rag.knowledge.base import KnowledgeType
from dbgpt.rag.operators import KnowledgeOperator, SummaryAssemblerOperator


Expand Down
118 changes: 0 additions & 118 deletions examples/notebook/agent_auto_plan_dialogue_example.ipynb

This file was deleted.

135 changes: 0 additions & 135 deletions examples/notebook/agent_awel_layout_dialogue_example.ipynb

This file was deleted.

0 comments on commit d626d58

Please sign in to comment.