Skip to content

Commit

Permalink
feat(Agent): change plugin path
Browse files Browse the repository at this point in the history
change plugin path
  • Loading branch information
yhjun1026 committed Dec 26, 2023
1 parent 954834e commit 7192cdf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dbgpt/agent/agents/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class AgentContext:
resource_db: Optional[AgentResource] = None
resource_knowledge: Optional[AgentResource] = None
resource_internet: Optional[AgentResource] = None
llm_models: Optional[List[ModelMetadata]] = None
llm_models: Optional[List[Union[ModelMetadata, str]]] = None
model_priority: Optional[dict] = None
agents: Optional[List[str]] = None

Expand Down
3 changes: 2 additions & 1 deletion examples/agents/auto_plan_agent_dialogue_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

from dbgpt.agent.agents.agent import AgentContext
from dbgpt.agent.memory.gpts_memory import GptsMemory
from dbgpt.core.interface.llm import ModelMetadata

import asyncio
import os
Expand All @@ -34,7 +35,7 @@

llm_client = OpenAILLMClient()
context: AgentContext = AgentContext(conv_id="test456", llm_provider=llm_client)
context.llm_models = ["gpt-3.5-turbo"]
context.llm_models = [ModelMetadata(model="gpt-3.5-turbo")]

default_memory = GptsMemory()
coder = CodeAssistantAgent(memory=default_memory, agent_context=context)
Expand Down
3 changes: 2 additions & 1 deletion examples/agents/single_agent_dialogue_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from dbgpt.agent.agents.user_proxy_agent import UserProxyAgent
from dbgpt.agent.memory.gpts_memory import GptsMemory
from dbgpt.agent.agents.agent import AgentContext
from dbgpt.core.interface.llm import ModelMetadata
import asyncio
import os

Expand All @@ -28,7 +29,7 @@

llm_client = OpenAILLMClient()
context: AgentContext = AgentContext(conv_id="test456", llm_provider=llm_client)
context.llm_models = ["gpt-3.5-turbo"]
context.llm_models = [ModelMetadata(model="gpt-3.5-turbo")]

default_memory = GptsMemory()
coder = CodeAssistantAgent(memory=default_memory, agent_context=context)
Expand Down

0 comments on commit 7192cdf

Please sign in to comment.