الـagent = موديل + instructions + tools في حلقة (ReAct): الموديل يقرر يستدعي أداة، الـruntime ينفذها ويرجّعله النتيجة، ويكرر لحد ما يرد. اسأله وبص على الـtrace: كل turn للموديل وكل استدعاء أداة بالـarguments والنتيجة والوقت والتوكنز.
اسأل سؤال محتاج أداة — الـagent يستدعيها ويرد بالنتيجة: جرّب «الجو عامل إيه في إسكندرية النهارده؟» وافتح الـTrace: turn 1 = tool_calls، بعدها get_weather، وturn 2 = الرد.
ابعت رسالة — الـagent هيقرر يستدعي أنهي أداة، والـruntime هينفّذها ويرجّعله النتيجة لحد ما يرد. كل خطوة هتلاقيها في الـTrace.
لسه مفيش تشغيل — ابعت رسالة.
{
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "City name in English, e.g. Cairo"
}
},
"required": [
"city"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"expression": {
"type": "string",
"description": "Only numbers and + - * / % ^ ( )"
}
},
"required": [
"expression"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"order_id": {
"type": "integer",
"description": "The order number, e.g. 1004"
}
},
"required": [
"order_id"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Email address or name",
"minLength": 2
}
},
"required": [
"query"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "What to look for"
}
},
"required": [
"query"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"from": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"to": {
"type": "string",
"pattern": "^[A-Z]{3}$"
}
},
"required": [
"from",
"to"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"order_id": {
"type": "integer"
},
"amount": {
"type": "number",
"minimum": 1,
"description": "EGP"
},
"reason": {
"type": "string"
}
},
"required": [
"order_id",
"amount",
"reason"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"to": {
"type": "string",
"pattern": "^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$"
},
"subject": {
"type": "string",
"minLength": 1
},
"body": {
"type": "string",
"minLength": 1
}
},
"required": [
"to",
"subject",
"body"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"channel": {
"type": "string",
"enum": [
"general",
"alerts",
"finance",
"support"
]
},
"text": {
"type": "string",
"minLength": 1
}
},
"required": [
"channel",
"text"
],
"additionalProperties": false
}الطلبات
| # | الإجمالي | الحالة | اترجع |
|---|---|---|---|
| 1001 | 250 | paid | 0 |
| 1002 | 1200 | paid | 0 |
| 1003 | 90 | refunded | 0 |
| 1004 | 640 | paid | 0 |
| 1005 | 75 | pending | 0 |
| 1006 | 3100 | paid | 0 |
| 1007 | 410 | pending | 0 |
| 1008 | 980 | paid | 0 |
إيميلات اتبعتت (0)
مفيش
رسايل Slack (0)
مفيش
صدّر الـagent كبرنامج Python بـOpenAI Agents SDK أو كـagent.json ترجّعه هنا بعدين.