mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-29 07:19:59 +00:00
33 lines
634 B
Python
33 lines
634 B
Python
from typing import Any, List, Optional
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class Validation(BaseModel):
|
|
"""Connery Action parameter validation model."""
|
|
|
|
required: Optional[bool] = None
|
|
|
|
|
|
class Parameter(BaseModel):
|
|
"""Connery Action parameter model."""
|
|
|
|
key: str
|
|
title: str
|
|
description: Optional[str] = None
|
|
type: Any
|
|
validation: Optional[Validation] = None
|
|
|
|
|
|
class Action(BaseModel):
|
|
"""Connery Action model."""
|
|
|
|
id: str
|
|
key: str
|
|
title: str
|
|
description: Optional[str] = None
|
|
type: str
|
|
inputParameters: List[Parameter]
|
|
outputParameters: List[Parameter]
|
|
pluginId: str
|