Retrieves a paginated list of all assistant tools for a specific assistant using the Rapida API.
Parameters
Configuration for the client connection.
request
GetAllAssistantToolRequest
required
The unique identifier of the assistant whose tools to retrieve.
Pagination configuration for the results.
Page number to retrieve (0-indexed).
Number of items per page.
Array of search criteria for filtering results.
The field key to filter on.
Logic operator for the criteria (“should” | “must”).
Usage
from rapida import (
ConnectionConfig,
GetAssistantToolRequest,
get_assistant_tool,
)
from pprint import pprint
connection_config = ConnectionConfig.default_connection_config(
ConnectionConfig.with_sdk("{rapida-api-key}")
)
response = get_all_assistant_tool(
client_cfg=connection_config,
request=GetAllAssistantToolRequest(
assistantId="{assistant_id}",
paginate=Paginate(page=0, pageSize=20),
# criterias=[Criteria(key="KEY", value="VALUE", logic="should")],
),
)
pprint(response)
Response
Numeric status code for the operation.
Indicates whether the operation was successful.
Array of assistant tools.
Unique identifier for the assistant tool.
Identifier of the assistant that owns this tool.
Name of the assistant tool.
Description of the tool’s functionality.
Tool fields configuration as a structured object.
Method used for tool execution.
Array of execution configuration options.
Current status of the tool.
Timestamp when the tool was created.
Timestamp when the tool was last updated.
Pagination information for the results.
Error information, if applicable.
Human-readable error message.