Skip to content

Commit

Permalink
Remove old code (#176)
Browse files Browse the repository at this point in the history
Remove old code
  • Loading branch information
eyurtsev authored Apr 18, 2024
1 parent c80e959 commit bec40d9
Show file tree
Hide file tree
Showing 22 changed files with 33 additions and 1,451 deletions.
8 changes: 7 additions & 1 deletion langchain_benchmarks/tool_usage/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
"""Package for helping to evaluate agent runs."""
from langchain_benchmarks.tool_usage.agents import apply_agent_executor_adapter
from langchain_benchmarks.tool_usage.agents import (
CustomRunnableAgentFactory,
StandardAgentFactory,
apply_agent_executor_adapter,
)
from langchain_benchmarks.tool_usage.evaluators import get_eval_config

# Please keep this list sorted!
__all__ = [
"apply_agent_executor_adapter",
"CustomRunnableAgentFactory",
"get_eval_config",
"StandardAgentFactory",
]
14 changes: 0 additions & 14 deletions langchain_benchmarks/tool_usage/agents/__init__.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
from langchain_benchmarks.tool_usage.agents.adapters import apply_agent_executor_adapter
from langchain_benchmarks.tool_usage.agents.anthropic_tool_user import (
AnthropicToolUserFactory,
)
from langchain_benchmarks.tool_usage.agents.experimental.factory import (
CustomAgentFactory,
)
from langchain_benchmarks.tool_usage.agents.openai_assistant import (
OpenAIAssistantFactory,
)
from langchain_benchmarks.tool_usage.agents.openai_functions import OpenAIAgentFactory
from langchain_benchmarks.tool_usage.agents.runnable_agent import (
CustomRunnableAgentFactory,
)
from langchain_benchmarks.tool_usage.agents.tool_using_agent import StandardAgentFactory

__all__ = [
"OpenAIAgentFactory",
"OpenAIAssistantFactory",
"apply_agent_executor_adapter",
"CustomAgentFactory",
"AnthropicToolUserFactory",
"CustomRunnableAgentFactory",
"StandardAgentFactory",
]
271 changes: 0 additions & 271 deletions langchain_benchmarks/tool_usage/agents/anthropic_tool_user.py

This file was deleted.

11 changes: 11 additions & 0 deletions langchain_benchmarks/tool_usage/agents/base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import abc

from langchain_core.runnables import Runnable


class AgentFactory(abc.ABC):
"""Abstract class for agent factory"""

@abc.abstractmethod
def __call__(self) -> Runnable:
"""Create a new agent"""
Empty file.
Loading

0 comments on commit bec40d9

Please sign in to comment.