mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-23 01:54:52 +02:00
[Haik]: ckpt, swapped the HaikFix folder to be parallel to the agents folder bc ima start the full replacement process i think
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# sub_types.py
|
||||
|
||||
from typing import Literal, Union, TypedDict
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
# --- Prompt content blocks (sent to SDK via to_prompt) ---
|
||||
|
||||
class TextPromptBlock(TypedDict):
|
||||
type: Literal["text"]
|
||||
text: str
|
||||
|
||||
class ImageSource(TypedDict):
|
||||
type: Literal["base64"]
|
||||
media_type: str
|
||||
data: str
|
||||
|
||||
class ImagePromptBlock(TypedDict):
|
||||
type: Literal["image"]
|
||||
source: "ImageSource"
|
||||
|
||||
|
||||
PromptBlock = Union[TextPromptBlock, ImagePromptBlock]
|
||||
|
||||
# --- Attachments (user message only) ---
|
||||
|
||||
class ContextPath(BaseModel):
|
||||
path: str
|
||||
type: Literal["file", "directory"]
|
||||
|
||||
class SkillMeta(BaseModel):
|
||||
id: str
|
||||
name: str
|
||||
Reference in New Issue
Block a user