mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-25 00:36:55 +02:00
add custom tool example
This commit is contained in:
parent
bac81ee64b
commit
0c27be629b
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ def magic_function(arg1: str, arg2: int) -> dict:
|
|||
|
||||
async def main():
|
||||
di = DataInterpreter(tools=["magic_function"])
|
||||
await di.run("Just call the magic function with arg1 'A' and arg2 'B'. Tell me the result.")
|
||||
await di.run("Just call the magic function with arg1 'A' and arg2 2. Tell me the result.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue