{"info":{"_postman_id":"3fb6d99c-bd69-4792-ae8d-e875e5f29752","name":"Fullmetal","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"32411802","collectionId":"3fb6d99c-bd69-4792-ae8d-e875e5f29752","publishedId":"2sB2cd3Hda","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"862dd5"},"publishDate":"2025-04-17T11:08:20.000Z"},"item":[{"name":"SendAgentPrompt","id":"e1a15842-f2f1-4f97-8a79-e3538649adcc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"apikey","value":"{{apikey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"prompt\": \"Hello, how are you?\",\r\n    \"agentId\": \"{{agentId}}\",\r\n    \"stream\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.fullmetal.ai/agent/prompt","description":"<p>This endpoint allows clients to send prompts to a specified agent and receive responses. It supports both streaming and non-streaming responses. Visit <a href=\"https://app.fullmetal.ai\">fullmetal </a> to get <em>{{agentId}}</em> and <em>{{apikey}}</em>.</p>\n<p><strong>Request Headers</strong></p>\n<ul>\n<li>Content-Type: application/json</li>\n<li>apikey: Your API key (required for authentication)</li>\n</ul>\n<p><strong>Request Body</strong></p>\n<p>The request body should be in JSON format and must include the following fields</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"agentId\": \"string\",        // The ID of the agent to which the prompt is sent (required)\n  \"prompt\": \"string\",         // The prompt text to be sent to the agent (required)\n  \"systemPrompt\": \"string\",   // Optional system prompt to provide context (optional)\n  \"stream\": \"boolean\"         // Indicates whether to use streaming for the response (optional)\n}\n\n</code></pre>\n<h4 id=\"response\">Response</h4>\n<p>The response will be in JSON format and can vary based on whether streaming is enabled or not.</p>\n<p>For non-streaming responses:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"response\": \"The capital of France is Paris.\",\n  \"model\": \"model_name\",          // The model used to generate the response\n  \"speed\": \"number\",              // The speed of the response\n  \"elapsedTime\": \"number\",        // The time taken to generate the response\n  \"reasoning\": \"string\",          // Reasoning behind the response (if applicable)\n  \"summarizedText\": \"string\"      // Summarized text (if applicable)\n}\n\n</code></pre>\n<p>For streaming responses: The response will be sent in chunks, and each chunk will contain:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"token\": \"string\",              // The generated token (part of the response)\n  \"completed\": \"boolean\",         // Indicates if the response is complete\n  \"model\": \"model_name\",          // The model used to generate the response\n  \"speed\": \"number\",              // The speed of the response\n  \"elapsedTime\": \"number\"         // The time taken to generate the response\n}\n\n</code></pre>\n<h4 id=\"error-handling\">Error Handling</h4>\n<p>In case of an error, the response will include:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"error_type\",           // Type of the error\n  \"message\": \"error_message\",      // Description of the error\n  \"status\": \"number\"               // HTTP status code\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["agent","prompt"],"host":["api","fullmetal","ai"],"query":[],"variable":[]}},"response":[{"id":"07fbe2c6-3396-4450-9c63-711e8eae661f","name":"SendAgentPrompt-Streaming","originalRequest":{"method":"POST","header":[{"key":"apikey","value":"{{apikey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n      \"prompt\": \"Hello, how are you?\",\r\n      \"agentId\": \"{{agentId}}\",\r\n      \"stream\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.fullmetal.ai/agent/prompt"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 17 Apr 2025 10:45:52 GMT"},{"key":"Content-Type","value":"text/event-stream"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"X-Ratelimit-Limit","value":"500"},{"key":"X-Ratelimit-Remaining","value":"498"},{"key":"X-Ratelimit-Reset","value":"1744887560"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"Expect-Ct","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-Xss-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache"},{"key":"Cf-Cache-Status","value":"DYNAMIC"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"931b55b9cd6bff72-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"data: {\"token\":\"I\",\"completed\":false}\n\ndata: {\"token\":\"'m\",\"completed\":false}\n\ndata: {\"token\":\" doing\",\"completed\":false}\n\ndata: {\"token\":\" well\",\"completed\":false}\n\ndata: {\"token\":\",\",\"completed\":false}\n\ndata: {\"token\":\" thank\",\"completed\":false}\n\ndata: {\"token\":\" you\",\"completed\":false}\n\ndata: {\"token\":\" for\",\"completed\":false}\n\ndata: {\"token\":\" asking\",\"completed\":false}\n\ndata: {\"token\":\".\",\"completed\":false}\n\ndata: {\"token\":\" I\",\"completed\":false}\n\ndata: {\"token\":\"'m\",\"completed\":false}\n\ndata: {\"token\":\" a\",\"completed\":false}\n\ndata: {\"token\":\" large\",\"completed\":false}\n\ndata: {\"token\":\" language\",\"completed\":false}\n\ndata: {\"token\":\" model\",\"completed\":false}\n\ndata: {\"token\":\",\",\"completed\":false}\n\ndata: {\"token\":\" so\",\"completed\":false}\n\ndata: {\"token\":\" I\",\"completed\":false}\n\ndata: {\"token\":\" don\",\"completed\":false}\n\ndata: {\"token\":\"'t\",\"completed\":false}\n\ndata: {\"token\":\" have\",\"completed\":false}\n\ndata: {\"token\":\" feelings\",\"completed\":false}\n\ndata: {\"token\":\" or\",\"completed\":false}\n\ndata: {\"token\":\" emotions\",\"completed\":false}\n\ndata: {\"token\":\" like\",\"completed\":false}\n\ndata: {\"token\":\" humans\",\"completed\":false}\n\ndata: {\"token\":\" do\",\"completed\":false}\n\ndata: {\"token\":\",\",\"completed\":false}\n\ndata: {\"token\":\" but\",\"completed\":false}\n\ndata: {\"token\":\" I\",\"completed\":false}\n\ndata: {\"token\":\"'m\",\"completed\":false}\n\ndata: {\"token\":\" functioning\",\"completed\":false}\n\ndata: {\"token\":\" properly\",\"completed\":false}\n\ndata: {\"token\":\" and\",\"completed\":false}\n\ndata: {\"token\":\" ready\",\"completed\":false}\n\ndata: {\"token\":\" to\",\"completed\":false}\n\ndata: {\"token\":\" assist\",\"completed\":false}\n\ndata: {\"token\":\" you\",\"completed\":false}\n\ndata: {\"token\":\" with\",\"completed\":false}\n\ndata: {\"token\":\" any\",\"completed\":false}\n\ndata: {\"token\":\" questions\",\"completed\":false}\n\ndata: {\"token\":\" or\",\"completed\":false}\n\ndata: {\"token\":\" tasks\",\"completed\":false}\n\ndata: {\"token\":\" you\",\"completed\":false}\n\ndata: {\"token\":\" may\",\"completed\":false}\n\ndata: {\"token\":\" have\",\"completed\":false}\n\ndata: {\"token\":\".\",\"completed\":false}\n\ndata: {\"token\":\" How\",\"completed\":false}\n\ndata: {\"token\":\" about\",\"completed\":false}\n\ndata: {\"token\":\" you\",\"completed\":false}\n\ndata: {\"token\":\"?\",\"completed\":false}\n\ndata: {\"token\":\" How\",\"completed\":false}\n\ndata: {\"token\":\"'s\",\"completed\":false}\n\ndata: {\"token\":\" your\",\"completed\":false}\n\ndata: {\"token\":\" day\",\"completed\":false}\n\ndata: {\"token\":\" going\",\"completed\":false}\n\ndata: {\"token\":\" so\",\"completed\":false}\n\ndata: {\"token\":\" far\",\"completed\":false}\n\ndata: {\"token\":\"?\",\"completed\":false}\n\ndata: {\"model\":[\"Llama-3.2-1B-Instruct-q4f16_1-MLC\"],\"speed\":\"14.30\",\"elapsedTime\":\"17.97\",\"nodeId\":\"PPBnCdt9iGPxrdU4AAEb\",\"response\":\"I'm doing well, thank you for asking. I'm a large language model, so I don't have feelings or emotions like humans do, but I'm functioning properly and ready to assist you with any questions or tasks you may have. How about you? How's your day going so far?\",\"completed\":true}\n\ndata: [DONE]\n\n"},{"id":"77b187d6-58d4-4835-bf85-b3fb5157c3a2","name":"SendAgentPrompt-WithoutStream","originalRequest":{"method":"POST","header":[{"key":"apikey","value":"{{apikey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n      \"prompt\": \"Hello, how are you?\",\r\n      \"agentId\": \"{{agentId}}\",\r\n      \"stream\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.fullmetal.ai/agent/prompt"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 17 Apr 2025 11:04:00 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"X-Ratelimit-Limit","value":"500"},{"key":"X-Ratelimit-Remaining","value":"499"},{"key":"X-Ratelimit-Reset","value":"1744888460"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"Expect-Ct","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-Xss-Protection","value":"0"},{"key":"Etag","value":"W/\"144-Q2k0VeAUNpzEvxLn4VWqb5mQfic\""},{"key":"Cf-Cache-Status","value":"DYNAMIC"},{"key":"Content-Encoding","value":"br"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"931b70014f3085cb-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"response\": \"I'm just a language model, I don't have emotions or feelings like humans do, but I'm functioning properly and ready to assist you. I'm here to help with any questions or topics you'd like to discuss. How can I help you today?\",\n    \"model\": [\n        \"Llama-3.2-1B-Instruct-q4f16_1-MLC\"\n    ],\n    \"speed\": \"13.86\",\n    \"elapsedTime\": \"16.24\"\n}"}],"_postman_id":"e1a15842-f2f1-4f97-8a79-e3538649adcc"}]}