Skip to content

feat: add timeout field to RemoteTool#118

Open
MAabdelmoumen wants to merge 1 commit intooracle:mainfrom
MAabdelmoumen:feat/remote-tool-timeout
Open

feat: add timeout field to RemoteTool#118
MAabdelmoumen wants to merge 1 commit intooracle:mainfrom
MAabdelmoumen:feat/remote-tool-timeout

Conversation

@MAabdelmoumen
Copy link

Add an optional timeout field to RemoteTool that is forwarded directly to httpx.request(). This allows agent spec authors to configure per-tool HTTP timeouts for slow endpoints such as transcription or inference services.

The field defaults to None, preserving existing behaviour where httpx uses its own default timeout (5 seconds).

Example usage in an agent spec:
{
"component_type": "RemoteTool",
"timeout": 300.0,
...
}

@MAabdelmoumen MAabdelmoumen requested a review from a team February 23, 2026 10:55
@oracle-contributor-agreement
Copy link

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. label Feb 23, 2026
Add an optional `timeout` field to `RemoteTool` that is forwarded
directly to `httpx.request()`. This allows agent spec authors to
configure per-tool HTTP timeouts for slow endpoints such as
transcription or inference services.

The field defaults to `None`, preserving existing behaviour where
httpx uses its own default timeout (5 seconds).

Example usage in an agent spec:
  {
    "component_type": "RemoteTool",
    "timeout": 300.0,
    ...
  }
@MAabdelmoumen MAabdelmoumen force-pushed the feat/remote-tool-timeout branch from 10ddeae to 2a69050 Compare February 23, 2026 11:38
@dhilloulinoracle
Copy link
Contributor

dhilloulinoracle commented Feb 25, 2026

Hi @MAabdelmoumen ,
Thank you for the contribution!

We were actually designing internally some new field in components that do remote operations to be able to configure a retry-policy. That retry-policy would make it possible to configure a timeout.
Stay-tuned until it is public!
You can find at You can find at #119 what we had in mind so far, feel free to provide feedback.

cc @sonleoracle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Required At least one contributor does not have an approved Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants