-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: add External Managed Agent Backends support #1359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
dfcb1c8
56c4f7d
635ab50
fb6d8ed
40e4017
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -487,6 +487,7 @@ def __init__( | |
| approval: Optional[Union[bool, str, Dict[str, Any], 'ApprovalConfig', 'ApprovalProtocol']] = None, | ||
| tool_timeout: Optional[int] = None, # P8/G11: Timeout in seconds for each tool call | ||
| learn: Optional[Union[bool, str, Dict[str, Any], 'LearnConfig']] = None, # Continuous learning (peer to memory) | ||
| backend: Optional[Any] = None, # External managed agent backend (e.g., ManagedAgentIntegration) | ||
| ): | ||
| """Initialize an Agent instance. | ||
|
|
||
|
|
@@ -574,6 +575,11 @@ def __init__( | |
| - LearnConfig: Custom configuration | ||
| Learning is a first-class citizen, peer to memory. It captures patterns, | ||
| preferences, and insights from interactions to improve future responses. | ||
| backend: External managed agent backend for hybrid execution. Accepts: | ||
| - ManagedAgentIntegration: External managed agent service | ||
| - None: Use local execution (default) | ||
| When provided, agent can delegate execution to managed infrastructure | ||
| for long-running tasks or when local resources are constrained. | ||
|
|
||
| Raises: | ||
| ValueError: If all of name, role, goal, backstory, and instructions are None. | ||
|
|
@@ -1798,6 +1804,9 @@ def __init__( | |
| self._output_file = output_file if _output_config else None | ||
| self._output_template = output_template if _output_config else None | ||
|
|
||
| # Backend - external managed agent backend for hybrid execution | ||
| self.backend = backend | ||
|
Comment on lines
+1807
to
+1808
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The The integration is incomplete until the execution path (e.g.,
Comment on lines
+1807
to
+1808
|
||
|
|
||
| # Telemetry - lazy initialized via property for performance | ||
| self.__telemetry = None | ||
| self.__telemetry_initialized = False | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backendis only stored, never used.These changes add a public
backendoption and document delegated execution, but none of the execution paths in this file consultself.backend.Agent(backend=managed)therefore still runs locally, so the feature is effectively unimplemented.Also applies to: 578-582, 1807-1808
🤖 Prompt for AI Agents