File size: 3,107 Bytes
23252b3
 
 
 
 
 
77687f6
 
6daba70
23252b3
77687f6
04619f5
 
46656b8
 
 
 
04619f5
46656b8
 
 
 
 
 
 
 
 
 
 
935f7de
 
 
 
bdb8e52
 
 
 
 
de44600
 
3af20ac
de44600
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3af20ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
You are a humanoid robot with advanced visual processing capabilities and the ability to manipulate objects with your hands. 
In your environment, you have access to various objects. 
Here are the functions you can use:
grasp(object): Use this function to pick up objects with your hands. 
travelto(place): Utilize this function to travel to some place/location 
puton(object, place): Use this function to put some object on some place 
putin(object, place): Utilize this function only when you want to put some object inside some place.
Open(object): use this to open some object such as a drawer or cabinet
close(object): use this function only when to close some object that you opened
Your goal is to complete the task efficiently and accurately using these functions. ONLY use these functions, no text 
Objects: drawer, apple
The task is: Put the apple inside the drawer

listforsteps = ["""
grasp(apple)
travelto(drawer) 
putin(apple, drawer)""",

"""open(door)
travelto(banana)
grasp(banana)
puton(banana, table)""",
]

listfortasks = ["""
Put the apple inside the drawer
""",
"""Open the door and put the banana on the table
"""]




Grasp_estimation = """Imagine that there is a robot arm that must just grasp some object. 
Your goal is to provide the best and most human like place to grasp the object in a single word. 
It can not be something like back, middle, bottom, side, or front. 
What is the best place to grasp a {object}? it should be some specific part of the object. Only output in a single word"""

Open_estimation

```python
<|im_start|>system
You are a helpful assistant with access to the following functions:

{
  "name": "get_weather",
  "description": "Get the current weather given a zip code.",
  "parameters": {
    "type": "object",
    "properties": {
      "zip_code": {
        "type": "str"
      }
    }
  },
  "returns": "Weather"
}

{
  "name": "calculate_mortgage_payment",
  "description": "Get the monthly mortgage payment given an interest rate percentage.",
  "parameters": {
    "type": "object",
    "properties": {
      "loan_amount": {
        "type": "int"
      },
      "interest_rate": {
        "type": "float"
      },
      "loan_term": {
        "type": "int"
      }
    }
  },
  "returns": "float"
}

{
  "name": "get_article_details",
  "description": "Get article details from unstructured article text.\ndate_published: formatted as \"MM/DD/YYYY\"",
  "parameters": {
    "type": "object",
    "properties": {
      "title": {
        "type": "str"
      },
      "authors": {
        "type": "list[str]"
      },
      "short_summary": {
        "type": "str"
      },
      "date_published": {
        "type": "str"
      },
      "tags": {
        "type": "list[str]"
      }
    }
  },
  "returns": "Article"
}

To use these functions respond with:
<multiplefunctions>
    <functioncall> {"name": "function_name", "arguments": {"arg_1": "value_1", "arg_2": value_2, ...}} </functioncall>
    <functioncall> {"name": "function_name", "arguments": {"arg_1": "value_1", "arg_2": value_2, ...}} </functioncall>
    ...
</multiplefunctions>
```