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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for hyperpocket_llamaindex-0.4.3.tar.gz
Algorithm Hash digest
SHA256 66820866c3b80422634843348dbe06e4a74af4d2643713bb8707cbb075e7d183
MD5 b3bc4b4a5ccf182f0e916d19f3f5461b
BLAKE2b-256 92646ac6945b9a98a1dd14ffb39f651990b15aeeda1061a6821dca103f44b1b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hyperpocket_llamaindex-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 48251af68f59d5a41d5e21a8b80007ac2e0c9f16ca10bd793cf1703a218ebc52
MD5 1072471440b44b75783dd0e92ce16bb7
BLAKE2b-256 e3ea3f2188b961b76df5e95fae825463eb54445abb0b661ad14edd2a0526395e

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