repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | from typing import Optional |
| #2 | |
| #3 | from database import Base |
| #4 | from pydantic import BaseModel, Field |
| #5 | from sqlalchemy import Column, Integer, String |
| #6 | |
| #7 | |
| #8 | class QueryApp(BaseModel): |
| #9 | query: str = Field("", description="The query that you want to ask the App.") |
| #10 | |
| #11 | model_config = { |
| #12 | "json_schema_extra": { |
| #13 | "example": { |
| #14 | "query": "Who is Elon Musk?", |
| #15 | } |
| #16 | } |
| #17 | } |
| #18 | |
| #19 | |
| #20 | class SourceApp(BaseModel): |
| #21 | source: str = Field("", description="The source that you want to add to the App.") |
| #22 | data_type: Optional[str] = Field("", description="The type of data to add, remove it for autosense.") |
| #23 | |
| #24 | model_config = {"json_schema_extra": {"example": {"source": "https://en.wikipedia.org/wiki/Elon_Musk"}}} |
| #25 | |
| #26 | |
| #27 | class DeployAppRequest(BaseModel): |
| #28 | api_key: str = Field("", description="The Embedchain API key for App deployments.") |
| #29 | |
| #30 | model_config = {"json_schema_extra": {"example": {"api_key": "ec-xxx"}}} |
| #31 | |
| #32 | |
| #33 | class MessageApp(BaseModel): |
| #34 | message: str = Field("", description="The message that you want to send to the App.") |
| #35 | |
| #36 | |
| #37 | class DefaultResponse(BaseModel): |
| #38 | response: str |
| #39 | |
| #40 | |
| #41 | class AppModel(Base): |
| #42 | __tablename__ = "apps" |
| #43 | |
| #44 | id = Column(Integer, primary_key=True, index=True) |
| #45 | app_id = Column(String, unique=True, index=True) |
| #46 | config = Column(String, unique=True, index=True) |
| #47 |