mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-12 05:54:38 +00:00
Add toolchain from agentic system here
This commit is contained in:
parent
f6b2b2fb39
commit
95781ec85d
71 changed files with 11899 additions and 0 deletions
25
toolchain/common/deployment_types.py
Normal file
25
toolchain/common/deployment_types.py
Normal 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
|
7
toolchain/common/training_types.py
Normal file
7
toolchain/common/training_types.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
from models.llama3.datatypes import URL
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class Checkpoint(BaseModel):
|
||||
iters: int
|
||||
path: URL
|
Loading…
Add table
Add a link
Reference in a new issue