Autogen supports a concept of config\_list which allows definitions of the LLM provider and model to be used. The AI Gateway seamlessly integrates into the Autogen framework through a custom config we create.
from autogen import AssistantAgent, UserProxyAgent, config_list_from_jsonconfig_list = [ { "api_key": 'Your OpenAI Key', "model": "@openai/gpt-3.5-turbo", "base_url": "https://aigw.portkey.ai/v1", "api_type": "openai", }]assistant = AssistantAgent("assistant", llm_config={"config_list": config_list})user_proxy = UserProxyAgent("user_proxy", code_execution_config={"work_dir": "coding", "use_docker": False}) # IMPORTANT: set to True to run code in docker, recommendeduser_proxy.initiate_chat(assistant, message="Say this is also a test - part 2.")# This initiates an automated chat between the two agents to solve the task
Notice that we updated the base_url to AI Gateway and then added default_headers to enable the AI Gateway specific features.When we execute this script, it would yield the same results as without the AI Gateway, but every request can now be inspected in the AI Gateway Analytics & Logs UI - including token, cost, accuracy calculations.
All the config parameters supported in the AI Gateway are available for use as part of the headers. Let’s look at some examples:
Using 3,000+ models in Autogen through the AI Gateway
Since the AI Gateway seamlessly connects to 3,000+ models across providers, you can easily connect any of these to now run with Autogen.Let’s see an example using Mistral-7B on Anyscale running with Autogen seamlessly:
from autogen import AssistantAgent, UserProxyAgent, config_list_from_jsonconfig_list = [ { "api_key": 'Your Anyscale API Key', "model": "@anyscale/mistralai/Mistral-7B-Instruct-v0.1", "base_url": "https://aigw.portkey.ai/v1", "api_type": "openai", # the AI Gateway conforms to the openai api_type }]assistant = AssistantAgent("assistant", llm_config={"config_list": config_list})user_proxy = UserProxyAgent("user_proxy", code_execution_config={"work_dir": "coding", "use_docker": False}) # IMPORTANT: set to True to run code in docker, recommendeduser_proxy.initiate_chat(assistant, message="Say this is also a test - part 2.")# This initiates an automated chat between the two agents to solve the task
Model Catalog in the AI Gateway lets you manage provider credentials centrally. Add your Anyscale API key to Model Catalog and use the AI Provider slug in your config.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Portkey (Prisma AIRS AI Gateway) Docs","description":"Comprehensive documentation for AI Gateway, Guardrails, Observability, and Governance features.","colors":{"primary":"#0891B2","light":"#0891B2","dark":"#0891B2"},"logo":{"light":"https://mintcdn.com/portkey-docs/tHk-hgNjLbEj4dhh/images/portkey-PANW-company-logo-positive.png?fit=max\u0026auto=format\u0026n=tHk-hgNjLbEj4dhh\u0026q=85\u0026s=c5fb09014ff79616583b1d3bffe27450","dark":"https://mintcdn.com/portkey-docs/tHk-hgNjLbEj4dhh/images/portkey-PANW-company-logo-negative.png?fit=max\u0026auto=format\u0026n=tHk-hgNjLbEj4dhh\u0026q=85\u0026s=6025ca49ef544522f58ff471b7f75f8f"},"favicon":"https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/favicon.png?fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=cbaa1bfc49bb6e3fd6cf499a5da313a3","api":{"openapi":"https://raw.githubusercontent.com/Portkey-AI/openapi/refs/heads/master/openapi.yaml","examples":{"prefill":true},"url":"full"},"navbar":{"links":[{"href":"https://portkey.ai/models","label":"Models"},{"href":"https://support.portkey.ai/forms/customer-portal-ticket-form","label":"Support"},{"href":"https://www.paloaltonetworks.in/ai-security/ai-gateway?utm_source=portkey\u0026utm_medium=referral\u0026utm_campaign=prisma_airs\u0026utm_content=docs_nav#contact","label":"Contact Us"}],"primary":{"type":"button","label":"Sign in","href":"https://stratacloudmanager.paloaltonetworks.com/"}},"footer":{"socials":{"x":"https://twitter.com/PortkeyAI","linkedin":"https://www.linkedin.com/company/portkey-ai","github":"https://git.new/portkey"},"links":[{"header":"For LLMs","items":[{"label":"llms.txt","href":"https://portkey.ai/docs/llms.txt"},{"label":"llms-full.txt","href":"https://portkey.ai/docs/llms-full.txt"}]},{"header":"Products","items":[{"label":"Observability","href":"https://portkey.ai/features/observability"},{"label":"AI Gateway","href":"https://portkey.ai/features/ai-gateway"},{"label":"Guardrails","href":"https://portkey.ai/features/guardrails"},{"label":"Prompt Management","href":"https://portkey.ai/features/prompt-management"},{"label":"Agents","href":"https://portkey.ai/features/agents"},{"label":"MCP Gateway","href":"https://portkey.ai/docs/product/mcp-gateway"},{"label":"Security","href":"https://portkey.ai/features/security-and-compliance"},{"label":"Auto-Instrumentation","href":"https://portkey.ai/features/auto-instrumentation"}]},{"header":"Resources","items":[{"label":"API Status","href":"https://status.portkey.ai/"},{"label":"Helm Charts","href":"https://github.com/portkey-ai/helm"},{"label":"AI Grants Finder","href":"https://grantsfinder.portkey.ai/"},{"label":"Events Calendar","href":"https://lu.ma/portkey"},{"label":"Blog","href":"https://portkey.ai/blog"},{"label":"Error Library","href":"https://portkey.ai/error-library"},{"label":"Models \u0026 Pricing","href":"https://portkey.ai/models"}]},{"header":"Company","items":[{"label":"Pricing","href":"https://portkey.ai/pricing"},{"label":"Compliances","href":"https://trust.portkey.ai/"},{"label":"Privacy Policy","href":"https://portkey.ai/privacy-policy"},{"label":"Terms of Service","href":"https://portkey.ai/terms"},{"label":"DPA","href":"https://portkey.ai/dpa"},{"label":"Cookie Policy","href":"https://portkey.ai/cookie-policy"}]}]},"seo":{"metatags":{"og:type":"website","og:site_name":"Portkey AI Gateway Docs"},"indexing":"navigable"},"styling":{"eyebrows":"breadcrumbs","codeblocks":"system","latex":true},"integrations":{"ga4":{"measurementId":"G-JJMXYE4DRL"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"toc"},"interaction":{"drilldown":true},"metadata":{"timestamp":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"portkey-docs","hasAudioNarration":false,"actualSubdomain":"portkey-docs","customDomains":["docs.portkey.ai","portkey.ai"],"gitSource":{"type":"github","owner":"portkey-ai","repo":"docs-core","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae4a3f4c2eaceb0e3450b94","collectionId":"3fc5fddf-cd0a-44c8-8c84-d700aea81ada","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae4a3f4c2eaceb0e3450b94"},"feedback":{"thumbs":true,"edits":true,"issues":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae4a3f4c2eaceb0e3450b94","clientVersion":"0.0.4043","searchFilterCounts":[{"language":"default","tag":"Integrations","count":699},{"language":"default","tag":"Product","count":382},{"language":"default","tag":"Docs","count":320},{"language":"default","tag":"LLM Integrations","count":307},{"language":"default","tag":"More","count":176},{"language":"default","tag":"Admin APIs","count":172},{"language":"default","tag":"Guardrails","count":101},{"language":"default","tag":"AI Gateway","count":99},{"language":"default","tag":"Admin API","count":95},{"language":"default","tag":"Documentation","count":91}],"searchSettings":{"isFiltersEnabled":true,"showContentSnippets":true}},"assistantConfig":{"enableAskAiButton":true,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@portkey.ai","showHelpButton":true}},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#banner{background:linear-gradient(90deg,#0d1b2e 0,#1a1040 40%,#2d0f22 100%);border-bottom:1px solid rgba(255,255,255,.08)}#banner a{color:#f0f0f0;text-decoration:none;font-weight:600;border-bottom:1px solid rgba(240,240,240,.5);padding-bottom:1px;transition:border-color .2s ease}#banner a:hover{border-bottom-color:#fff}"}],"page":{"pagePath":"aigw/integrations/libraries/autogen","slug":"/aigw/integrations/libraries/autogen","pageMetadata":{"title":"Autogen (DEPRECATED)","description":"AutoGen is a framework that enables the development of LLM applications using multiple agents that can converse with each other to solve tasks.","href":"/aigw/integrations/libraries/autogen"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"AutoGen is a framework that enables the development of LLM applications using multiple agents that can converse with each other to solve tasks.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{Card,CodeBlock,Frame,Heading,OptimizedImage}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);return _jsxs(_Fragment,{children:[_jsx(Card,{title:`This Integration is DEPRECATED`,icon:`robot`,href:`/aigw/integrations/agents/autogen`,children:_jsx(_components.p,{children:`Click here to check out the latest integration of Autogen with Prisma AIRS AI Gateway`})}),`\n`,_jsx(Heading,{level:`2`,id:`quick-start-integration`,children:`Quick Start Integration`}),`\n`,_jsxs(_components.p,{children:[`Autogen supports a concept of `,_jsx(_components.code,{children:`config\\\\_list`}),` which allows definitions of the LLM provider and model to be used. The AI Gateway seamlessly integrates into the Autogen framework through a custom config we create.`]}),`\n`,_jsx(Heading,{level:`3`,id:`example-using-minimal-configuration`,children:`Example using minimal configuration`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` autogen `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` AssistantAgent, UserProxyAgent, config_list_from_json`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`config_list `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"api_key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Your OpenAI Key'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"@openai/gpt-3.5-turbo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"base_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://aigw.portkey.ai/v1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"api_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"openai\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`assistant `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` AssistantAgent(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"assistant\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`llm_config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"config_list\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: config_list})`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`user_proxy `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` UserProxyAgent(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_proxy\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`code_execution_config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"work_dir\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"coding\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"use_docker\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`False`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}) `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# IMPORTANT: set to True to run code in docker, recommended`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`user_proxy.initiate_chat(assistant, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Say this is also a test - part 2.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# This initiates an automated chat between the two agents to solve the task`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Notice that we updated the `,_jsx(_components.code,{children:`base_url`}),` to AI Gateway and then added `,_jsx(_components.code,{children:`default_headers`}),` to enable the AI Gateway specific features.`]}),`\n`,_jsx(_components.p,{children:`When we execute this script, it would yield the same results as without the AI Gateway, but every request can now be inspected in the AI Gateway Analytics \u0026 Logs UI - including token, cost, accuracy calculations.`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/portkey-docs/T0lFtdapIPX8YtCI/images/libraries/libraries-2.gif?s=47bd2af0719efeb4fb59ae102d7910fc`,\"data-og-width\":`1548`,width:`1548`,\"data-og-height\":`1080`,height:`1080`,\"data-path\":`images/libraries/libraries-2.gif`,\"data-optimize\":`true`,\"data-opv\":`3`})}),`\n`,_jsx(_components.p,{children:`All the config parameters supported in the AI Gateway are available for use as part of the headers. Let’s look at some examples:`}),`\n`,_jsx(Heading,{level:`2`,id:`using-3000+-models-in-autogen-through-the-ai-gateway`,children:`Using 3,000+ models in Autogen through the AI Gateway`}),`\n`,_jsxs(_components.p,{children:[`Since the AI Gateway `,_jsx(_components.a,{href:`/aigw/integrations/llms`,children:`seamlessly connects to 3,000+ models across providers`}),`, you can easily connect any of these to now run with Autogen.`]}),`\n`,_jsxs(_components.p,{children:[`Let’s see an example using `,_jsx(_components.strong,{children:`Mistral-7B on Anyscale`}),` running with Autogen seamlessly:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` autogen `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` AssistantAgent, UserProxyAgent, config_list_from_json`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`config_list `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"api_key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Your Anyscale API Key'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"@anyscale/mistralai/Mistral-7B-Instruct-v0.1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"base_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://aigw.portkey.ai/v1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"api_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"openai\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# the AI Gateway conforms to the openai api_type`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`assistant `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` AssistantAgent(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"assistant\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`llm_config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"config_list\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: config_list})`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`user_proxy `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` UserProxyAgent(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_proxy\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`code_execution_config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"work_dir\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"coding\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"use_docker\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`False`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}) `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# IMPORTANT: set to True to run code in docker, recommended`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`user_proxy.initiate_chat(assistant, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Say this is also a test - part 2.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# This initiates an automated chat between the two agents to solve the task`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`using-model-catalog`,children:`Using Model Catalog`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/aigw/product/model-catalog`,children:`Model Catalog`}),` in the AI Gateway lets you manage provider credentials centrally. Add your Anyscale API key to Model Catalog and use the AI Provider slug in your config.`]}),`\n`,_jsx(Heading,{level:`2`,id:`using-configs`,children:`Using Configs`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/aigw/product/ai-gateway/configs`,children:`Configs`}),` in the AI Gateway unlock advanced management and routing functionality including `,_jsx(_components.a,{href:`/aigw/product/ai-gateway/load-balancing`,children:`load balancing`}),`, `,_jsx(_components.a,{href:`/aigw/product/ai-gateway/fallbacks`,children:`fallbacks`}),`, `,_jsx(_components.a,{href:`/aigw/product/ai-gateway/canary-testing`,children:`canary testing`}),`, `,_jsx(_components.a,{href:`/aigw/product/ai-gateway/universal-api`,children:`switching models`}),` and more.`]}),`\n`,_jsx(_components.p,{children:`You can use AI Gateway configs in Autogen like this:`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Autogen (DEPRECATED)","description":"AutoGen is a framework that enables the development of LLM applications using multiple agents that can converse with each other to solve tasks.","href":"/aigw/integrations/libraries/autogen"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Quick Start Integration","slug":"quick-start-integration","depth":2,"children":[{"title":"Example using minimal configuration","slug":"example-using-minimal-configuration","depth":3,"children":[]}]},{"title":"Using 3,000+ models in Autogen through the AI Gateway","slug":"using-3000+-models-in-autogen-through-the-ai-gateway","depth":2,"children":[]},{"title":"Using Model Catalog","slug":"using-model-catalog","depth":2,"children":[]},{"title":"Using Configs","slug":"using-configs","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"portkey-docs","siteName":"Portkey (Prisma AIRS AI Gateway) Docs","title":"Autogen (DEPRECATED) - Portkey (Prisma AIRS AI Gateway) Docs","relatedPagesConfig":{"enabled":true,"limit":5,"mode":"automatic"},"contextualStarterQuestions":[{"_id":"6ab4a5546bae20b5066dc536","deploymentId":"67086365a151447bf2fa5021","questionText":"How do I monitor requests?","status":"active","generatedBy":"contextual","path":"aigw/integrations/libraries/autogen","createdAt":"2026-09-24T04:21:40.733Z","updatedAt":"2026-09-24T04:21:40.733Z","__v":0},{"_id":"6ab4a5546bae20b5066dc535","deploymentId":"67086365a151447bf2fa5021","questionText":"Can I use multiple LLM models?","status":"active","generatedBy":"contextual","path":"aigw/integrations/libraries/autogen","createdAt":"2026-09-24T04:21:40.733Z","updatedAt":"2026-09-24T04:21:40.733Z","__v":0},{"_id":"6ab4a5546bae20b5066dc534","deploymentId":"67086365a151447bf2fa5021","questionText":"How do I set up Autogen config?","status":"active","generatedBy":"contextual","path":"aigw/integrations/libraries/autogen","createdAt":"2026-09-24T04:21:40.733Z","updatedAt":"2026-09-24T04:21:40.733Z","__v":0}],"navMaps":{"firstHrefInVersion":{"Latest":{"href":"/integrations/libraries/autogen","matchLevel":1},"Prisma AIRS":{"href":"/aigw/integrations/libraries/autogen","matchLevel":0},"Virtual Keys (Deprecated)":{"href":"/virtual_key_old/integrations/libraries/autogen","matchLevel":1}},"firstHrefInLanguage":{}},"lastModified":"2026-09-24T04:20:51.803Z","gitLastModified":"2026-09-24T04:20:06.000Z","originalFileLocation":"aigw/integrations/libraries/autogen.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"AutoGen is a framework that enables the development of LLM applications using multiple agents that can converse with each other to solve tasks.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Portkey (Prisma AIRS AI Gateway) Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/portkey-docs/9Whrk-8bCE6hyGSn/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/portkey-docs/9Whrk-8bCE6hyGSn/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/portkey-docs/9Whrk-8bCE6hyGSn/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/portkey-docs/9Whrk-8bCE6hyGSn/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/portkey-docs/9Whrk-8bCE6hyGSn/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/portkey-docs/9Whrk-8bCE6hyGSn/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/portkey-docs/9Whrk-8bCE6hyGSn/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/portkey-docs/9Whrk-8bCE6hyGSn/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/portkey-docs/9Whrk-8bCE6hyGSn/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Autogen (DEPRECATED) - Portkey (Prisma AIRS AI Gateway) Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"AutoGen is a framework that enables the development of LLM applications using multiple agents that can converse with each other to solve tasks.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Portkey AI Gateway Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.portkey.ai/docs/aigw/integrations/libraries/autogen\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://portkey-docs.mintlify.app/_mintlify/api/og/v2?division=Libraries\u0026amp;title=Autogen+%28DEPRECATED%29\u0026amp;description=AutoGen+is+a+framework+that+enables+the+development+of+LLM+applications+using+multiple+agents+that+can+converse+with+each+other+to+solve+tasks.\u0026amp;theme=262137c9f2583e48984715e7\u0026amp;signature=8ed0fde67b8e13c5f0a82f03dcdfa40b06dd9ab633dd9aac66d7d8d7abf36caf\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Autogen (DEPRECATED) - Portkey (Prisma AIRS AI Gateway) Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"AutoGen is a framework that enables the development of LLM applications using multiple agents that can converse with each other to solve tasks.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://portkey-docs.mintlify.app/_mintlify/api/og/v2?division=Libraries\u0026amp;title=Autogen+%28DEPRECATED%29\u0026amp;description=AutoGen+is+a+framework+that+enables+the+development+of+LLM+applications+using+multiple+agents+that+can+converse+with+each+other+to+solve+tasks.\u0026amp;theme=262137c9f2583e48984715e7\u0026amp;signature=8ed0fde67b8e13c5f0a82f03dcdfa40b06dd9ab633dd9aac66d7d8d7abf36caf\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/portkey-docs/9Whrk-8bCE6hyGSn/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Portkey (Prisma AIRS AI Gateway) Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0891B2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.portkey.ai/docs/aigw/integrations/libraries/autogen\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/aigw/integrations/libraries/autogen.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.portkey.ai/#organization\",\"name\":\"Portkey (Prisma AIRS AI Gateway) Docs\",\"url\":\"https://docs.portkey.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/portkey-docs/tHk-hgNjLbEj4dhh/images/portkey-PANW-company-logo-positive.png?fit=max\u0026auto=format\u0026n=tHk-hgNjLbEj4dhh\u0026q=85\u0026s=c5fb09014ff79616583b1d3bffe27450\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.portkey.ai/docs#website\",\"name\":\"Portkey (Prisma AIRS AI Gateway) Docs\",\"url\":\"https://docs.portkey.ai/docs\",\"publisher\":{\"@id\":\"https://docs.portkey.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.portkey.ai/docs/aigw/integrations/libraries/autogen#webpage\",\"url\":\"https://docs.portkey.ai/docs/aigw/integrations/libraries/autogen\",\"name\":\"Autogen (DEPRECATED)\",\"description\":\"AutoGen is a framework that enables the development of LLM applications using multiple agents that can converse with each other to solve tasks.\",\"dateModified\":\"2026-09-24T04:20:06.000Z\",\"isPartOf\":{\"@id\":\"https://docs.portkey.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://docs.portkey.ai/docs/aigw/integrations/libraries/autogen#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.portkey.ai/docs/aigw/integrations/libraries/autogen#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Libraries\",\"item\":\"https://docs.portkey.ai/docs/aigw/integrations/libraries\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Autogen (DEPRECATED)\",\"item\":\"https://docs.portkey.ai/docs/aigw/integrations/libraries/autogen\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.portkey.ai/docs/aigw/integrations/libraries/autogen#article\",\"headline\":\"Autogen (DEPRECATED)\",\"name\":\"Autogen (DEPRECATED)\",\"description\":\"AutoGen is a framework that enables the development of LLM applications using multiple agents that can converse with each other to solve tasks.\",\"url\":\"https://docs.portkey.ai/docs/aigw/integrations/libraries/autogen\",\"mainEntityOfPage\":{\"@id\":\"https://docs.portkey.ai/docs/aigw/integrations/libraries/autogen#webpage\"},\"dateModified\":\"2026-09-24T04:20:06.000Z\",\"publisher\":{\"@id\":\"https://docs.portkey.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.portkey.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Portkey (Prisma AIRS AI Gateway) Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Portkey (Prisma AIRS AI Gateway) Docs","nav":{"global":null,"versions":[{"version":"Latest","pages":[{"title":"Latest","href":"/integrations/libraries/autogen"}]},{"version":"Prisma AIRS","tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":"/aigw/introduction/welcome"}]},{"tab":"Integrations","groups":[{"group":"Integrations","pages":[{"title":"Overview","href":"/aigw/integrations/overview"}]},{"group":"LLM Integrations","pages":[{"title":"Overview","href":"/aigw/integrations/llms"},{"group":"OpenAI","pages":[{"title":"OpenAI","href":"/aigw/integrations/llms/openai"},{"title":"Structured Outputs","href":"/aigw/integrations/llms/openai/structured-outputs"},{"title":"Prompt Caching","href":"/aigw/integrations/llms/openai/prompt-caching-openai"},{"title":"Embeddings","href":"/aigw/integrations/llms/openai/embeddings"},{"title":"Files","href":"/aigw/integrations/llms/openai/files"},{"title":"Batches","href":"/aigw/integrations/llms/openai/batches"},{"title":"Fine-tune","href":"/aigw/integrations/llms/openai/fine-tuning"},{"title":"Remote MCP Support","url":"/aigw/product/ai-gateway/remote-mcp#openai-responses-api-remote-mcp-support","href":"/aigw/integrations/llms/openai/remote-mcp"}]},{"group":"Anthropic","pages":[{"title":"Anthropic","href":"/aigw/integrations/llms/anthropic"},{"title":"Structured Outputs","href":"/aigw/integrations/llms/anthropic/structured-outputs"},{"title":"Prompt Caching","href":"/aigw/integrations/llms/anthropic/prompt-caching"},{"title":"Computer use tool","url":"/aigw/integrations/libraries/anthropic-computer-use","href":"/aigw/integrations/llms/anthropic/computer-use"},{"title":"Remote MCP Support","url":"/aigw/product/ai-gateway/remote-mcp#anthropic%E2%80%99s-messages-api-mcp-connector","href":"/aigw/integrations/llms/anthropic/remote-mcp"},{"title":"Count Tokens","href":"/aigw/integrations/llms/anthropic/count-tokens"},{"title":"Files","href":"/aigw/integrations/llms/anthropic/files"},{"title":"Batches","href":"/aigw/integrations/llms/anthropic/batches"}]},{"title":"Google Gemini","href":"/aigw/integrations/llms/gemini"},{"group":"Google Vertex AI","pages":[{"title":"Google Vertex AI","href":"/aigw/integrations/llms/vertex-ai"},{"title":"Text-to-Speech","href":"/aigw/integrations/llms/vertex-ai/text-to-speech"},{"title":"Files","href":"/aigw/integrations/llms/vertex-ai/files"},{"title":"Batches","href":"/aigw/integrations/llms/vertex-ai/batches"},{"title":"Fine-tune","href":"/aigw/integrations/llms/vertex-ai/fine-tuning"},{"title":"Controlled Generations","href":"/aigw/integrations/llms/vertex-ai/controlled-generations"},{"title":"Embeddings","href":"/aigw/integrations/llms/vertex-ai/embeddings"},{"title":"Rerank","href":"/aigw/integrations/llms/vertex-ai/rerank"}]},{"group":"Azure","pages":[{"title":"Azure AI Foundry","href":"/aigw/integrations/llms/azure-foundry"},{"title":"Azure OpenAI","href":"/aigw/integrations/llms/azure-openai/azure-openai"},{"title":"Authentication","href":"/aigw/integrations/llms/azure-openai/authentication"},{"title":"Azure Government Cloud","url":"/aigw/integrations/llms/azure-openai/azure-openai#azure-government-cloud","href":"/aigw/integrations/llms/azure-openai/azure-govcloud"},{"title":"Fine-tune","href":"/aigw/integrations/llms/azure-openai/fine-tuning"},{"title":"Files","href":"/aigw/integrations/llms/azure-openai/files"},{"title":"Batches","href":"/aigw/integrations/llms/azure-openai/batches"}]},{"group":"Bedrock","pages":[{"title":"AWS Bedrock","href":"/aigw/integrations/llms/bedrock/aws-bedrock"},{"title":"AWS GovCloud with Bedrock","url":"/aigw/integrations/llms/bedrock/aws-bedrock#aws-govcloud-us","href":"/aigw/integrations/llms/bedrock/aws-govcloud"},{"title":"Connect Bedrock with Amazon Assumed Role","href":"/aigw/product/model-catalog/connect-bedrock-with-amazon-assumed-role"},{"title":"Structured Outputs","href":"/aigw/integrations/llms/bedrock/structured-outputs"},{"title":"Files","href":"/aigw/integrations/llms/bedrock/files"},{"title":"Batches","href":"/aigw/integrations/llms/bedrock/batches"},{"title":"Fine-tune","href":"/aigw/integrations/llms/bedrock/fine-tuning"},{"title":"Prompt Caching on Bedrock","href":"/aigw/integrations/llms/bedrock/prompt-caching"},{"title":"Embeddings","href":"/aigw/integrations/llms/bedrock/embeddings"},{"title":"Rerank","href":"/aigw/integrations/llms/bedrock/rerank"},{"title":"AWS Bedrock Knowledge Bases","href":"/aigw/integrations/llms/bedrock/bedrock-knowledgebase"}]},{"group":"Claude Platform on AWS","pages":[{"title":"Claude Platform on AWS","href":"/aigw/integrations/llms/claude-platform-aws/claude-platform-aws"},{"title":"Setup Assumed Role for Claude Platform on AWS","href":"/aigw/integrations/llms/claude-platform-aws/setup-assumed-role"},{"title":"Files","href":"/aigw/integrations/llms/claude-platform-aws/files"},{"title":"Batches","href":"/aigw/integrations/llms/claude-platform-aws/batches"}]},{"title":"Amazon Bedrock Mantle","href":"/aigw/integrations/llms/bedrock-mantle"},{"title":"AWS SageMaker","href":"/aigw/integrations/llms/aws-sagemaker"},{"title":"Ollama","href":"/aigw/integrations/llms/ollama"},{"group":"More","pages":[{"title":"LocalAI","href":"/aigw/integrations/llms/local-ai"},{"title":"vLLM","href":"/aigw/integrations/llms/vllm"},{"title":"Triton Inference Server","href":"/aigw/integrations/llms/triton"},{"title":"AI21","href":"/aigw/integrations/llms/ai21"},{"title":"Anyscale","href":"/aigw/integrations/llms/anyscale-llama2-mistral-zephyr"},{"title":"BytePlus ModelArk","href":"/aigw/integrations/llms/byteplus"},{"title":"Claude Platform (AWS) (Beta)","tag":"Beta","href":"/aigw/integrations/llms/claude-platform-aws"},{"title":"Cerebras","href":"/aigw/integrations/llms/cerebras"},{"title":"Cohere","href":"/aigw/integrations/llms/cohere"},{"title":"Databricks","href":"/aigw/integrations/llms/databricks"},{"group":"Fireworks","pages":[{"title":"Fireworks","href":"/aigw/integrations/llms/fireworks"},{"title":"Files","href":"/aigw/integrations/llms/fireworks/files"},{"title":"Fine-tune","href":"/aigw/integrations/llms/fireworks/fine-tuning"}]},{"title":"Dashscope","href":"/aigw/integrations/llms/dashscope"},{"title":"Deepinfra","href":"/aigw/integrations/llms/deepinfra"},{"title":"Deepbricks","href":"/aigw/integrations/llms/deepbricks"},{"title":"Deepgram","href":"/aigw/integrations/llms/deepgram"},{"title":"DeepSeek","href":"/aigw/integrations/llms/deepseek"},{"title":"ElevenLabs","href":"/aigw/integrations/llms/elevenlabs"},{"title":"GitHub Models","href":"/aigw/integrations/llms/github"},{"title":"Groq","href":"/aigw/integrations/llms/groq"},{"title":"Hugging Face","href":"/aigw/integrations/llms/huggingface"},{"title":"Inference.net","href":"/aigw/integrations/llms/inference.net"},{"title":"fal.ai","href":"/aigw/integrations/llms/fal-ai"},{"title":"Featherless AI","href":"/aigw/integrations/llms/featherless"},{"title":"Jina AI","href":"/aigw/integrations/llms/jina-ai"},{"title":"Lambda Labs","href":"/aigw/integrations/llms/lambda"},{"title":"Lemonfox-AI","href":"/aigw/integrations/llms/lemon-fox"},{"title":"Lepton AI","href":"/aigw/integrations/llms/lepton"},{"title":"Lingyi (01.ai)","href":"/aigw/integrations/llms/lingyi-01.ai"},{"title":"Mistral AI","href":"/aigw/integrations/llms/mistral-ai"},{"title":"Modal Labs","href":"/aigw/integrations/llms/modal"},{"title":"Monster API","href":"/aigw/integrations/llms/monster-api"},{"title":"Moonshot","href":"/aigw/integrations/llms/moonshot"},{"title":"Ncompass","href":"/aigw/integrations/llms/ncompass"},{"title":"Nomic","href":"/aigw/integrations/llms/nomic"},{"title":"Nscale (EU Sovereign)","href":"/aigw/integrations/llms/nscale"},{"title":"Novita AI","href":"/aigw/integrations/llms/novita-ai"},{"title":"Nebius","href":"/aigw/integrations/llms/nebius"},{"title":"Oracle Cloud Infrastructure","href":"/aigw/integrations/llms/oracle"},{"title":"OpenRouter","href":"/aigw/integrations/llms/openrouter"},{"title":"OVHcloud AI Endpoints","href":"/aigw/integrations/llms/ovhcloud"},{"title":"Perplexity AI","href":"/aigw/integrations/llms/perplexity-ai"},{"title":"Predibase","href":"/aigw/integrations/llms/predibase"},{"title":"Reka AI","href":"/aigw/integrations/llms/reka-ai"},{"title":"Recraft AI","href":"/aigw/integrations/llms/recraft-ai"},{"title":"SambaNova","href":"/aigw/integrations/llms/sambanova"},{"title":"Segmind","href":"/aigw/integrations/llms/segmind"},{"title":"Snowflake Cortex","href":"/aigw/integrations/llms/snowflake-cortex"},{"title":"Stability AI","href":"/aigw/integrations/llms/stability-ai"},{"title":"SiliconFlow","href":"/aigw/integrations/llms/siliconflow"},{"title":"Together AI","href":"/aigw/integrations/llms/together-ai"},{"title":"TypeSafe (Jev)","href":"/aigw/integrations/llms/typesafe"},{"title":"Upstage AI","href":"/aigw/integrations/llms/upstage"},{"title":"Voyage AI","href":"/aigw/integrations/llms/voyage-ai"},{"title":"Workers AI","href":"/aigw/integrations/llms/workers-ai"},{"title":"xAI (Grok)","href":"/aigw/integrations/llms/x-ai"},{"title":"ZhipuAI / ChatGLM / BigModel","href":"/aigw/integrations/llms/zhipu"},{"title":"Replicate","href":"/aigw/integrations/llms/replicate"},{"title":"Z.AI","href":"/aigw/integrations/llms/z-ai"},{"title":"Suggest a new integration!","href":"/aigw/integrations/llms/suggest-a-new-integration"}]},{"title":"Bring Your Own LLM","href":"/aigw/integrations/llms/byollm"}]},{"group":"Cloud Platforms","pages":[{"title":"Microsoft Azure","href":"/aigw/integrations/cloud/azure"}]},{"group":"Guardrails","pages":[{"title":"Aporia","href":"/aigw/integrations/guardrails/aporia"},{"title":"Acuvity","href":"/aigw/integrations/guardrails/acuvity"},{"title":"Akto","href":"/aigw/integrations/guardrails/akto"},{"title":"Azure Guardrails","href":"/aigw/integrations/guardrails/azure-guardrails"},{"title":"AWS Bedrock Guardrails","href":"/aigw/integrations/guardrails/bedrock-guardrails"},{"title":"Cato Networks","href":"/aigw/integrations/guardrails/cato"},{"title":"CrowdStrike AIDR","href":"/aigw/integrations/guardrails/crowdstrike-aidr"},{"title":"Lasso Security","href":"/aigw/integrations/guardrails/lasso"},{"title":"Lakera","href":"/aigw/integrations/guardrails/lakera"},{"title":"Mistral","href":"/aigw/integrations/guardrails/mistral"},{"title":"Pangea","href":"/aigw/integrations/guardrails/pangea"},{"title":"Patronus AI","href":"/aigw/integrations/guardrails/patronus-ai"},{"title":"Palo Alto Networks Prisma AIRS","href":"/aigw/integrations/guardrails/palo-alto-panw-prisma"},{"title":"Pillar","href":"/aigw/integrations/guardrails/pillar"},{"title":"Prompt Security","href":"/aigw/integrations/guardrails/prompt-security"},{"title":"Qualifire","href":"/aigw/integrations/guardrails/qualifire"},{"title":"Javelin (Highflame)","href":"/aigw/integrations/guardrails/javelin"},{"title":"F5 Guardrails","href":"/aigw/integrations/guardrails/f5-guardrails"},{"title":"Headroom","href":"/aigw/integrations/guardrails/headroom"},{"title":"Tavily","href":"/aigw/integrations/guardrails/tavily"},{"title":"JWT Token Validator","href":"/aigw/integrations/guardrails/jwt"},{"title":"Model Rules","href":"/aigw/integrations/guardrails/model-rules"},{"title":"Replace Custom Regex Patterns","href":"/aigw/integrations/guardrails/regex"},{"title":"Request Parameters Check","href":"/aigw/integrations/guardrails/request-parameters-check"},{"title":"Zscaler AI Guard","href":"/aigw/integrations/guardrails/zscaler"},{"title":"Bring Your Own Guardrails","href":"/aigw/integrations/guardrails/bring-your-own-guardrails"}]},{"group":"Plugins","pages":[{"title":"Exa Online Search","href":"/aigw/integrations/plugins/exa"},{"title":"Tavily Online Search","href":"/aigw/integrations/plugins/tavily"}]},{"group":"Vector Databases","pages":[{"title":"Milvus","href":"/aigw/integrations/vector-databases/milvus"},{"title":"Qdrant","href":"/aigw/integrations/vector-databases/qdrant"}]},{"group":"Agents","pages":[{"title":"Overview","href":"/aigw/integrations/agents"},{"title":"OpenAI Agents SDK (Python)","href":"/aigw/integrations/agents/openai-agents"},{"title":"OpenAI Agents SDK (TypeScript)","href":"/aigw/integrations/agents/openai-agents-ts"},{"title":"Claude Agent SDK","href":"/aigw/integrations/agents/claude-agent-sdk"},{"title":"AWS AgentCore","href":"/aigw/integrations/agents/agentcore"},{"title":"Autogen","href":"/aigw/integrations/agents/autogen"},{"title":"Agno AI","href":"/aigw/integrations/agents/agno-ai"},{"title":"Control Flow","href":"/aigw/integrations/agents/control-flow"},{"title":"CrewAI","href":"/aigw/integrations/agents/crewai"},{"title":"Langchain Agents","href":"/aigw/integrations/agents/langchain-agents"},{"title":"Langroid","url":"https://langroid.github.io/langroid/notes/portkey","href":"/aigw/integrations/agents/langroid"},{"title":"LangGraph","href":"/aigw/integrations/agents/langgraph"},{"title":"LiveKit","href":"/aigw/integrations/agents/livekit"},{"title":"Llama Agents by Llamaindex","href":"/aigw/integrations/agents/llama-agents"},{"title":"Mastra Agents","href":"/aigw/integrations/agents/mastra-agents"},{"title":"OpenAI Swarm","href":"/aigw/integrations/agents/openai-swarm"},{"title":"Pydantic AI","href":"/aigw/integrations/agents/pydantic-ai"},{"title":"Phidata","href":"/aigw/integrations/agents/phidata"},{"title":"Strands Agents","href":"/aigw/integrations/agents/strands"},{"title":"Bring Your own Agents","href":"/aigw/integrations/agents/bring-your-own-agents"}]},{"group":"AI Apps","pages":[{"title":"Overview","href":"/aigw/integrations/ai-apps"},{"title":"AnythingLLM","href":"/aigw/integrations/libraries/anythingllm"},{"group":"Claude Code","pages":[{"title":"Claude Code","href":"/aigw/integrations/libraries/claude-code"},{"title":"Claude Code with Anthropic","href":"/aigw/integrations/libraries/claude-code-anthropic"},{"title":"Claude Code with Amazon Bedrock","href":"/aigw/integrations/libraries/claude-code-bedrock"},{"title":"Claude Code with Google Vertex AI","href":"/aigw/integrations/libraries/claude-code-vertex"},{"title":"Gateway Compatibility","href":"/aigw/integrations/libraries/claude-code-gateway-compatibility"}]},{"group":"Claude Desktop","pages":[{"title":"Claude Desktop","href":"/aigw/integrations/libraries/claude-desktop"},{"title":"Claude Desktop for Platform Admins","href":"/aigw/integrations/libraries/claude-desktop-platform-admins"},{"title":"Claude Desktop for Developers","href":"/aigw/integrations/libraries/claude-desktop-developers"}]},{"title":"Claude for Microsoft 365","href":"/aigw/integrations/libraries/claude-for-microsoft-365"},{"title":"Claude Cowork","href":"/aigw/integrations/libraries/claude-cowork"},{"title":"Google Antigravity","href":"/aigw/integrations/libraries/antigravity"},{"title":"OpenCode","href":"/aigw/integrations/libraries/opencode"},{"title":"Pi Agent","href":"/aigw/integrations/libraries/pi-agent"},{"title":"Hermes Agent","href":"/aigw/integrations/libraries/hermes-agent"},{"title":"OpenClaw","href":"/aigw/integrations/libraries/openclaw"},{"title":"Anthropic Computer Use","href":"/aigw/integrations/libraries/anthropic-computer-use"},{"title":"Cline","href":"/aigw/integrations/libraries/cline"},{"title":"Continue.dev","href":"/aigw/integrations/libraries/continue-dev"},{"title":"Android Studio","href":"/aigw/integrations/libraries/android-studio"},{"title":"Cursor","href":"/aigw/integrations/libraries/cursor"},{"title":"Langflow","href":"/aigw/integrations/libraries/langflow"},{"title":"Goose","href":"/aigw/integrations/libraries/goose"},{"title":"GitHub Copilot","href":"/aigw/integrations/libraries/github-copilot"},{"title":"Jan","href":"/aigw/integrations/libraries/janhq"},{"title":"OpenAI Agent Builder (TypeScript)","href":"/aigw/integrations/libraries/openai-agent-builder"},{"title":"OpenAI Agent Builder (Python)","href":"/aigw/integrations/libraries/openai-agent-builder-python"},{"group":"Librechat","pages":[{"title":"LibreChat","href":"/aigw/integrations/libraries/librechat"},{"title":"Web Search for Any LLM in LibreChat","href":"/aigw/guides/use-cases/librechat-web-search"}]},{"group":"Open WebUI","pages":[{"title":"Open WebUI","href":"/aigw/integrations/libraries/openwebui"},{"title":"Image Generation with Open WebUI","url":"/aigw/integrations/libraries/openwebui#4-image-generation-with-portkey","href":"/aigw/integrations/libraries/openwebui/image-generation-with-openwebui"}]},{"title":"n8n","href":"/aigw/integrations/libraries/n8n"},{"title":"Retool","href":"/aigw/integrations/libraries/retool"},{"title":"Salesforce Agentforce","href":"/aigw/integrations/libraries/salesforce-agentforce"},{"title":"OpenAI Codex","href":"/aigw/integrations/libraries/codex"},{"title":"Conductor","href":"/aigw/integrations/libraries/conductor"},{"title":"Roo Code","href":"/aigw/integrations/libraries/roo-code"},{"title":"Zed","href":"/aigw/integrations/libraries/zed"}]},{"group":"Libraries","pages":[{"title":"Overview","description":null,"href":"/aigw/integrations/libraries"},{"title":"Autogen (DEPRECATED)","href":"/aigw/integrations/libraries/autogen"},{"title":"DSPy","description":"Integrate DSPy with Prisma AIRS AI Gateway for production-ready LLM pipelines","href":"/aigw/integrations/libraries/dspy"},{"title":"Instructor","href":"/aigw/integrations/libraries/instructor"},{"title":"Langchain (Python)","href":"/aigw/integrations/libraries/langchain-python"},{"title":"Langchain (JS/TS)","href":"/aigw/integrations/libraries/langchain-js"},{"title":"LlamaIndex (Python)","href":"/aigw/integrations/libraries/llama-index-python"},{"title":"Promptfoo","href":"/aigw/integrations/libraries/promptfoo"},{"title":"Vercel AI SDK","href":"/aigw/integrations/libraries/vercel"},{"title":"MindsDB","href":"/aigw/integrations/libraries/mindsdb"},{"title":"ToolJet","href":"/aigw/integrations/libraries/tooljet"},{"title":"MongoDB","href":"/aigw/integrations/libraries/mongodb"},{"title":"Supabase","href":"/aigw/integrations/libraries/supabase"},{"title":"Zed","href":"/aigw/integrations/libraries/zed"},{"title":"Any OpenAI-Compatible Project","href":"/aigw/integrations/libraries/openai-compatible"},{"title":"Microsoft Semantic Kernel","url":"/api-reference/inference-api/sdks/c-sharp#using-portkey-with-semantic-kernel","href":"/aigw/integrations/libraries/microsoft-semantic-kernel"}]},{"group":"Observability Providers","pages":[{"title":"Datadog","href":"/aigw/integrations/observability/datadog"}]},{"group":"Tracing Providers","pages":[{"title":"Arize AX","href":"/aigw/integrations/tracing-providers/arize"},{"title":"Arize Phoenix","href":"/aigw/integrations/tracing-providers/phoenix"},{"title":"Pydantic Logfire","href":"/aigw/integrations/tracing-providers/logfire"},{"title":"FutureAGI","href":"/aigw/integrations/tracing-providers/future-agi"},{"title":"Langfuse","href":"/aigw/integrations/tracing-providers/langfuse"},{"title":"Langsmith","href":"/aigw/integrations/tracing-providers/langsmith"},{"title":"Pydantic Logfire","href":"/aigw/integrations/tracing-providers/logfire"},{"title":"MLflow Tracing","href":"/aigw/integrations/tracing-providers/ml-flow"},{"title":"OpenLIT","href":"/aigw/integrations/tracing-providers/openlit"},{"title":"OpenTelemetry Python SDK","href":"/aigw/integrations/tracing-providers/opentelemetry-python-sdk"},{"title":"HoneyHive","href":"/aigw/integrations/tracing-providers/honeyhive"},{"title":"Traceloop (OpenLLMetry)","href":"/aigw/integrations/tracing-providers/traceloop"}]},{"group":"MCP Clients","pages":[{"title":"Claude Desktop","href":"/aigw/integrations/mcp-clients/claude"},{"title":"Cursor","href":"/aigw/integrations/mcp-clients/cursor"},{"title":"LibreChat","href":"/aigw/integrations/mcp-clients/librechat"},{"title":"VS Code","href":"/aigw/integrations/mcp-clients/vs-code"},{"title":"Claude Code","href":"/aigw/integrations/mcp-clients/claude-code"}]},{"group":"MCP Servers","pages":[{"title":"Postman MCP server","href":"/aigw/integrations/mcp-servers/postman-mcp-server"},{"title":"Atlassian Remote MCP server","href":"/aigw/integrations/mcp-servers/atlassian-mcp-server"},{"title":"Datadog MCP server","href":"/aigw/integrations/mcp-servers/datadog-mcp-server"},{"title":"Figma MCP server","href":"/aigw/integrations/mcp-servers/figma-mcp-server"},{"title":"Firebase MCP server","href":"/aigw/integrations/mcp-servers/firebase-mcp-server"},{"title":"Tavily MCP server","href":"/aigw/integrations/mcp-servers/tavily-mcp-server"},{"title":"Firecrawl MCP server","href":"/aigw/integrations/mcp-servers/firecrawl-mcp-server"},{"title":"GitHub MCP server","href":"/aigw/integrations/mcp-servers/github-mcp-server"},{"title":"Gitlab MCP server","href":"/aigw/integrations/mcp-servers/gitlab-mcp-server"},{"title":"Gmail MCP server","href":"/aigw/integrations/mcp-servers/gmail-mcp-server"},{"title":"Cerebras Code MCP server","href":"/aigw/integrations/mcp-servers/cerebras-code-mcp-server"},{"title":"Grafana MCP server","href":"/aigw/integrations/mcp-servers/grafana-mcp-server"},{"title":"Kubernetes MCP server","href":"/aigw/integrations/mcp-servers/kubernetes-mcp-server"},{"title":"Linear MCP server","href":"/aigw/integrations/mcp-servers/linear-mcp-server"},{"title":"Microsoft 365 MCP server","href":"/aigw/integrations/mcp-servers/microsoft-365-mcp-server"},{"title":"Notion MCP server","href":"/aigw/integrations/mcp-servers/notion-mcp-server"},{"title":"Open Library MCP server","href":"/aigw/integrations/mcp-servers/open-library-mcp-server"},{"title":"Playwright MCP server","href":"/aigw/integrations/mcp-servers/playwright-mcp-server"},{"title":"Qdrant MCP server","href":"/aigw/integrations/mcp-servers/qdrant-mcp-server"},{"title":"Slack MCP server","href":"/aigw/integrations/mcp-servers/slack-mcp-server"},{"title":"Snowflake MCP server","href":"/aigw/integrations/mcp-servers/snowflake-mcp-server"},{"title":"Stripe MCP server","href":"/aigw/integrations/mcp-servers/stripe-mcp-server"},{"title":"Vectara MCP server","href":"/aigw/integrations/mcp-servers/vectara-mcp-server"}]}]},{"tab":"Self-Hosting","pages":[{"title":"Self-Hosting","href":"/aigw/self-hosting/hybrid-deployments/architecture"}]},{"tab":"Gateway APIs","pages":[{"title":"Gateway APIs","href":"/aigw/api-reference/inference-api/introduction"}]},{"tab":"Admin APIs","pages":[{"title":"Admin APIs","href":"/aigw/api-reference/admin-api/introduction"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/enterprise"}]},{"tab":"Help Center","pages":[{"title":"Help Center","href":"/aigw/help-center/you-do-not-have-enough-permissions"}]}]},{"version":"Virtual Keys (Deprecated)","pages":[{"title":"Virtual Keys (Deprecated)","href":"/virtual_key_old/integrations/libraries/autogen"}]}]},"basePath":"","title":"Autogen (DEPRECATED) - Portkey (Prisma AIRS AI Gateway) Docs","buildId":"dpl_4RHMRqtvdHvKgaEfTTjFqjzja3B6","deploymentId":"dpl_4RHMRqtvdHvKgaEfTTjFqjzja3B6","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-CSp1VigC.js","DynamicMarkdown-Dnt6YhtR.js","zoom-image-lightbox-CZTaVDTN.js","lightbox-handle-r17bVUz3.js"]}