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.2.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.2-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for hyperpocket_llamaindex-0.4.2.tar.gz
Algorithm Hash digest
SHA256 33ec0b02323326f173f8ba08be1e67f23f606726309dfb0ae3cf7056a35bade7
MD5 029544a524ac32744331e82006eeeed4
BLAKE2b-256 567affc240832c01e88320e5b3f5d4b99e7112abf3bd4f2fcd6a44c4bae6205d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hyperpocket_llamaindex-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 77534f5b2210b5b45f0dfb712e7e5902364f7201a80bfe9aaced91e0a235ae3d
MD5 8d6ce7674113ec9a6d480127872f2c10
BLAKE2b-256 402cfdc59f367062a4fc00b447b2e4bf055d3c8922c2ced38e6e910150fbaa3a

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