mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-14 15:25:17 +02:00
rename field to tool_field
This commit is contained in:
parent
fdc49775e6
commit
f19003b413
4 changed files with 38 additions and 35 deletions
|
|
@ -7,7 +7,7 @@
|
|||
import pytest
|
||||
|
||||
from metagpt.tools.functions.register.register import FunctionRegistry
|
||||
from metagpt.tools.functions.schemas.base import ToolSchema, field
|
||||
from metagpt.tools.functions.schemas.base import ToolSchema, tool_field
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
@ -18,8 +18,8 @@ def registry():
|
|||
class AddNumbers(ToolSchema):
|
||||
"""Add two numbers"""
|
||||
|
||||
num1: int = field(description="First number")
|
||||
num2: int = field(description="Second number")
|
||||
num1: int = tool_field(description="First number")
|
||||
num2: int = tool_field(description="Second number")
|
||||
|
||||
|
||||
def test_register(registry):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue