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
2 changes: 1 addition & 1 deletion config.yaml.full
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ database:
db: 0 # default
# [optional] for knowledgebase (https://console.volcengine.com/vikingdb)
viking:
project: # user project in Volcengine Viking DB
project: default # user project in Volcengine Viking DB
region: cn-beijing
# [optional] for knowledgebase with viking database
tos:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "veadk-python"
version = "0.2.4"
version = "0.2.5"
description = "Volcengine agent development kit, integrations with Volcengine cloud services."
readme = "README.md"
requires-python = ">=3.10"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,27 @@ def tool_cozeloop_input(params: ToolAttributesParams) -> ExtractorResponse:
"description": params.tool.description,
"parameters": params.args,
}
return ExtractorResponse(content=json.dumps(tool_input) or "<unknown_tool_input>")
return ExtractorResponse(
content=json.dumps(tool_input, ensure_ascii=False) or "<unknown_tool_input>"
)


def tool_gen_ai_tool_name(params: ToolAttributesParams) -> ExtractorResponse:
return ExtractorResponse(content=params.tool.name or "<unknown_tool_name>")


def tool_cozeloop_output(params: ToolAttributesParams) -> ExtractorResponse:
function_response = params.function_response_event.get_function_responses()[0]
function_response = params.function_response_event.get_function_responses()[
0
].model_dump()
tool_output = {
"id": function_response.id,
"name": function_response.name,
"response": function_response.response,
"id": function_response["id"],
"name": function_response["name"],
"response": function_response["response"],
}
return ExtractorResponse(content=json.dumps(tool_output) or "<unknown_tool_output>")
return ExtractorResponse(
content=json.dumps(tool_output, ensure_ascii=False) or "<unknown_tool_output>"
)


TOOL_ATTRIBUTES = {
Expand Down
2 changes: 1 addition & 1 deletion veadk/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

VERSION = "0.2.4"
VERSION = "0.2.5"