Skip to main content

Horizon Data Wave Tools

Project description

🔎 Horizon Data Wave Tools

Horizon Data Wave Tools is a collection of tools for integrating with llamaindex and crewai. This library provides endpoints to fetch data from LinkedIn via the HorizonDataWave data provider. You can use hdw_tools to easily integrate LinkedIn data queries into projects using llamaindex and crewai.

Python Version Requirement

HDW tools requires Python 3.12 or higher.

Installation

Install using pip:

pip install hdw_tools

Environment Variables

To use this project, you need to set the following environment variables:

HDW_API_KEY: The API key required for authentication. You can obtain this key by visiting Horizon Data Wave.

Make sure to add these variables to your environment configuration before running the project.

Examples

Using with LlamaIndex

from hdw_tools.tools.llama_linkedin import LinkedInToolSpec
from llama_index.agent.openai import OpenAIAgent
from llama_index.llms.openai import OpenAI

agent = OpenAIAgent.from_tools(
    [tool for sublist in [LinkedInToolSpec().to_tool_list()] for tool in sublist],
    llm=OpenAI(model="gpt-4", temperature=0.1),
    verbose=True,
    system_prompt="You are an AI assistant helping users with LinkedIn searches",
)

Using with CrewAI

from crewai import Task
from hdw_tools.tools import crewai_linkedin

find_user_data = Task(
    description=(
        "Analyze {user_request}. Define provided data and tasks. Create plan to use existing tools to find information "
        "in requred sources based on provided information and tasks. And execute this plan."
    ),
    expected_output="Provide results in markdown format.",
    tools=[
        crewai_linkedin.GetLinkedInCompany(),
        crewai_linkedin.GetLinkedInUser(),
        crewai_linkedin.GetLinkedInPost()
    ]
)

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hdw_tools-0.0.4.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hdw_tools-0.0.4-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file hdw_tools-0.0.4.tar.gz.

File metadata

  • Download URL: hdw_tools-0.0.4.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.0

File hashes

Hashes for hdw_tools-0.0.4.tar.gz
Algorithm Hash digest
SHA256 ba1c8d49014a0e72c9b355b848907e75b5abd95a68cb0f1433fe014f3a3dba50
MD5 20411b403624ca83c05dbf10e9246c7b
BLAKE2b-256 8afe99db53f01320d0a740fd7475d722afafa7c09c735bfce577be6936ec7a66

See more details on using hashes here.

File details

Details for the file hdw_tools-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: hdw_tools-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.0

File hashes

Hashes for hdw_tools-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c4c12cbab2e2348d9e955bb72911c84f6c6d1eae5b7a904014c2ca2672711dc2
MD5 fb42994b4560b8f66622add8a296737d
BLAKE2b-256 c079f86bc5f1b1731897fb17dda0254ab502460ee873a94778e8c01dfbe8f4ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page