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.3.tar.gz (11.8 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.3-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hdw_tools-0.0.3.tar.gz
  • Upload date:
  • Size: 11.8 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.3.tar.gz
Algorithm Hash digest
SHA256 794d99008d4f09a688e65aec7e46eb45561f111262d38ee92ec6553c65e11bb3
MD5 db39be3260ba8f2a233cdfea62a2cba3
BLAKE2b-256 fdf5cd8bf5c8d61afff4205c23aa4fdf0a5a6de10f2a0c8eada91d142297ec2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hdw_tools-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 11.9 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bae4587216e4bbf0f3b931e96649b06772d1d4137320908af83c5cced338ab53
MD5 3662f28d29552bd8edd268646ddf8c8e
BLAKE2b-256 c2798ca405e5cf53189116239f9f2e2ced08fcd85e6e1250f096ee0000b2c7a8

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