repo stringlengths 7 90 | file_url stringlengths 81 315 | file_path stringlengths 4 228 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:38:15 2026-01-05 02:33:18 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/storage/docstore/llama-index-storage-docstore-firestore/tests/test_storage_docstore_firestore.py | llama-index-integrations/storage/docstore/llama-index-storage-docstore-firestore/tests/test_storage_docstore_firestore.py | from llama_index.core.storage.docstore.keyval_docstore import KVDocumentStore
from llama_index.storage.docstore.firestore import FirestoreDocumentStore
def test_class():
names_of_base_classes = [b.__name__ for b in FirestoreDocumentStore.__mro__]
assert KVDocumentStore.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/storage/docstore/llama-index-storage-docstore-firestore/llama_index/storage/docstore/firestore/__init__.py | llama-index-integrations/storage/docstore/llama-index-storage-docstore-firestore/llama_index/storage/docstore/firestore/__init__.py | from llama_index.storage.docstore.firestore.base import FirestoreDocumentStore
__all__ = ["FirestoreDocumentStore"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/storage/docstore/llama-index-storage-docstore-firestore/llama_index/storage/docstore/firestore/base.py | llama-index-integrations/storage/docstore/llama-index-storage-docstore-firestore/llama_index/storage/docstore/firestore/base.py | from typing import Optional
from llama_index.core.storage.docstore.keyval_docstore import KVDocumentStore
from llama_index.core.storage.docstore.types import DEFAULT_BATCH_SIZE
from llama_index.storage.kvstore.firestore import FirestoreKVStore
class FirestoreDocumentStore(KVDocumentStore):
"""
Firestore Docu... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/storage/docstore/llama-index-storage-docstore-duckdb/tests/test_storage_docstore_duckdb.py | llama-index-integrations/storage/docstore/llama-index-storage-docstore-duckdb/tests/test_storage_docstore_duckdb.py | from llama_index.core.storage.docstore.keyval_docstore import KVDocumentStore
from llama_index.storage.docstore.duckdb import DuckDBDocumentStore
def test_class():
names_of_base_classes = [b.__name__ for b in DuckDBDocumentStore.__mro__]
assert KVDocumentStore.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/storage/docstore/llama-index-storage-docstore-duckdb/tests/__init__.py | llama-index-integrations/storage/docstore/llama-index-storage-docstore-duckdb/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/storage/docstore/llama-index-storage-docstore-duckdb/llama_index/storage/docstore/duckdb/__init__.py | llama-index-integrations/storage/docstore/llama-index-storage-docstore-duckdb/llama_index/storage/docstore/duckdb/__init__.py | from llama_index.storage.docstore.duckdb.base import DuckDBDocumentStore
__all__ = ["DuckDBDocumentStore"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/storage/docstore/llama-index-storage-docstore-duckdb/llama_index/storage/docstore/duckdb/base.py | llama-index-integrations/storage/docstore/llama-index-storage-docstore-duckdb/llama_index/storage/docstore/duckdb/base.py | from typing import Optional
from llama_index.core.storage.docstore.keyval_docstore import KVDocumentStore
from llama_index.core.storage.docstore.types import DEFAULT_BATCH_SIZE
from llama_index.storage.kvstore.duckdb import DuckDBKVStore
class DuckDBDocumentStore(KVDocumentStore):
"""
DuckDB Document (Node) ... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/storage/docstore/llama-index-storage-docstore-azure/tests/__init__.py | llama-index-integrations/storage/docstore/llama-index-storage-docstore-azure/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/storage/docstore/llama-index-storage-docstore-azure/tests/test_storage_docstore_azure.py | llama-index-integrations/storage/docstore/llama-index-storage-docstore-azure/tests/test_storage_docstore_azure.py | from llama_index.core.storage.docstore.keyval_docstore import KVDocumentStore
from llama_index.storage.docstore.azure import AzureDocumentStore
def test_class():
names_of_base_classes = [b.__name__ for b in AzureDocumentStore.__mro__]
assert KVDocumentStore.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/storage/docstore/llama-index-storage-docstore-azure/llama_index/storage/docstore/azure/__init__.py | llama-index-integrations/storage/docstore/llama-index-storage-docstore-azure/llama_index/storage/docstore/azure/__init__.py | from llama_index.storage.docstore.azure.base import AzureDocumentStore
__all__ = ["AzureDocumentStore"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/storage/docstore/llama-index-storage-docstore-azure/llama_index/storage/docstore/azure/base.py | llama-index-integrations/storage/docstore/llama-index-storage-docstore-azure/llama_index/storage/docstore/azure/base.py | import asyncio
from collections import defaultdict
from typing import Dict, List, Optional, Sequence, Tuple
from llama_index.core.schema import BaseNode
from llama_index.core.storage.docstore.keyval_docstore import KVDocumentStore
from llama_index.core.storage.docstore.types import DEFAULT_BATCH_SIZE, RefDocInfo
from ... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/storage/docstore/llama-index-storage-docstore-postgres/llama_index/storage/docstore/postgres/__init__.py | llama-index-integrations/storage/docstore/llama-index-storage-docstore-postgres/llama_index/storage/docstore/postgres/__init__.py | from llama_index.storage.docstore.postgres.base import PostgresDocumentStore
__all__ = ["PostgresDocumentStore"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/storage/docstore/llama-index-storage-docstore-postgres/llama_index/storage/docstore/postgres/base.py | llama-index-integrations/storage/docstore/llama-index-storage-docstore-postgres/llama_index/storage/docstore/postgres/base.py | from typing import Optional
from llama_index.core.storage.docstore.keyval_docstore import KVDocumentStore
from llama_index.core.storage.docstore.types import DEFAULT_BATCH_SIZE
from llama_index.storage.kvstore.postgres import PostgresKVStore
class PostgresDocumentStore(KVDocumentStore):
"""
Postgres Document... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/storage/docstore/llama-index-storage-docstore-redis/tests/test_storage_docstore_redis.py | llama-index-integrations/storage/docstore/llama-index-storage-docstore-redis/tests/test_storage_docstore_redis.py | from llama_index.core.storage.docstore.keyval_docstore import KVDocumentStore
from llama_index.storage.docstore.redis import RedisDocumentStore
def test_class():
names_of_base_classes = [b.__name__ for b in RedisDocumentStore.__mro__]
assert KVDocumentStore.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/storage/docstore/llama-index-storage-docstore-redis/tests/__init__.py | llama-index-integrations/storage/docstore/llama-index-storage-docstore-redis/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/storage/docstore/llama-index-storage-docstore-redis/llama_index/storage/docstore/redis/__init__.py | llama-index-integrations/storage/docstore/llama-index-storage-docstore-redis/llama_index/storage/docstore/redis/__init__.py | from llama_index.storage.docstore.redis.base import RedisDocumentStore
__all__ = ["RedisDocumentStore"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/storage/docstore/llama-index-storage-docstore-redis/llama_index/storage/docstore/redis/base.py | llama-index-integrations/storage/docstore/llama-index-storage-docstore-redis/llama_index/storage/docstore/redis/base.py | from typing import Any, Optional
from llama_index.core.storage.docstore.keyval_docstore import KVDocumentStore
from llama_index.core.storage.docstore.types import DEFAULT_BATCH_SIZE
from llama_index.storage.kvstore.redis import RedisKVStore
class RedisDocumentStore(KVDocumentStore):
"""
Redis Document (Node)... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/storage/docstore/llama-index-storage-docstore-azurecosmosnosql/tests/test_storage_document_store_azurecosmosnosql.py | llama-index-integrations/storage/docstore/llama-index-storage-docstore-azurecosmosnosql/tests/test_storage_document_store_azurecosmosnosql.py | from llama_index.core.storage.kvstore.types import BaseKVStore
from llama_index.storage.docstore.azurecosmosnosql import AzureCosmosNoSqlDocumentStore
def test_class():
names_of_base_classes = [b.__name__ for b in AzureCosmosNoSqlDocumentStore.__mro__]
assert BaseKVStore.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/storage/docstore/llama-index-storage-docstore-azurecosmosnosql/tests/__init__.py | llama-index-integrations/storage/docstore/llama-index-storage-docstore-azurecosmosnosql/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/storage/docstore/llama-index-storage-docstore-azurecosmosnosql/llama_index/storage/docstore/azurecosmosnosql/__init__.py | llama-index-integrations/storage/docstore/llama-index-storage-docstore-azurecosmosnosql/llama_index/storage/docstore/azurecosmosnosql/__init__.py | from llama_index.storage.docstore.azurecosmosnosql.base import (
AzureCosmosNoSqlDocumentStore,
)
__all__ = ["AzureCosmosNoSqlDocumentStore"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/storage/docstore/llama-index-storage-docstore-azurecosmosnosql/llama_index/storage/docstore/azurecosmosnosql/base.py | llama-index-integrations/storage/docstore/llama-index-storage-docstore-azurecosmosnosql/llama_index/storage/docstore/azurecosmosnosql/base.py | from typing import Any, Dict, Optional
from llama_index.core.storage.kvstore.types import BaseKVStore
from llama_index.storage.kvstore.azurecosmosnosql import AzureCosmosNoSqlKVStore
DEFAULT_DOCUMENT_DATABASE = "DocumentStoreDB"
DEFAULT_DOCUMENT_CONTAINER = "DocumentStoreContainer"
class AzureCosmosNoSqlDocumentSto... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/response_synthesizers/llama-index-response-synthesizers-google/tests/__init__.py | llama-index-integrations/response_synthesizers/llama-index-response-synthesizers-google/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/response_synthesizers/llama-index-response-synthesizers-google/tests/test_response_synthesizers_google.py | llama-index-integrations/response_synthesizers/llama-index-response-synthesizers-google/tests/test_response_synthesizers_google.py | from llama_index.core.response_synthesizers.base import BaseSynthesizer
from llama_index.response_synthesizers.google import GoogleTextSynthesizer
def test_class():
names_of_base_classes = [b.__name__ for b in GoogleTextSynthesizer.__mro__]
assert BaseSynthesizer.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/response_synthesizers/llama-index-response-synthesizers-google/llama_index/response_synthesizers/google/__init__.py | llama-index-integrations/response_synthesizers/llama-index-response-synthesizers-google/llama_index/response_synthesizers/google/__init__.py | from llama_index.response_synthesizers.google.base import (
GoogleTextSynthesizer,
SynthesizedResponse,
)
from llama_index.vector_stores.google import set_google_config
__all__ = [
"GoogleTextSynthesizer",
"set_google_config",
"SynthesizedResponse",
]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/response_synthesizers/llama-index-response-synthesizers-google/llama_index/response_synthesizers/google/base.py | llama-index-integrations/response_synthesizers/llama-index-response-synthesizers-google/llama_index/response_synthesizers/google/base.py | """
Google GenerativeAI Attributed Question and Answering (AQA) service.
The GenAI Semantic AQA API is a managed end to end service that allows
developers to create responses grounded on specified passages based on
a user query. For more information visit:
https://developers.generativeai.google/guide
"""
import loggi... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-ionic-shopping/tests/test_tools_ionic_shopping.py | llama-index-integrations/tools/llama-index-tools-ionic-shopping/tests/test_tools_ionic_shopping.py | from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.tools.ionic_shopping import IonicShoppingToolSpec
def test_class():
names_of_base_classes = [b.__name__ for b in IonicShoppingToolSpec.__mro__]
assert BaseToolSpec.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-ionic-shopping/tests/__init__.py | llama-index-integrations/tools/llama-index-tools-ionic-shopping/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-ionic-shopping/llama_index/tools/ionic_shopping/__init__.py | llama-index-integrations/tools/llama-index-tools-ionic-shopping/llama_index/tools/ionic_shopping/__init__.py | from llama_index.tools.ionic_shopping.base import IonicShoppingToolSpec
__all__ = ["IonicShoppingToolSpec"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-ionic-shopping/llama_index/tools/ionic_shopping/base.py | llama-index-integrations/tools/llama-index-tools-ionic-shopping/llama_index/tools/ionic_shopping/base.py | from __future__ import annotations
from typing import Optional
from ionic.models.components import Product, QueryAPIRequest
from ionic.models.components import Query as SDKQuery
from ionic.models.operations import QueryResponse, QuerySecurity
from llama_index.core.tools.tool_spec.base import BaseToolSpec
class Ioni... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-desearch/tests/test_tools_desearch.py | llama-index-integrations/tools/llama-index-tools-desearch/tests/test_tools_desearch.py | from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.tools.desearch import DesearchToolSpec
def test_class():
names_of_base_classes = [b.__name__ for b in DesearchToolSpec.__mro__]
assert BaseToolSpec.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-desearch/tests/__init__.py | llama-index-integrations/tools/llama-index-tools-desearch/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-desearch/llama_index/tools/desearch/__init__.py | llama-index-integrations/tools/llama-index-tools-desearch/llama_index/tools/desearch/__init__.py | from llama_index.tools.desearch.base import DesearchToolSpec
__all__ = ["DesearchToolSpec"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-desearch/llama_index/tools/desearch/base.py | llama-index-integrations/tools/llama-index-tools-desearch/llama_index/tools/desearch/base.py | from pydantic import BaseModel, Field
from typing import Optional, List, Literal
from llama_index.core.tools.tool_spec.base import BaseToolSpec
from desearch_py import Desearch
class TwitterScraperMedia(BaseModel):
media_url: str = ""
type: str = ""
class TwitterScraperUser(BaseModel):
# Available in bo... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-brightdata/tests/test_tools_brightdata.py | llama-index-integrations/tools/llama-index-tools-brightdata/tests/test_tools_brightdata.py | # tests/test_tools_brightdata.py
import unittest
from unittest.mock import patch, MagicMock
import json
import pytest
from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.tools.brightdata import BrightDataToolSpec
class TestBrightDataToolSpec(unittest.TestCase):
def test_class_inheritan... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-brightdata/tests/__init__.py | llama-index-integrations/tools/llama-index-tools-brightdata/tests/__init__.py | from llama_index.tools.brightdata.base import BrightDataToolSpec
__all__ = ["BrightDataToolSpec"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-brightdata/llama_index/tools/brightdata/__init__.py | llama-index-integrations/tools/llama-index-tools-brightdata/llama_index/tools/brightdata/__init__.py | from llama_index.tools.brightdata.base import BrightDataToolSpec
__all__ = ["BrightDataToolSpec"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-brightdata/llama_index/tools/brightdata/base.py | llama-index-integrations/tools/llama-index-tools-brightdata/llama_index/tools/brightdata/base.py | """Bright Data tool spec for LlamaIndex."""
from typing import Dict, Optional
from llama_index.core.schema import Document
from llama_index.core.tools.tool_spec.base import BaseToolSpec
class BrightDataToolSpec(BaseToolSpec):
"""Bright Data tool spec for web scraping and search capabilities."""
spec_functio... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-hive/examples/hive_demo.py | llama-index-integrations/tools/llama-index-tools-hive/examples/hive_demo.py | from llama_index.tools.hive import HiveToolSpec, HiveSearchMessage
hive_tool = HiveToolSpec(api_key="add_your_hive_api_key")
# Simple prompt query
results = hive_tool.search(
prompt="What is the current price of Ethereum?",
include_data_sources=True
)
print("results ", results)
# Chat-style conversation
cha... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-hive/llama_index/tools/hive/__init__.py | llama-index-integrations/tools/llama-index-tools-hive/llama_index/tools/hive/__init__.py | from llama_index.tools.hive.base import HiveToolSpec
from hive_intelligence.client import HiveSearchClient
from hive_intelligence.types import (
HiveSearchRequest,
HiveSearchMessage,
HiveSearchResponse,
)
from hive_intelligence.errors import HiveSearchAPIError
__all__ = [
"HiveToolSpec",
"HiveSearc... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-hive/llama_index/tools/hive/base.py | llama-index-integrations/tools/llama-index-tools-hive/llama_index/tools/hive/base.py | from typing import Optional, List
from llama_index.core.tools.tool_spec.base import BaseToolSpec
from hive_intelligence.client import HiveSearchClient
from hive_intelligence.types import (
HiveSearchRequest,
HiveSearchMessage,
HiveSearchResponse,
)
from hive_intelligence.errors import HiveSearchAPIError
c... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-jina/tests/test_tools_jina.py | llama-index-integrations/tools/llama-index-tools-jina/tests/test_tools_jina.py | from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.tools.jina import JinaToolSpec
def test_class():
names_of_base_classes = [b.__name__ for b in JinaToolSpec.__mro__]
assert BaseToolSpec.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-jina/tests/__init__.py | llama-index-integrations/tools/llama-index-tools-jina/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-jina/llama_index/tools/jina/__init__.py | llama-index-integrations/tools/llama-index-tools-jina/llama_index/tools/jina/__init__.py | from llama_index.tools.jina.base import JinaToolSpec
__all__ = ["JinaToolSpec"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-jina/llama_index/tools/jina/base.py | llama-index-integrations/tools/llama-index-tools-jina/llama_index/tools/jina/base.py | import requests
from yarl import URL
from typing import Dict, List
from llama_index.core.schema import Document
from llama_index.core.tools.tool_spec.base import BaseToolSpec
JINA_SEARCH_URL_ENDPOINT = "https://s.jina.ai/"
class JinaToolSpec(BaseToolSpec):
"""
Jina tool spec.
"""
spec_functions = ["... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-brave-search/tests/test_tools_brave_search.py | llama-index-integrations/tools/llama-index-tools-brave-search/tests/test_tools_brave_search.py | from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.tools.brave_search import BraveSearchToolSpec
def test_class():
names_of_base_classes = [b.__name__ for b in BraveSearchToolSpec.__mro__]
assert BaseToolSpec.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-brave-search/tests/__init__.py | llama-index-integrations/tools/llama-index-tools-brave-search/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-brave-search/llama_index/tools/brave_search/__init__.py | llama-index-integrations/tools/llama-index-tools-brave-search/llama_index/tools/brave_search/__init__.py | ## init
from llama_index.tools.brave_search.base import BraveSearchToolSpec
__all__ = ["BraveSearchToolSpec"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-brave-search/llama_index/tools/brave_search/base.py | llama-index-integrations/tools/llama-index-tools-brave-search/llama_index/tools/brave_search/base.py | import requests
import urllib.parse
from typing import Dict
from llama_index.core.schema import Document
from llama_index.core.tools.tool_spec.base import BaseToolSpec
SEARCH_URL_TMPL = "https://api.search.brave.com/res/v1/web/search?{params}"
class BraveSearchToolSpec(BaseToolSpec):
"""
Brave Search tool sp... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-azure-speech/tests/__init__.py | llama-index-integrations/tools/llama-index-tools-azure-speech/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-azure-speech/tests/test_tools_azure_speech.py | llama-index-integrations/tools/llama-index-tools-azure-speech/tests/test_tools_azure_speech.py | from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.tools.azure_speech import AzureSpeechToolSpec
def test_class():
names_of_base_classes = [b.__name__ for b in AzureSpeechToolSpec.__mro__]
assert BaseToolSpec.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-azure-speech/llama_index/tools/azure_speech/__init__.py | llama-index-integrations/tools/llama-index-tools-azure-speech/llama_index/tools/azure_speech/__init__.py | ## init file
from llama_index.tools.azure_speech.base import (
AzureSpeechToolSpec,
)
__all__ = ["AzureSpeechToolSpec"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-azure-speech/llama_index/tools/azure_speech/base.py | llama-index-integrations/tools/llama-index-tools-azure-speech/llama_index/tools/azure_speech/base.py | """Azure Speech tool spec."""
import time
from typing import List, Optional
from llama_index.core.tools.tool_spec.base import BaseToolSpec
class AzureSpeechToolSpec(BaseToolSpec):
"""Azure Speech tool spec."""
spec_functions = ["speech_to_text", "text_to_speech"]
def __init__(
self, region: st... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-vector-db/tests/test_tools_vector_db.py | llama-index-integrations/tools/llama-index-tools-vector-db/tests/test_tools_vector_db.py | from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.tools.vector_db import VectorDBToolSpec
def test_class():
names_of_base_classes = [b.__name__ for b in VectorDBToolSpec.__mro__]
assert BaseToolSpec.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-vector-db/tests/__init__.py | llama-index-integrations/tools/llama-index-tools-vector-db/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-vector-db/llama_index/tools/vector_db/__init__.py | llama-index-integrations/tools/llama-index-tools-vector-db/llama_index/tools/vector_db/__init__.py | # init
from llama_index.tools.vector_db.base import (
VectorDB,
VectorDBToolSpec,
)
__all__ = ["VectorDB", "VectorDBToolSpec"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-vector-db/llama_index/tools/vector_db/base.py | llama-index-integrations/tools/llama-index-tools-vector-db/llama_index/tools/vector_db/base.py | """Vector DB tool spec."""
from typing import List
from llama_index.core.indices.base import BaseIndex
from llama_index.core.query_engine import RetrieverQueryEngine
from llama_index.core.retrievers import VectorIndexRetriever
from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.core.vector... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-azure-cv/tests/test_tools_azure_cv.py | llama-index-integrations/tools/llama-index-tools-azure-cv/tests/test_tools_azure_cv.py | from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.tools.azure_cv import AzureCVToolSpec
def test_class():
names_of_base_classes = [b.__name__ for b in AzureCVToolSpec.__mro__]
assert BaseToolSpec.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-azure-cv/tests/__init__.py | llama-index-integrations/tools/llama-index-tools-azure-cv/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-azure-cv/llama_index/tools/azure_cv/__init__.py | llama-index-integrations/tools/llama-index-tools-azure-cv/llama_index/tools/azure_cv/__init__.py | ## init
from llama_index.tools.azure_cv.base import (
CV_URL_TMPL,
AzureCVToolSpec,
)
__all__ = ["AzureCVToolSpec", "CV_URL_TMPL"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-azure-cv/llama_index/tools/azure_cv/base.py | llama-index-integrations/tools/llama-index-tools-azure-cv/llama_index/tools/azure_cv/base.py | """Azure Cognitive Vision tool spec."""
from typing import List, Optional
import requests
from llama_index.core.tools.tool_spec.base import BaseToolSpec
CV_URL_TMPL = "https://{resource}.cognitiveservices.azure.com/computervision/imageanalysis:analyze"
class AzureCVToolSpec(BaseToolSpec):
"""Azure Cognitive Vi... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-python-file/tests/test_tools_python_file.py | llama-index-integrations/tools/llama-index-tools-python-file/tests/test_tools_python_file.py | from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.tools.python_file import PythonFileToolSpec
def test_class():
names_of_base_classes = [b.__name__ for b in PythonFileToolSpec.__mro__]
assert BaseToolSpec.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-python-file/tests/__init__.py | llama-index-integrations/tools/llama-index-tools-python-file/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-python-file/llama_index/tools/python_file/__init__.py | llama-index-integrations/tools/llama-index-tools-python-file/llama_index/tools/python_file/__init__.py | # init file
from llama_index.tools.python_file.base import (
PythonFileToolSpec,
)
__all__ = ["PythonFileToolSpec"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-python-file/llama_index/tools/python_file/base.py | llama-index-integrations/tools/llama-index-tools-python-file/llama_index/tools/python_file/base.py | import ast
from typing import List, Optional
from llama_index.core.tools.tool_spec.base import BaseToolSpec
class PythonFileToolSpec(BaseToolSpec):
spec_functions = ["function_definitions", "get_function", "get_functions"]
def __init__(self, file_name: str) -> None:
f = open(file_name).read()
... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-jira/tests/test_tools_jira.py | llama-index-integrations/tools/llama-index-tools-jira/tests/test_tools_jira.py | from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.tools.jira import JiraToolSpec
def test_class():
names_of_base_classes = [b.__name__ for b in JiraToolSpec.__mro__]
assert BaseToolSpec.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-jira/tests/__init__.py | llama-index-integrations/tools/llama-index-tools-jira/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-jira/llama_index/tools/jira/__init__.py | llama-index-integrations/tools/llama-index-tools-jira/llama_index/tools/jira/__init__.py | from llama_index.tools.jira.base import JiraToolSpec
__all__ = ["JiraToolSpec"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-jira/llama_index/tools/jira/base.py | llama-index-integrations/tools/llama-index-tools-jira/llama_index/tools/jira/base.py | """Jira tool spec."""
from typing import Optional, Union
from llama_index.core.tools.tool_spec.base import BaseToolSpec
class JiraToolSpec(BaseToolSpec):
"""Atlassian Jira Tool Spec."""
spec_functions = [
"jira_issues_query",
"jira_issue_query",
"jira_comments_query",
"jira_a... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-requests/tests/__init__.py | llama-index-integrations/tools/llama-index-tools-requests/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-requests/tests/test_tools_requests.py | llama-index-integrations/tools/llama-index-tools-requests/tests/test_tools_requests.py | from unittest.mock import patch
from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.tools.requests import RequestsToolSpec, INVALID_URL_PROMPT
def test_class():
names_of_base_classes = [b.__name__ for b in RequestsToolSpec.__mro__]
assert BaseToolSpec.__name__ in names_of_base_cla... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-requests/llama_index/tools/requests/__init__.py | llama-index-integrations/tools/llama-index-tools-requests/llama_index/tools/requests/__init__.py | #
from llama_index.tools.requests.base import (
INVALID_URL_PROMPT,
RequestsToolSpec,
)
__all__ = ["INVALID_URL_PROMPT", "RequestsToolSpec"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-requests/llama_index/tools/requests/base.py | llama-index-integrations/tools/llama-index-tools-requests/llama_index/tools/requests/base.py | """Requests Tool."""
import requests
from typing import Optional
from urllib.parse import urlparse, urlunparse
from llama_index.core.tools.tool_spec.base import BaseToolSpec
INVALID_URL_PROMPT = (
"This url did not include a hostname or scheme. Please determine the complete URL"
" and try again."
)
class ... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-yelp/tests/test_tools_yelp.py | llama-index-integrations/tools/llama-index-tools-yelp/tests/test_tools_yelp.py | from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.tools.yelp import YelpToolSpec
def test_class():
names_of_base_classes = [b.__name__ for b in YelpToolSpec.__mro__]
assert BaseToolSpec.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-yelp/tests/__init__.py | llama-index-integrations/tools/llama-index-tools-yelp/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-yelp/llama_index/tools/yelp/__init__.py | llama-index-integrations/tools/llama-index-tools-yelp/llama_index/tools/yelp/__init__.py | from llama_index.tools.yelp.base import YelpToolSpec
__all__ = ["YelpToolSpec"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-yelp/llama_index/tools/yelp/base.py | llama-index-integrations/tools/llama-index-tools-yelp/llama_index/tools/yelp/base.py | """
Copyright (c) 2013, Triad National Security, LLC
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and ... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-openapi/tests/test_tools_openapi.py | llama-index-integrations/tools/llama-index-tools-openapi/tests/test_tools_openapi.py | import json
from pathlib import Path
import yaml
from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.tools.openapi import OpenAPIToolSpec
def test_class():
names_of_base_classes = [b.__name__ for b in OpenAPIToolSpec.__mro__]
assert BaseToolSpec.__name__ in names_of_base_classes
... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-openapi/tests/__init__.py | llama-index-integrations/tools/llama-index-tools-openapi/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-openapi/llama_index/tools/openapi/__init__.py | llama-index-integrations/tools/llama-index-tools-openapi/llama_index/tools/openapi/__init__.py | # __init__.py
from llama_index.tools.openapi.base import (
OpenAPIToolSpec,
)
__all__ = ["OpenAPIToolSpec"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-openapi/llama_index/tools/openapi/base.py | llama-index-integrations/tools/llama-index-tools-openapi/llama_index/tools/openapi/base.py | """OpenAPI Tool."""
import json
from collections import OrderedDict
from typing import List, Optional, Callable
import requests
from llama_index.core.schema import Document
from llama_index.core.tools.tool_spec.base import BaseToolSpec
class OpenAPIToolSpec(BaseToolSpec):
"""
OpenAPI Tool.
This tool ca... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-weather/tests/test_tools_weather.py | llama-index-integrations/tools/llama-index-tools-weather/tests/test_tools_weather.py | from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.tools.weather import OpenWeatherMapToolSpec
def test_class():
names_of_base_classes = [b.__name__ for b in OpenWeatherMapToolSpec.__mro__]
assert BaseToolSpec.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-weather/tests/__init__.py | llama-index-integrations/tools/llama-index-tools-weather/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-weather/llama_index/tools/weather/__init__.py | llama-index-integrations/tools/llama-index-tools-weather/llama_index/tools/weather/__init__.py | from llama_index.tools.weather.base import (
OpenWeatherMapToolSpec,
)
__all__ = ["OpenWeatherMapToolSpec"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-weather/llama_index/tools/weather/base.py | llama-index-integrations/tools/llama-index-tools-weather/llama_index/tools/weather/base.py | """Open Weather Map tool spec."""
from typing import Any, List
from llama_index.core.schema import Document
from llama_index.core.tools.tool_spec.base import BaseToolSpec
class OpenWeatherMapToolSpec(BaseToolSpec):
"""Open Weather tool spec."""
spec_functions = ["weather_at_location", "forecast_tomorrow_at... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-cogniswitch/tests/test_tools_cogniswitch.py | llama-index-integrations/tools/llama-index-tools-cogniswitch/tests/test_tools_cogniswitch.py | from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.tools.cogniswitch import CogniswitchToolSpec
def test_class():
names_of_base_classes = [b.__name__ for b in CogniswitchToolSpec.__mro__]
assert BaseToolSpec.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-cogniswitch/tests/__init__.py | llama-index-integrations/tools/llama-index-tools-cogniswitch/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-cogniswitch/llama_index/tools/cogniswitch/__init__.py | llama-index-integrations/tools/llama-index-tools-cogniswitch/llama_index/tools/cogniswitch/__init__.py | from llama_index.tools.cogniswitch.base import CogniswitchToolSpec
__all__ = [
"CogniswitchToolSpec",
]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-cogniswitch/llama_index/tools/cogniswitch/base.py | llama-index-integrations/tools/llama-index-tools-cogniswitch/llama_index/tools/cogniswitch/base.py | import os
from typing import Optional
import requests
from llama_index.core.tools.tool_spec.base import BaseToolSpec
class CogniswitchToolSpec(BaseToolSpec):
"""
Cogniswitch Tool Spec.
A toolspec to have store_data and query_knowledge as tools to store the data from a file or a url
and answer questio... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-cassandra/tests/test_tools_cassandra.py | llama-index-integrations/tools/llama-index-tools-cassandra/tests/test_tools_cassandra.py | from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.tools.cassandra.base import CassandraDatabaseToolSpec
def test_class() -> None:
names_of_base_classes = [b.__name__ for b in CassandraDatabaseToolSpec.__mro__]
assert BaseToolSpec.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-cassandra/tests/__init__.py | llama-index-integrations/tools/llama-index-tools-cassandra/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-cassandra/llama_index/tools/cassandra/__init__.py | llama-index-integrations/tools/llama-index-tools-cassandra/llama_index/tools/cassandra/__init__.py | from llama_index.tools.cassandra.base import CassandraDatabaseToolSpec
__all__ = ["CassandraDatabaseToolSpec"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-cassandra/llama_index/tools/cassandra/cassandra_database_wrapper.py | llama-index-integrations/tools/llama-index-tools-cassandra/llama_index/tools/cassandra/cassandra_database_wrapper.py | """Apache Cassandra database wrapper."""
from __future__ import annotations
import re
import traceback
from typing import Any, Dict, List, Optional, Sequence, Tuple, Union
from cassandra.cluster import ResultSet, Session
from llama_index.core.bridge.pydantic import BaseModel, Field, model_validator
IGNORED_KEYSPACE... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-cassandra/llama_index/tools/cassandra/base.py | llama-index-integrations/tools/llama-index-tools-cassandra/llama_index/tools/cassandra/base.py | """Tools for interacting with an Apache Cassandra database."""
from typing import List
from llama_index.core.bridge.pydantic import Field
from llama_index.core.schema import Document
from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.tools.cassandra.cassandra_database_wrapper import (
... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-google/tests/__init__.py | llama-index-integrations/tools/llama-index-tools-google/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-google/tests/test_tools_google.py | llama-index-integrations/tools/llama-index-tools-google/tests/test_tools_google.py | from unittest.mock import Mock, patch
from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.tools.google import (
GmailToolSpec,
GoogleCalendarToolSpec,
GoogleSearchToolSpec,
)
def test_class():
names_of_base_classes = [b.__name__ for b in GoogleCalendarToolSpec.__mro__]
... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-google/llama_index/tools/google/__init__.py | llama-index-integrations/tools/llama-index-tools-google/llama_index/tools/google/__init__.py | from llama_index.tools.google.calendar.base import GoogleCalendarToolSpec
from llama_index.tools.google.gmail.base import GmailToolSpec
from llama_index.tools.google.search.base import (
QUERY_URL_TMPL,
GoogleSearchToolSpec,
)
__all__ = [
"GoogleCalendarToolSpec",
"GmailToolSpec",
"GoogleSearchTool... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-google/llama_index/tools/google/gmail/__init__.py | llama-index-integrations/tools/llama-index-tools-google/llama_index/tools/google/gmail/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-google/llama_index/tools/google/gmail/base.py | llama-index-integrations/tools/llama-index-tools-google/llama_index/tools/google/gmail/base.py | """GMail tool spec."""
import base64
import email
from email.message import EmailMessage
from typing import Any, List, Optional
from llama_index.core.schema import Document
from llama_index.core.tools.tool_spec.base import BaseToolSpec
SCOPES = [
"https://www.googleapis.com/auth/gmail.compose",
"https://www.... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-google/llama_index/tools/google/calendar/__init__.py | llama-index-integrations/tools/llama-index-tools-google/llama_index/tools/google/calendar/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/tools/llama-index-tools-google/llama_index/tools/google/calendar/base.py | llama-index-integrations/tools/llama-index-tools-google/llama_index/tools/google/calendar/base.py | """Google Calendar tool spec."""
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.