Skip to content

agentops tracer #424

@doraemonlove

Description

@doraemonlove

我想查看chartqa agent的rollout轨迹,于是运行nohup python train_chartqa_agent.py qwen --n-runners 2 > train.log 2>&1 &
同时在runner/legacy.py里的_to_rollout_object里增加了print语句。可是没有看到对应的输出
def _to_rollout_object(
self,
result: RolloutRawResultLegacy,
rollout_id: str,
) -> RolloutLegacy:
"""Standardizes the agent's return value into a RolloutLegacy object.

    Args:
        result: The output from the agent's rollout method.
        rollout_id: The unique identifier for the current task.

    Returns:
        A standardized `RolloutLegacy` object for reporting to the server.
    """
    trace: Any = None
    final_reward: Optional[float] = None
    triplets: Optional[List[Triplet]] = None
    trace_spans: Optional[List[ReadableSpan]] = None
    from agentlightning.emitter import emit_message
    print(f"result: {result}")

然后想去agentops的官网看看trace,请问我该怎么在example里连接上agentops呀。

总结一下问题:

  1. 我该怎么在chartqa的example里输出_to_rollout_object里的内容
  2. 怎么连接上agentops

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions