File size: 1,885 Bytes
318db6e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
from llama_index.core.workflow import (
Event
)
from typing import Optional
class QueryEvent(Event):
"""Query event."""
query: str
tag: str
class VideoSearch(Event):
"""Video search event."""
query: str
class ImageSearch(Event):
"""Image search event."""
query: str
class GeneralSearch(Event):
"""General search event."""
query: str
tag: str
ads: Optional[str] = None
class TableRetrieveEvent(Event):
"""Result of retriever."""
table_context_str: str
query: str
class Text2SQLEvent(Event):
"""Text2SQL event."""
sql: str
query: str
class RetrieveContextEvent(Event):
"""Additional context."""
context_str: str
class FullContextEvent(Event):
"""Additional context."""
context_str: str
class CasualChatEvent(Event):
"""Casual chat event."""
query: str
class SearchEvent(Event):
"""General question event."""
query: str
class VideoResourceEvent(SearchEvent):
"""General question event."""
query: str
class ImageResourceEvent(SearchEvent):
"""General question event."""
query: str
class GeneralSearchEvent(SearchEvent):
"""General question event."""
query: str
tag: str
class MilvusDBEvent(Event):
"""MilvusDB event."""
query: str
class MilvusDBSearchEvent(Event):
"""MilvusDB search event."""
query: str
class SafeStartEvent(Event):
"""Safe start event."""
query: str
class RefuseEvent(Event):
"""Refuse event."""
lang: str
query: Optional[str] = None
adult: Optional[bool] = None
class StatusEvent(Event):
"""Status event."""
status: str
class TokenEvent(Event):
"""Token event."""
token: str
class ControlEvent(Event):
"""Control event."""
toy_id: str
query: str
user_id: str
content: str |