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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for hyperpocket_llamaindex-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ef181b482856998603708c3a2a5dfcf3d1d62ab30ea618b45e274a492baa5ebc
MD5 4ff75359881bef7c06cdef093be4138f
BLAKE2b-256 62782d6c0e48148a58ee67c7907022c1cc246b788ea55d4a60078c787b70c72f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hyperpocket_llamaindex-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9466ca68e9486641d64183b4621c217c7137263f25e74a56046bf02b6bff2309
MD5 c47e418228198fdeded166145d1c9f73
BLAKE2b-256 372668fec8683debedd7fab22a4893def2b20d0c3bc424acb0af00f570e4a648

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