MirascopeLilypad

mirascope.tools.web._requests

Module _requests

Class RequestsConfig

Configuration for HTTP requests

Bases:

_ConfigurableToolConfig

Attributes

NameTypeDescription
timeoutint-

Class Requests

Tool for making HTTP requests with built-in requests library.

Bases:

ConfigurableTool

Attributes

NameTypeDescription
urlstr-
methodLiteral['GET', 'POST', 'PUT', 'DELETE']-
datadict | None-
headersdict | None-

Function call

Make an HTTP request to the given URL.

Parameters

NameTypeDescription
selfAny-

Returns

TypeDescription
strResponse text content if successful, error message if request fails