
Research
Security News
Malicious npm Package Wipes Codebases with Remote Trigger
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
llama-index-tools-requests
Advanced tools
This tool provides the agent the ability to make HTTP requests. It can be combined with the OpenAPIToolSpec to interface with an OpenAPI server.
For security reasons, you must specify the hostname for the headers that you wish to provide. See here for an example
This tool has more extensive example usage documented in a Jupyter notebook here
Here's an example usage of the RequestsToolSpec.
from llama_index.tools.requests import RequestsToolSpec
from llama_index.agent.openai import OpenAIAgent
domain_headers = {
"api.openai.com": {
"Authorization": "Bearer sk-your-key",
"Content-Type": "application/json",
}
}
tool_spec = RequestsToolSpec(domain_headers=domain_headers)
agent = OpenAIAgent.from_tools(tool_spec.to_tool_list())
agent.chat("")
get_request
: Performs a get request against the URL
post_request
: Performs a post request against the URL
patch_request
: Performs a patch request against the URL
This loader is designed to be used as a way to load data as a Tool in a Agent.
FAQs
llama-index tools requests integration
We found that llama-index-tools-requests demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.
Security News
New CNA status enables OpenJS Foundation to assign CVEs for security vulnerabilities in projects like ESLint, Fastify, Electron, and others, while leaving disclosure responsibility with individual maintainers.