Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove old code #176

Merged
merged 5 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading