Skip to content

Commit 7818f2c

Browse files
committed
fix: tool_call dump bug
1 parent 0730dfa commit 7818f2c

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

config.yaml.full

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ database:
8888
db: 0 # default
8989
# [optional] for knowledgebase (https://console.volcengine.com/vikingdb)
9090
viking:
91-
project: # user project in Volcengine Viking DB
91+
project: default # user project in Volcengine Viking DB
9292
region: cn-beijing
9393
# [optional] for knowledgebase with viking database
9494
tos:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "veadk-python"
3-
version = "0.2.4"
3+
version = "0.2.5"
44
description = "Volcengine agent development kit, integrations with Volcengine cloud services."
55
readme = "README.md"
66
requires-python = ">=3.10"

veadk/tracing/telemetry/attributes/extractors/tool_attributes_extractors.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ def tool_gen_ai_tool_name(params: ToolAttributesParams) -> ExtractorResponse:
5252

5353

5454
def tool_cozeloop_output(params: ToolAttributesParams) -> ExtractorResponse:
55-
function_response = params.function_response_event.get_function_responses()[0]
55+
function_response = params.function_response_event.get_function_responses()[
56+
0
57+
].model_dump()
5658
tool_output = {
57-
"id": function_response.id,
58-
"name": function_response.name,
59-
"response": function_response.response,
59+
"id": function_response["id"],
60+
"name": function_response["name"],
61+
"response": function_response["response"],
6062
}
6163
return ExtractorResponse(content=json.dumps(tool_output) or "<unknown_tool_output>")
6264

veadk/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
VERSION = "0.2.4"
15+
VERSION = "0.2.5"

0 commit comments

Comments
 (0)