Skip to content

API Reference parrot_tools.interfaces.gigsmart.config

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.interfaces.gigsmart.config

View source

GigSmart configuration — credentials and API settings.

Loads OAuth credentials and endpoint URLs from environment variables. The GigSmartConfig Pydantic model is the single source of truth for all client configuration; other modules receive it by dependency injection.

Class GigSmartConfig

Configuration for the GigSmart API client.

All fields can be provided explicitly (useful for testing) or loaded from environment variables via :meth:from_env.

Fields:

Field Type Default Description
client_id str OAuth 2.1 client identifier.
client_secret str OAuth 2.1 client secret.
environment str 'production' Target environment.
endpoint_url str _DEFAULT_ENDPOINT_URL GraphQL API endpoint URL.
token_url str _DEFAULT_TOKEN_URL OAuth token endpoint URL.
authorize_url str _DEFAULT_AUTHORIZE_URL OAuth authorisation endpoint URL.
request_timeout float 30.0 Per-request timeout in seconds.
max_concurrent_requests int 8 Maximum number of parallel HTTP requests.
log_pii bool False When True, PII may appear in logs.
refresh_token str | None None Pre-configured OAuth refresh token.

Method GigSmartConfig.from_env

Build a GigSmartConfig from environment variables.

Reads GIGSMART_CLIENT_ID and GIGSMART_CLIENT_SECRET (both required) plus optional overrides for all other fields.

from_env() -> 'GigSmartConfig'

Returns: 'GigSmartConfig' — A fully-populated GigSmartConfig instance.

Raises:

  • GigSmartError — If GIGSMART_CLIENT_ID or GIGSMART_CLIENT_SECRET is missing from the environment, or if GIGSMART_MAX_CONCURRENT_REQUESTS is set to less than 1.

Alias GigSmartError

Re-exported from parrot_tools.interfaces.gigsmart.exceptions.GigSmartError.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally