mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-02 20:03:21 +02:00
add copilot app
This commit is contained in:
parent
33ac1cca70
commit
24c4f6e552
6 changed files with 876 additions and 0 deletions
18
apps/copilot/lib.py
Normal file
18
apps/copilot/lib.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
from pydantic import BaseModel
|
||||
from typing import Literal, List, Any
|
||||
|
||||
class AgentContext(BaseModel):
|
||||
type: Literal['agent']
|
||||
agentName: str
|
||||
|
||||
class PromptContext(BaseModel):
|
||||
type: Literal['prompt']
|
||||
promptName: str
|
||||
|
||||
class ToolContext(BaseModel):
|
||||
type: Literal['tool']
|
||||
toolName: str
|
||||
|
||||
class ChatContext(BaseModel):
|
||||
type: Literal['chat']
|
||||
messages: List[Any]
|
||||
Loading…
Add table
Add a link
Reference in a new issue