Skip to main content

Horizon Data Wave Tools

Project description

🔎 Horizon Data Wave Tools

Python PyPI License

Horizon Data Wave Tools is a library designed for seamless integration with llamaindex and crewai.

This library provides robust tools and endpoints to fetch data directly from LinkedIn via the HorizonDataWave data provider. With hdw_tools, you can simplify and automate the process of integrating LinkedIn data queries into projects that utilize llamaindex or 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.5.tar.gz (12.9 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.5-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hdw_tools-0.0.5.tar.gz
  • Upload date:
  • Size: 12.9 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.5.tar.gz
Algorithm Hash digest
SHA256 7f62c4405e1458f682d7deb8f743f2e90270eed22a892636f224c64d9af8dffc
MD5 9535c7fc141debe9efbd89a4dd9453b7
BLAKE2b-256 5755850a3365fcaa5e5877034d7507e823c15d9dec2c5d20e374a1e6b70769f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hdw_tools-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 12.8 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 67d603afc4cbe234df0e038b9460ebe7f85194dfb0e5a648d7c9494332a83167
MD5 0ba7a1ac23532836e96fdc483dcf276f
BLAKE2b-256 3ec1deda208a08d4ccc51f5d762d2b4c24cd895ecc6e47bb5f4e14d986bb61d9

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