aixplain.v2.integration
Integration module for managing external service integrations.
ActionInputSpec Objects
@dataclass_json
@dataclass
class ActionInputSpec()
Backend input-parameter specification for an action (deserialization only).
ActionSpec Objects
@dataclass_json
@dataclass(repr=False)
class ActionSpec()
Backend action specification (deserialization only).
__repr__
def __repr__() -> str
Return a concise representation of the action spec.
ToolId Objects
@dataclass_json
@dataclass
class ToolId()
Result for tool operations.
IntegrationResult Objects
@dataclass_json
@dataclass
class IntegrationResult(Result)
Result for connection operations.
The backend returns the connection ID in data.id.
IntegrationSearchParams Objects
class IntegrationSearchParams(BaseSearchParams)
Parameters for listing integrations.
TriggerTypeSpec Objects
@dataclass_json
@dataclass
class TriggerTypeSpec()
Backend spec for an available external trigger type (deserialization only).
TriggerEventOption Objects
class TriggerEventOption()
A selectable external event option (e.g. gmail.triggers["NEW_EMAIL"]).
Carries the event slug and its config schema. When sourced from a
connected tool it also carries connection_id (the tool id), which is
required to activate the trigger. Pass it to aix.Trigger(event=...).
__init__
def __init__(slug: str,
name: Optional[str] = None,
description: Optional[str] = None,
config: Optional[Any] = None,
connection_id: Optional[str] = None) -> None
Initialize an event option.
configure
def configure(**values: Any) -> "TriggerEventOption"
Set config values passed to the trigger on activation.
__repr__
def __repr__() -> str
Return a concise representation.
TriggerTypes Objects
class TriggerTypes()
Browsable collection of TriggerEventOption for an integration/tool.
Supports integration.triggers["NEW_EMAIL"] (case-insensitive), iteration,
in, and len.
__init__
def __init__(specs: List[TriggerTypeSpec],
connection_id: Optional[str] = None) -> None
Initialize from backend specs and an optional connection id.
__getitem__
def __getitem__(key: str) -> TriggerEventOption
Return the TriggerEventOption for key (case-insensitive).
__contains__
def __contains__(key: object) -> bool
Return whether key matches an available trigger event.
__iter__
def __iter__()
Iterate over available trigger event slugs.
__len__
def __len__() -> int
Return the number of available trigger events.
__repr__
def __repr__() -> str
Return TriggerTypes(['SLUG', ...]).