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.4.1.tar.gz (125.0 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.4.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for hyperpocket_llamaindex-0.4.1.tar.gz
Algorithm Hash digest
SHA256 24b719fe44ee9dac5b87000b2c429614d3236f2f9b284a299030481dc2d8b2e1
MD5 1fb85573a5c5d99d94c33018dfe2c7e4
BLAKE2b-256 d6666331d3bb5ad26a9d69c5dcdf95861f4b8a6ad27daa113fb17f104a0a1fea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hyperpocket_llamaindex-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0df7df94a041d209157695e93d55aa2f8e75e5c926e3319f388566db02e1f230
MD5 26053e560004fc5b491e2fa706b3bbf8
BLAKE2b-256 bc01ce7626e78003d8b3225bde57cad7fe127eec245cc601e735e4747e16838f

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