Skip to content

Lost custom event stream data in SpanAttributes #13

@Nevercomes

Description

@Nevercomes

目前 myscalekb-agent 的 langgraph 使用中,用到了两种不同的数据返回方式

  1. 由节点直接构造数据返回,既不是通过 llm 也不是通过 tool.
  2. 定义 custom_event 来返回数据.

上面提到的两种 response 在 myscale-telemetry 目前会丢失记录。

节点直接返回数据:
https://github.com/myscale/myscale-agent/blob/64aae27936897de53eb2c7e80c49f89b155250ab/myscale_agent/agents/slide_deck_ai/agent.py#L147

custom event 返回数据:
https://github.com/myscale/myscale-agent/blob/64aae27936897de53eb2c7e80c49f89b155250ab/myscale_agent/agents/slide_deck_ai/agent.py#L371

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions