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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for hyperpocket_llamaindex-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f62484236781620f4964e3d95dfbb4fb0b0ada3cd69ec5e5e05fcbaba589536f
MD5 1592d308536913834a3600a01ef1d17e
BLAKE2b-256 170fa8e83e2e95473a706875733c49be158e544c3586359005dd60330966610b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hyperpocket_llamaindex-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2aaee0fc6814ab5e10c438945e55b47d5d83c49016051e39ba574b8846983314
MD5 7df0f052a4e382c0a8d77ffc937bf16c
BLAKE2b-256 f74e187c3919fec5363756244079fb7c21e121f9f52bef29b83e2b111d561871

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