Add toolchain from agentic system here

This commit is contained in:
Ashwin Bharambe 2024-07-19 12:30:35 -07:00
parent f6b2b2fb39
commit 95781ec85d
71 changed files with 11899 additions and 0 deletions

View file

@ -0,0 +1,25 @@
from enum import Enum
from typing import Dict, Optional
from models.llama3.datatypes import URL
from pydantic import BaseModel
from strong_typing.schema import json_schema_type
@json_schema_type
class RestAPIMethod(Enum):
GET = "GET"
POST = "POST"
PUT = "PUT"
DELETE = "DELETE"
@json_schema_type
class RestAPIExecutionConfig(BaseModel):
url: URL
method: RestAPIMethod
params: Optional[Dict[str, str]] = None
headers: Optional[Dict[str, str]] = None
body: Optional[Dict[str, str]] = None

View file

@ -0,0 +1,7 @@
from models.llama3.datatypes import URL
from pydantic import BaseModel
class Checkpoint(BaseModel):
iters: int
path: URL