Skip to main content

No project description provided

Project description

Anthropic extensions

Get Pocket Tools

import hyperpocket as pk
from pocket_llamaindex import PocketLlamaindex

# 
pocket = PocketLlamaindex(tools=[
    *pk.curated_tools.SLACK,  # SLACK = [slack_get_message, slack_post_message, ..]
    *pk.curated_tools.LINEAR,
    "https://github.com/my-org/some-awesome-tool"]
)

# get tools from pocket
tools = pocket.get_tools()

Examples

from llama_index.core.agent import FunctionCallingAgent
from llama_index.llms.openai import OpenAI

import hyperpocket as pk
from pocket_llamaindex import PocketLlamaindex

pocket = PocketLlamaindex(tools=[
    *pk.curated_tools.SLACK,  # SLACK = [slack_get_message, slack_post_message, ..]
    *pk.curated_tools.LINEAR,
    "https://github.com/my-org/some-awesome-tool"]
)

# get tools from pocket
tools = pocket.get_tools()

llm = OpenAI()
# pass tools get by pocket to an argument
agent = FunctionCallingAgent.from_tools(
    tools=tools, llm=llm, verbose=True
)

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

hyperpocket_llamaindex-0.2.1.tar.gz (124.2 kB view details)

Uploaded Source

Built Distribution

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

hyperpocket_llamaindex-0.2.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file hyperpocket_llamaindex-0.2.1.tar.gz.

File metadata

File hashes

Hashes for hyperpocket_llamaindex-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b0a947d00d50e5e04d81475ab8503f7d990f7e8a9aacf004b320ad7320ef88ee
MD5 7e0fbd69d7711fb8282c06dad7dd706f
BLAKE2b-256 19fc93c3749e8df57b85e8793692e236ab176435762addfe3ecca86150f83e7b

See more details on using hashes here.

File details

Details for the file hyperpocket_llamaindex-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hyperpocket_llamaindex-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 26165b709f3ce75bdc949684512ac1ed4e8c8a5531b328e55480b875b05879b4
MD5 10274e92e315776d7d4e65570c002b32
BLAKE2b-256 048bbdbd73c1972f5d560b7ccfa50407aac1e851604a29bea7aa3bd7ae705448

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