Skip to content

Event types

BaseEvent #

Bases: BaseModel

Source code in llama_index/core/instrumentation/events/base.py
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class BaseEvent(BaseModel):
    timestamp: datetime = Field(default_factory=lambda: datetime.now())
    id_: str = Field(default_factory=lambda: uuid4())
    span_id: str = Field(default_factory=str)

    @classmethod
    def class_name(cls):
        """返回类名。"""
        return "BaseEvent"

    class Config:
        arbitrary_types_allowed = True
        copy_on_model_validation = "deep"

    def dict(self, **kwargs: Any) -> Dict[str, Any]:
        data = super().dict(**kwargs)
        data["class_name"] = self.class_name()
        return data

class_name classmethod #

class_name()

返回类名。

Source code in llama_index/core/instrumentation/events/base.py
12
13
14
15
@classmethod
def class_name(cls):
    """返回类名。"""
    return "BaseEvent"

AgentChatWithStepEndEvent #

Bases: BaseEvent

AgentChatWithStepEndEvent.

Parameters:

Name Type Description Default
response Optional[AGENT_CHAT_RESPONSE_TYPE]

代理人聊天响应。

required
Source code in llama_index/core/instrumentation/events/agent.py
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
class AgentChatWithStepEndEvent(BaseEvent):
    """AgentChatWithStepEndEvent.

    Args:
        response (Optional[AGENT_CHAT_RESPONSE_TYPE]): 代理人聊天响应。"""

    response: Optional[AGENT_CHAT_RESPONSE_TYPE]

    @root_validator(pre=True)
    def validate_response(cls: Any, values: Any) -> Any:
        """验证响应。"""
        response = values.get("response")
        if response is None:
            pass
        elif not isinstance(response, AgentChatResponse) and not isinstance(
            response, StreamingAgentChatResponse
        ):
            raise ValueError(
                "response must be of type AgentChatResponse or StreamingAgentChatResponse"
            )

        return values

    @validator("response", pre=True)
    def validate_response_type(cls: Any, response: Any) -> Any:
        """验证响应类型。"""
        if response is None:
            return response
        if not isinstance(response, AgentChatResponse) and not isinstance(
            response, StreamingAgentChatResponse
        ):
            raise ValueError(
                "response must be of type AgentChatResponse or StreamingAgentChatResponse"
            )
        return response

    @classmethod
    def class_name(cls):
        """类名。"""
        return "AgentChatWithStepEndEvent"

validate_response #

validate_response(values: Any) -> Any

验证响应。

Source code in llama_index/core/instrumentation/events/agent.py
68
69
70
71
72
73
74
75
76
77
78
79
80
81
@root_validator(pre=True)
def validate_response(cls: Any, values: Any) -> Any:
    """验证响应。"""
    response = values.get("response")
    if response is None:
        pass
    elif not isinstance(response, AgentChatResponse) and not isinstance(
        response, StreamingAgentChatResponse
    ):
        raise ValueError(
            "response must be of type AgentChatResponse or StreamingAgentChatResponse"
        )

    return values

validate_response_type #

validate_response_type(response: Any) -> Any

验证响应类型。

Source code in llama_index/core/instrumentation/events/agent.py
83
84
85
86
87
88
89
90
91
92
93
94
@validator("response", pre=True)
def validate_response_type(cls: Any, response: Any) -> Any:
    """验证响应类型。"""
    if response is None:
        return response
    if not isinstance(response, AgentChatResponse) and not isinstance(
        response, StreamingAgentChatResponse
    ):
        raise ValueError(
            "response must be of type AgentChatResponse or StreamingAgentChatResponse"
        )
    return response

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/agent.py
96
97
98
99
@classmethod
def class_name(cls):
    """类名。"""
    return "AgentChatWithStepEndEvent"

AgentChatWithStepStartEvent #

Bases: BaseEvent

AgentChatWithStepStartEvent.

Parameters:

Name Type Description Default
user_msg str

用户输入消息。

required
Source code in llama_index/core/instrumentation/events/agent.py
46
47
48
49
50
51
52
53
54
55
56
57
class AgentChatWithStepStartEvent(BaseEvent):
    """AgentChatWithStepStartEvent.

    Args:
        user_msg (str): 用户输入消息。"""

    user_msg: str

    @classmethod
    def class_name(cls):
        """类名。"""
        return "AgentChatWithStepStartEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/agent.py
54
55
56
57
@classmethod
def class_name(cls):
    """类名。"""
    return "AgentChatWithStepStartEvent"

AgentRunStepEndEvent #

Bases: BaseEvent

AgentRunStepEndEvent.

Parameters:

Name Type Description Default
step_output TaskStepOutput

任务步骤输出。

required
Source code in llama_index/core/instrumentation/events/agent.py
32
33
34
35
36
37
38
39
40
41
42
43
class AgentRunStepEndEvent(BaseEvent):
    """AgentRunStepEndEvent.

    Args:
        step_output (TaskStepOutput): 任务步骤输出。"""

    step_output: TaskStepOutput

    @classmethod
    def class_name(cls):
        """类名。"""
        return "AgentRunStepEndEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/agent.py
40
41
42
43
@classmethod
def class_name(cls):
    """类名。"""
    return "AgentRunStepEndEvent"

AgentRunStepStartEvent #

Bases: BaseEvent

AgentRunStepStartEvent.

Parameters:

Name Type Description Default
task_id str

任务ID。

required
step Optional[TaskStep]

任务步骤。

required
input Optional[str]

可选输入。

required
Source code in llama_index/core/instrumentation/events/agent.py
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class AgentRunStepStartEvent(BaseEvent):
    """AgentRunStepStartEvent.

    Args:
        task_id (str): 任务ID。
        step (Optional[TaskStep]): 任务步骤。
        input (Optional[str]): 可选输入。"""

    task_id: str
    step: Optional[TaskStep]
    input: Optional[str]

    @classmethod
    def class_name(cls):
        """类名。"""
        return "AgentRunStepStartEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/agent.py
26
27
28
29
@classmethod
def class_name(cls):
    """类名。"""
    return "AgentRunStepStartEvent"

AgentToolCallEvent #

Bases: BaseEvent

AgentToolCallEvent.

Parameters:

Name Type Description Default
arguments str

参数。

required
tool ToolMetadata

工具元数据。

required
Source code in llama_index/core/instrumentation/events/agent.py
102
103
104
105
106
107
108
109
110
111
112
113
114
115
class AgentToolCallEvent(BaseEvent):
    """AgentToolCallEvent.

    Args:
        arguments (str): 参数。
        tool (ToolMetadata): 工具元数据。"""

    arguments: str
    tool: ToolMetadata

    @classmethod
    def class_name(cls):
        """类名。"""
        return "AgentToolCallEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/agent.py
112
113
114
115
@classmethod
def class_name(cls):
    """类名。"""
    return "AgentToolCallEvent"

StreamChatDeltaReceivedEvent #

Bases: BaseEvent

StreamChatDeltaReceivedEvent.

Parameters:

Name Type Description Default
delta str

从流聊天中接收到的Delta。

required
Source code in llama_index/core/instrumentation/events/chat_engine.py
42
43
44
45
46
47
48
49
50
51
52
53
class StreamChatDeltaReceivedEvent(BaseEvent):
    """StreamChatDeltaReceivedEvent.

    Args:
        delta (str): 从流聊天中接收到的Delta。"""

    delta: str

    @classmethod
    def class_name(cls):
        """类名。"""
        return "StreamChatDeltaReceivedEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/chat_engine.py
50
51
52
53
@classmethod
def class_name(cls):
    """类名。"""
    return "StreamChatDeltaReceivedEvent"

StreamChatEndEvent #

Bases: BaseEvent

StreamChatEndEvent。

在写入流聊天引擎队列结束时触发。

Source code in llama_index/core/instrumentation/events/chat_engine.py
15
16
17
18
19
20
21
22
23
class StreamChatEndEvent(BaseEvent):
    """StreamChatEndEvent。

    在写入流聊天引擎队列结束时触发。"""

    @classmethod
    def class_name(cls):
        """类名。"""
        return "StreamChatEndEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/chat_engine.py
20
21
22
23
@classmethod
def class_name(cls):
    """类名。"""
    return "StreamChatEndEvent"

StreamChatErrorEvent #

Bases: BaseEvent

StreamChatErrorEvent。

在流聊天引擎操作期间引发异常时触发。

Parameters:

Name Type Description Default
exception Exception

在流聊天操作期间引发的异常。

required
Source code in llama_index/core/instrumentation/events/chat_engine.py
26
27
28
29
30
31
32
33
34
35
36
37
38
39
class StreamChatErrorEvent(BaseEvent):
    """StreamChatErrorEvent。

    在流聊天引擎操作期间引发异常时触发。

    Args:
        exception (Exception): 在流聊天操作期间引发的异常。"""

    exception: Exception

    @classmethod
    def class_name(cls):
        """类名。"""
        return "StreamChatErrorEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/chat_engine.py
36
37
38
39
@classmethod
def class_name(cls):
    """类名。"""
    return "StreamChatErrorEvent"

StreamChatStartEvent #

Bases: BaseEvent

StreamChatStartEvent。

在开始写入流聊天引擎队列时触发。

Source code in llama_index/core/instrumentation/events/chat_engine.py
 4
 5
 6
 7
 8
 9
10
11
12
class StreamChatStartEvent(BaseEvent):
    """StreamChatStartEvent。

    在开始写入流聊天引擎队列时触发。"""

    @classmethod
    def class_name(cls):
        """类名。"""
        return "StreamChatStartEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/chat_engine.py
 9
10
11
12
@classmethod
def class_name(cls):
    """类名。"""
    return "StreamChatStartEvent"

EmbeddingEndEvent #

Bases: BaseEvent

EmbeddingEndEvent.

Parameters:

Name Type Description Default
chunks List[str]

切块的列表。

required
embeddings List[List[float]]

嵌入的列表。

required
Source code in llama_index/core/instrumentation/events/embedding.py
20
21
22
23
24
25
26
27
28
29
30
31
32
33
class EmbeddingEndEvent(BaseEvent):
    """EmbeddingEndEvent.

    Args:
        chunks (List[str]): 切块的列表。
        embeddings (List[List[float]]): 嵌入的列表。"""

    chunks: List[str]
    embeddings: List[List[float]]

    @classmethod
    def class_name(cls):
        """类名。"""
        return "EmbeddingEndEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/embedding.py
30
31
32
33
@classmethod
def class_name(cls):
    """类名。"""
    return "EmbeddingEndEvent"

EmbeddingStartEvent #

Bases: BaseEvent

EmbeddingStartEvent.

Parameters:

Name Type Description Default
model_dict dict

包含嵌入模型详情的模型字典。

required
Source code in llama_index/core/instrumentation/events/embedding.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
class EmbeddingStartEvent(BaseEvent):
    """EmbeddingStartEvent.

    Args:
        model_dict (dict): 包含嵌入模型详情的模型字典。"""

    model_dict: dict

    @classmethod
    def class_name(cls):
        """类名。"""
        return "EmbeddingStartEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/embedding.py
14
15
16
17
@classmethod
def class_name(cls):
    """类名。"""
    return "EmbeddingStartEvent"

LLMChatEndEvent #

Bases: BaseEvent

LLMChatEndEvent.

Parameters:

Name Type Description Default
messages List[ChatMessage]

聊天消息列表。

required
response Optional[ChatResponse]

最后的聊天回复。

required
Source code in llama_index/core/instrumentation/events/llm.py
144
145
146
147
148
149
150
151
152
153
154
155
156
157
class LLMChatEndEvent(BaseEvent):
    """LLMChatEndEvent.

    Args:
        messages (List[ChatMessage]): 聊天消息列表。
        response (Optional[ChatResponse]): 最后的聊天回复。"""

    messages: List[ChatMessage]
    response: Optional[ChatResponse]

    @classmethod
    def class_name(cls):
        """类名。"""
        return "LLMChatEndEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/llm.py
154
155
156
157
@classmethod
def class_name(cls):
    """类名。"""
    return "LLMChatEndEvent"

LLMChatStartEvent #

Bases: BaseEvent

LLMChatStartEvent.

Parameters:

Name Type Description Default
messages List[ChatMessage]

聊天消息列表。

required
additional_kwargs dict

附加的关键字参数。

required
model_dict dict

模型字典。

required
Source code in llama_index/core/instrumentation/events/llm.py
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
class LLMChatStartEvent(BaseEvent):
    """LLMChatStartEvent.

    Args:
        messages (List[ChatMessage]): 聊天消息列表。
        additional_kwargs (dict): 附加的关键字参数。
        model_dict (dict): 模型字典。"""

    messages: List[ChatMessage]
    additional_kwargs: dict
    model_dict: dict

    @classmethod
    def class_name(cls):
        """类名。"""
        return "LLMChatStartEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/llm.py
122
123
124
125
@classmethod
def class_name(cls):
    """类名。"""
    return "LLMChatStartEvent"

LLMCompletionEndEvent #

Bases: BaseEvent

LLMCompletionEndEvent.

Parameters:

Name Type Description Default
prompt str

待完成的提示。

required
response CompletionResponse

完成响应。

required
Source code in llama_index/core/instrumentation/events/llm.py
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
class LLMCompletionEndEvent(BaseEvent):
    """LLMCompletionEndEvent.

    Args:
        prompt (str): 待完成的提示。
        response (CompletionResponse): 完成响应。"""

    prompt: str
    response: CompletionResponse

    @classmethod
    def class_name(cls):
        """类名。"""
        return "LLMCompletionEndEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/llm.py
104
105
106
107
@classmethod
def class_name(cls):
    """类名。"""
    return "LLMCompletionEndEvent"

LLMCompletionStartEvent #

Bases: BaseEvent

LLMCompletionStartEvent.

Parameters:

Name Type Description Default
prompt str

待完成的提示。

required
additional_kwargs dict

附加的关键字参数。

required
model_dict dict

模型字典。

required
Source code in llama_index/core/instrumentation/events/llm.py
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
class LLMCompletionStartEvent(BaseEvent):
    """LLMCompletionStartEvent.

    Args:
        prompt (str): 待完成的提示。
        additional_kwargs (dict): 附加的关键字参数。
        model_dict (dict): 模型字典。"""

    prompt: str
    additional_kwargs: dict
    model_dict: dict

    @classmethod
    def class_name(cls):
        """类名。"""
        return "LLMCompletionStartEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/llm.py
88
89
90
91
@classmethod
def class_name(cls):
    """类名。"""
    return "LLMCompletionStartEvent"

LLMPredictEndEvent #

Bases: BaseEvent

LLMPredictEndEvent.

llm.predict()调用的结果。

Parameters:

Name Type Description Default
output str

输出。

required
Source code in llama_index/core/instrumentation/events/llm.py
28
29
30
31
32
33
34
35
36
37
38
39
40
41
class LLMPredictEndEvent(BaseEvent):
    """LLMPredictEndEvent.

    llm.predict()调用的结果。

    Args:
        output (str): 输出。"""

    output: str

    @classmethod
    def class_name(cls):
        """类名。"""
        return "LLMPredictEndEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/llm.py
38
39
40
41
@classmethod
def class_name(cls):
    """类名。"""
    return "LLMPredictEndEvent"

LLMPredictStartEvent #

Bases: BaseEvent

LLMPredictStartEvent.

Parameters:

Name Type Description Default
template BasePromptTemplate

提示模板。

required
template_args Optional[dict]

提示模板参数。

required
Source code in llama_index/core/instrumentation/events/llm.py
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class LLMPredictStartEvent(BaseEvent):
    """LLMPredictStartEvent.

    Args:
        template (BasePromptTemplate): 提示模板。
        template_args (Optional[dict]): 提示模板参数。"""

    template: BasePromptTemplate
    template_args: Optional[dict]

    @classmethod
    def class_name(cls):
        """类名。"""
        return "LLMPredictStartEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/llm.py
22
23
24
25
@classmethod
def class_name(cls):
    """类名。"""
    return "LLMPredictStartEvent"

QueryEndEvent #

Bases: BaseEvent

QueryEndEvent.

Parameters:

Name Type Description Default
query QueryType

字符串形式的查询或查询包。

required
response RESPONSE_TYPE

响应。

required
Source code in llama_index/core/instrumentation/events/query.py
20
21
22
23
24
25
26
27
28
29
30
31
32
33
class QueryEndEvent(BaseEvent):
    """QueryEndEvent.

    Args:
        query (QueryType): 字符串形式的查询或查询包。
        response (RESPONSE_TYPE): 响应。"""

    query: QueryType
    response: RESPONSE_TYPE

    @classmethod
    def class_name(cls):
        """类名。"""
        return "QueryEndEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/query.py
30
31
32
33
@classmethod
def class_name(cls):
    """类名。"""
    return "QueryEndEvent"

QueryStartEvent #

Bases: BaseEvent

QueryStartEvent.

Parameters:

Name Type Description Default
query QueryType

查询作为字符串或查询包。

required
Source code in llama_index/core/instrumentation/events/query.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
class QueryStartEvent(BaseEvent):
    """QueryStartEvent.

    Args:
        query (QueryType): 查询作为字符串或查询包。"""

    query: QueryType

    @classmethod
    def class_name(cls):
        """类名。"""
        return "QueryStartEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/query.py
14
15
16
17
@classmethod
def class_name(cls):
    """类名。"""
    return "QueryStartEvent"

RetrievalEndEvent #

Bases: BaseEvent

RetrievalEndEvent.

Parameters:

Name Type Description Default
str_or_query_bundle QueryType

查询包。

required
nodes List[NodeWithScore]

带有分数的节点列表。

required
Source code in llama_index/core/instrumentation/events/retrieval.py
20
21
22
23
24
25
26
27
28
29
30
31
32
33
class RetrievalEndEvent(BaseEvent):
    """RetrievalEndEvent.

    Args:
        str_or_query_bundle (QueryType): 查询包。
        nodes (List[NodeWithScore]): 带有分数的节点列表。"""

    str_or_query_bundle: QueryType
    nodes: List[NodeWithScore]

    @classmethod
    def class_name(cls):
        """类名。"""
        return "RetrievalEndEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/retrieval.py
30
31
32
33
@classmethod
def class_name(cls):
    """类名。"""
    return "RetrievalEndEvent"

RetrievalStartEvent #

Bases: BaseEvent

RetrievalStartEvent.

Parameters:

Name Type Description Default
str_or_query_bundle QueryType

查询包。

required
Source code in llama_index/core/instrumentation/events/retrieval.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
class RetrievalStartEvent(BaseEvent):
    """RetrievalStartEvent.

    Args:
        str_or_query_bundle (QueryType): 查询包。"""

    str_or_query_bundle: QueryType

    @classmethod
    def class_name(cls):
        """类名。"""
        return "RetrievalStartEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/retrieval.py
14
15
16
17
@classmethod
def class_name(cls):
    """类名。"""
    return "RetrievalStartEvent"

GetResponseEndEvent #

Bases: BaseEvent

获取响应结束事件。

Parameters:

Name Type Description Default
query str

查询字符串。

required
response RESPONSE_TEXT_TYPE

响应。

required
Source code in llama_index/core/instrumentation/events/synthesis.py
55
56
57
58
59
60
61
62
63
64
65
66
67
class GetResponseEndEvent(BaseEvent):
    """获取响应结束事件。

    Args:
        query (str): 查询字符串。
        response (RESPONSE_TEXT_TYPE): 响应。"""

    response: RESPONSE_TEXT_TYPE

    @classmethod
    def class_name(cls):
        """类名。"""
        return "GetResponseEndEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/synthesis.py
64
65
66
67
@classmethod
def class_name(cls):
    """类名。"""
    return "GetResponseEndEvent"

GetResponseStartEvent #

Bases: BaseEvent

获取响应开始事件。

Parameters:

Name Type Description Default
query_str str

查询字符串。

required
text_chunks List[str]

文本块列表。

required
Source code in llama_index/core/instrumentation/events/synthesis.py
39
40
41
42
43
44
45
46
47
48
49
50
51
52
class GetResponseStartEvent(BaseEvent):
    """获取响应开始事件。

    Args:
        query_str (str): 查询字符串。
        text_chunks (List[str]): 文本块列表。"""

    query_str: str
    text_chunks: List[str]

    @classmethod
    def class_name(cls):
        """类名。"""
        return "GetResponseStartEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/synthesis.py
49
50
51
52
@classmethod
def class_name(cls):
    """类名。"""
    return "GetResponseStartEvent"

SynthesizeEndEvent #

Bases: BaseEvent

SynthesizeEndEvent.

Parameters:

Name Type Description Default
query QueryType

字符串形式的查询或查询包。

required
response RESPONSE_TYPE

响应。

required
Source code in llama_index/core/instrumentation/events/synthesis.py
23
24
25
26
27
28
29
30
31
32
33
34
35
36
class SynthesizeEndEvent(BaseEvent):
    """SynthesizeEndEvent.

    Args:
        query (QueryType): 字符串形式的查询或查询包。
        response (RESPONSE_TYPE): 响应。"""

    query: QueryType
    response: RESPONSE_TYPE

    @classmethod
    def class_name(cls):
        """类名。"""
        return "SynthesizeEndEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/synthesis.py
33
34
35
36
@classmethod
def class_name(cls):
    """类名。"""
    return "SynthesizeEndEvent"

SynthesizeStartEvent #

Bases: BaseEvent

SynthesizeStartEvent.

Parameters:

Name Type Description Default
query QueryType

字符串形式的查询或查询包。

required
Source code in llama_index/core/instrumentation/events/synthesis.py
 9
10
11
12
13
14
15
16
17
18
19
20
class SynthesizeStartEvent(BaseEvent):
    """SynthesizeStartEvent.

    Args:
        query (QueryType): 字符串形式的查询或查询包。"""

    query: QueryType

    @classmethod
    def class_name(cls):
        """类名。"""
        return "SynthesizeStartEvent"

class_name classmethod #

class_name()

类名。

Source code in llama_index/core/instrumentation/events/synthesis.py
17
18
19
20
@classmethod
def class_name(cls):
    """类名。"""
    return "SynthesizeStartEvent"