Skip to content

loongsuite-python-agent 0.3.0

Choose a tag to compare

@Cirilla-zmh Cirilla-zmh released this 27 Mar 02:43
· 92 commits to main since this release
257b7f1

loongsuite-python-agent 0.3.0

Installation

pip install loongsuite-distro==0.3.0
loongsuite-bootstrap -a install --version 0.3.0

Package Versions

  • loongsuite-* packages: 0.3.0
  • opentelemetry-* packages: 0.61b0

PyPI packages

The following distributions are built and uploaded to PyPI for this release:

  • loongsuite-util-genai
  • loongsuite-distro
  • loongsuite-site-bootstrap
  • loongsuite-instrumentation-agentscope
  • loongsuite-instrumentation-claude-agent-sdk
  • loongsuite-instrumentation-crewai
  • loongsuite-instrumentation-dashscope
  • loongsuite-instrumentation-google-adk
  • loongsuite-instrumentation-langchain
  • loongsuite-instrumentation-langgraph
  • loongsuite-instrumentation-litellm
  • loongsuite-instrumentation-mem0

loongsuite

Added

  • Release tooling: build and publish instrumentation-loongsuite/* as separate PyPI wheels (with loongsuite_pypi_manifest.py defining which distributions are uploaded; some remain tar-only until ready), and add a PyPI packages section to aggregated release notes (#155)
  • loongsuite-site-bootstrap: initialize .pth-based OTel auto-instrumentation package (#156)
  • Top-level docs: add Chinese README (README-zh.md) translated from README.md. (#159)

Changed

  • instrumentation-loongsuite/*, loongsuite-distro, and util/opentelemetry-util-genai: pyproject.toml metadata and dependencies for standalone PyPI installs (#155)
  • loongsuite-site-bootstrap, loongsuite-distro docs: update README.md. (#159)

loongsuite-util-genai

Breaking Change

  • Remove package opentelemetry.util.genai._extended_common. EntryInvocation and ReactStepInvocation now live in extended_types; _apply_entry_finish_attributes and _apply_react_step_finish_attributes live in extended_span_utils. (#158)
  • Rename packages opentelemetry.util.genai._extended_memoryextended_memory and opentelemetry.util.genai._extended_semconvextended_semconv (public module paths). (#158)

Fixed

  • Add bypass logic around instrumentation-specific initialization so opentelemetry-util-genai can work correctly as a standalone SDK without depending on instrumentation package bootstrap flow. (#159)

loongsuite-instrumentation-agentscope

Changed

  • Adapt imports to opentelemetry-util-genai module layout change (#158)

Fixed

  • Avoid duplicate LLM / Agent spans when multiple ChatModelBase or
    AgentBase subclasses stack (e.g. proxy layers that each implement __call__
    and forward inward), by tracking per-task __call__ depth with
    contextvars and only instrumenting the outermost frame (#153)
  • Avoid duplicate react step spans when ReAct hook wrappers nest (e.g.
    subclasses or mixins that override _reasoning / _acting and call
    super()), by only opening steps and updating tool-act counts on the
    outermost wrapper (#153)

Changed

  • Update README integration flow to align with the root recommended LoongSuite pattern using Option C (pip install loongsuite-instrumentation-agentscope) and loongsuite-instrument. (#159)

Added

  • Add ReAct step span instrumentation for ReAct agents (#140)
    • Each ReAct iteration is wrapped in a react step span with gen_ai.react.round and gen_ai.react.finish_reason attributes
    • Uses AgentScope's instance-level hook system for robust, non-invasive instrumentation

loongsuite-instrumentation-agno

Changed

  • Update README integration flow to align with the root recommended LoongSuite pattern using Option A (loongsuite-bootstrap -a install --latest) for this package not yet on PyPI. (#159)

loongsuite-instrumentation-claude-agent-sdk

Changed

  • Adapt imports to opentelemetry-util-genai module layout change (#158)

loongsuite-instrumentation-crewai

Changed

  • Adapt imports to opentelemetry-util-genai module layout change (#158)
  • Update README integration flow to align with the root recommended LoongSuite pattern using Option C (pip install loongsuite-instrumentation-crewai) and loongsuite-instrument. (#159)

Added

  • Initialize the instrumentation for CrewAI (#87)

loongsuite-instrumentation-dashscope

Changed

  • Adapt imports to opentelemetry-util-genai module layout change (#158)

loongsuite-instrumentation-dify

Changed

  • Update README integration flow to align with the root recommended LoongSuite pattern using Option A (loongsuite-bootstrap -a install --latest) for this package not yet on PyPI. (#159)

loongsuite-instrumentation-google-adk

Changed

  • Update README integration flow to align with the root recommended LoongSuite pattern using Option C (pip install loongsuite-instrumentation-google-adk) and loongsuite-instrument. (#159)

loongsuite-instrumentation-langchain

Added

  • Rerank / document-compressor span support (#149)

Changed

  • Adapt imports to opentelemetry-util-genai module layout change (#158)
  • Set run_inline = True on the tracer so LangChain callbacks run inline for correct OpenTelemetry context propagation (#148)
  • Improved token usage extraction to support multiple LangChain/LLM provider formats (#148)
  • Update README integration flow to align with the root recommended LoongSuite pattern using Option C (pip install loongsuite-instrumentation-langchain) and loongsuite-instrument. (#159)

loongsuite-instrumentation-langgraph

Changed

  • Update README integration flow to align with the root recommended LoongSuite pattern using Option C (pip install loongsuite-instrumentation-langgraph) and loongsuite-instrument. (#159)

loongsuite-instrumentation-mcp

Changed

  • Update README integration flow to align with the root recommended LoongSuite pattern using Option A (loongsuite-bootstrap -a install --latest) for this package not yet on PyPI. (#159)

loongsuite-instrumentation-mem0

Changed

  • Adapt imports to opentelemetry-util-genai module layout change (#158)
  • Update README integration flow to align with the root recommended LoongSuite pattern using Option C (pip install loongsuite-instrumentation-mem0) and loongsuite-instrument. (#159)