Skip to content

Conversation

@YehongPan
Copy link
Contributor

@YehongPan YehongPan commented Dec 3, 2025

✨ Adapt MCP protocal to different program language #416
[Specification Details]
1.Upgrade the smolagents version from 1.15.0 to 1.23.0 (streamable-http is supported starting from 1.17.0).
2.Modify the implementation in sdk\nexent\core\agents to adapt to the new version of smolagents.
3.Modify test case.
4.Frontend prompt modification.
[Test Result]
streamable-http:
image
c3ccf33d-977e-4829-a5f4-d7c33c613099
e3885ee8-feef-43b6-ad90-1ed6dea5d4d6
sse:
0442ae8b-0dd5-47fa-b0e2-59d2dd045757
e9661473-212e-4400-9b22-d977192bfd52
c1566dac-f958-4bc2-bd21-b363d4ac3f2a

[Specification Details] 1.Upgrade the smolagents version from 1.15.0 to 1.23.0 (streamable-http is supported starting from 1.17.0).
2.Modify the implementation in sdk\nexent\core\agents to adapt to the new version of smolagents.
3.Modify test case.
[Specification Details] 1.Frontend prompt modification
@YehongPan YehongPan self-assigned this Dec 3, 2025
@YehongPan YehongPan requested a review from Phinease as a code owner December 3, 2025 07:57
@codecov
Copy link

codecov bot commented Dec 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

[Specification Details] 1.Add test cases.
@loveTsong
Copy link
Contributor

image 描述里信息不正确,需要更新下配图

@YehongPan
Copy link
Contributor Author

image 描述里信息不正确,需要更新下配图

已更新截图。

# Add new step in logs
memory_step.model_input_messages = input_messages
stop_sequences = ["<END_CODE>", "Observation:", "Calling tools:", "<END_CODE"]
if self.code_block_tags[1] not in self.code_block_tags[0]:
Copy link
Contributor

@loveTsong loveTsong Dec 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image 我们重写了_step_stream这个code_block_tags的使用是个明确的行为,可以简化逻辑,按照我们实际的场景来,方便代码理解和维护

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已移除冗余代码。
image

[Specification Details] 1.Remove redundant code and modify test cases.
@Phinease Phinease merged commit dbe86cb into develop Dec 8, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants