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_URL: The base URL for the Horizon Data Wave API. Set it to https://api.horizondatawave.ai/api.

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.2.tar.gz (10.1 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.2-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hdw_tools-0.0.2.tar.gz
Algorithm Hash digest
SHA256 36e4158a4846000516dbc81560a44dce143b5b2d1cc716631fc17255304a2dd4
MD5 5ca9e3943d08069c2421cfe5f39edc8f
BLAKE2b-256 1c5ff2c29f2194070395ea662d9bd96eca2551f79c0c545597c8118357f33934

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for hdw_tools-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f9fc325f28534c36a177ae491fb052923c2a9363b21275c373d5ca398ef1da7e
MD5 05c4a4f0204bfe3491a2536786cea01c
BLAKE2b-256 22b6e9989b9ef62fae51cecdfc4b1718bf3c5c33f5f4df3c5c6e8e10eb929e45

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