Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
cr
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryjliu committed Jan 25, 2024
1 parent a427564 commit 276b903
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llama_hub/tools/metaphor/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Metaphor Tool

**NOTE**: Metaphor is now Exa. This tool has been removed. Please use the `ExaToolSpec` instead!
6 changes: 6 additions & 0 deletions llama_hub/tools/metaphor/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## init
from llama_hub.tools.metaphor.base import (
MetaphorToolSpec,
)

__all__ = ["MetaphorToolSpec"]
15 changes: 15 additions & 0 deletions llama_hub/tools/metaphor/base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""Metaphor tool spec."""

from llama_index.tools.tool_spec.base import BaseToolSpec


class MetaphorToolSpec(BaseToolSpec):
"""Metaphor tool spec."""

spec_functions = []

def __init__(self, api_key: str, verbose: bool = True) -> None:
"""Initialize with parameters."""
raise NotImplementedError(
"Metaphor is now Exa. Please use ExaToolSpec instead."
)

0 comments on commit 276b903

Please sign in to comment.