coze-coding-utils 0.1.4__tar.gz → 0.1.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: coze-coding-utils
3
- Version: 0.1.4
3
+ Version: 0.1.6
4
4
  Summary: Utilities for Coze coding client runtime context and helpers.
5
5
  Project-URL: Homepage, https://code.byted.org/stone/coze-coding-client
6
6
  Author: Bytedance Stone Team
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "coze-coding-utils"
7
- version = "0.1.4"
7
+ version = "0.1.6"
8
8
  description = "Utilities for Coze coding client runtime context and helpers."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -50,25 +50,6 @@ def new_context(method: str, headers: Optional[Mapping[str, str]] = None) -> Con
50
50
  ctx.benefit_biz_scene = headers[HEADER_BENEFIT_BIZ_SCENE]
51
51
  return ctx
52
52
 
53
- def set_use_ppe(ctx: Context, use_ppe: str) -> Context:
54
- ctx.x_use_ppe = use_ppe
55
- return ctx
56
-
57
- def set_benefit_biz_scene(ctx: Context, benefit_biz_scene: str) -> Context:
58
- ctx.benefit_biz_scene = benefit_biz_scene
59
- return ctx
60
-
61
- def set_x_tt_env_fe(ctx: Context, x_tt_env_fe: str) -> Context:
62
- ctx.x_tt_env_fe = x_tt_env_fe
63
- return ctx
64
-
65
- def set_x_tt_env(ctx: Context, x_tt_env: str) -> Context:
66
- ctx.x_tt_env = x_tt_env
67
- return ctx
68
-
69
- def set_logid(ctx: Context, logid: str) -> Context:
70
- ctx.logid = logid
71
- return ctx
72
53
 
73
54
  def default_headers(ctx: Context | None) -> Dict[str, str]:
74
55
  """从上下文生成请求头字典,仅包含已设置的字段。"""
@@ -90,10 +71,4 @@ def default_headers(ctx: Context | None) -> Dict[str, str]:
90
71
  __all__ = [
91
72
  "Context",
92
73
  "new_context",
93
- "default_headers",
94
- "set_use_ppe",
95
- "set_benefit_biz_scene",
96
- "set_x_tt_env_fe",
97
- "set_x_tt_env",
98
- "set_logid",
99
74
  ]