Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion src/rius/_semconv_generated.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Vendored from rius-semconv v1.9.2 out/python/_semconv_generated.py by
# Vendored from rius-semconv v1.10.0 out/python/_semconv_generated.py by
# scripts/sync-semconv.sh. Do not edit: change the registry in rius-semconv.
"""Rius semantic conventions: the constants and tables, generated.

Expand Down Expand Up @@ -354,6 +354,23 @@
# ai.toolCall.result. Content, listed in CONTENT_ATTRIBUTES.
GEN_AI_TOOL_CALL_RESULT = "gen_ai.tool.call.result"

# The Agent Skill an execute_tool span loads, reads a resource of or runs
# a script of (the GenAI conventions' load_skill, read_skill_resource and
# command refinements). The coding-agent plugin sets it on the span of a
# Claude Code Skill call that loaded a skill, from the name Claude Code
# resolved, and leaves it off a call that failed. Identity: it names the
# skill, not what the skill says, so it is sent with content capture off.
# Its siblings gen_ai.skill.source.uri and gen_ai.skill.description are
# content.
GEN_AI_SKILL_NAME = "gen_ai.skill.name"

# Where the skill was loaded from, not where it was unpacked to run. The
# conventions mark it sensitive: a file:// URI carries a local path, user
# name included, and a remote one can carry credentials. Content, listed
# in CONTENT_ATTRIBUTES, so the coding-agent plugin writes it only with
# content capture on.
GEN_AI_SKILL_SOURCE_URI = "gen_ai.skill.source.uri"

# The index, collection or knowledge base a retrieval ran against. Identity,
# set at span creation: it is what a retriever span is named after and the
# only thing that distinguishes two otherwise identical searches.
Expand Down Expand Up @@ -961,6 +978,11 @@
# for it while the tool is still running.
GEN_AI_TOOL_CALL_ID,
GEN_AI_TOOL_TYPE,
# Which Agent Skill a still-running tool call loads. An identity, so a
# producer that knows it at creation (from the call's input, like the
# tool's own name) may put it on the pending span. The coding-agent
# plugin sets it only once the call has resolved the skill.
GEN_AI_SKILL_NAME,
# The requested output modality describes the request, so it is known
# before the model answers. Listed explicitly because the key sits
# outside gen_ai.request. and the prefix rule does not reach it.
Expand Down Expand Up @@ -1199,6 +1221,11 @@
GEN_AI_SYSTEM_INSTRUCTIONS,
GEN_AI_TOOL_CALL_ARGUMENTS,
GEN_AI_TOOL_CALL_RESULT,
# Sensitive per the GenAI conventions (semconv-genai#498): a skill's
# source URI can carry a local path or credentials, and its description
# is prose the skill's author wrote. gen_ai.skill.name stays: identity.
GEN_AI_SKILL_SOURCE_URI,
"gen_ai.skill.description",
# OpenInference TOOL-kind spans carry the definition under these two
# bare keys, sensitive for the reason gen_ai.tool.description is.
"tool.description",
Expand Down Expand Up @@ -1612,6 +1639,8 @@ class SpanKind(str, Enum):
"GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK",
"GEN_AI_RETRIEVAL_DOCUMENTS",
"GEN_AI_RETRIEVAL_TOP_K",
"GEN_AI_SKILL_NAME",
"GEN_AI_SKILL_SOURCE_URI",
"GEN_AI_SYSTEM",
"GEN_AI_SYSTEM_INSTRUCTIONS",
"GEN_AI_TOOL_CALL_ARGUMENTS",
Expand Down
4 changes: 4 additions & 0 deletions tests/test_masking.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,9 @@ def test_mask_redacts_tool_definitions_from_request_parameters() -> None:
# rius holds the global provider those SDKs then write to ---

THIRD_PARTY_CONTENT_KEYS = (
# Agent Skills (GenAI conventions), sensitive upstream: Google ADK, Agno, Strands
"gen_ai.skill.source.uri",
"gen_ai.skill.description",
# langfuse 3.15, langfuse/_client/attributes.py
"langfuse.observation.input",
"langfuse.observation.output",
Expand Down Expand Up @@ -683,6 +686,7 @@ def test_mask_redacts_tool_definitions_from_request_parameters() -> None:
# from a content key.
THIRD_PARTY_KEYS_THAT_SURVIVE = (
"input_tokens",
"gen_ai.skill.name",
"gen_ai.usage.input_tokens",
"gen_ai.usage.output_tokens",
"input.mime_type",
Expand Down
Loading