-
Notifications
You must be signed in to change notification settings - Fork 895
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(integrations): spider tool refractored + readme/typespec updates
- Loading branch information
1 parent
a256a69
commit 0c55e12
Showing
10 changed files
with
276 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
from langchain_core.documents import Document | ||
from pydantic import Field | ||
from typing import Any, List, Optional | ||
|
||
from pydantic import BaseModel, Field | ||
|
||
from .base_models import BaseOutput | ||
|
||
|
||
class SpiderFetchOutput(BaseOutput): | ||
documents: list[Document] = Field( | ||
..., description="The documents returned from the spider" | ||
class SpiderResponse(BaseModel): | ||
content: Optional[str] = None | ||
error: Optional[str] = None | ||
status: Optional[int] = None | ||
costs: Optional[dict[Any, Any]] = None | ||
url: Optional[str] = None | ||
|
||
|
||
class SpiderOutput(BaseOutput): | ||
result: List[SpiderResponse] = Field( | ||
..., description="The responses from the spider" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.