-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add sensitiveData field to v3 SDK #132
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
base: main
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
|
|
@@ -96,6 +96,7 @@ def run( | |
| profile_id: str | None = ..., | ||
| proxy_country_code: str | None = ..., | ||
| workspace_id: str | None = ..., | ||
| sensitive_data: dict[str, str] | None = ..., | ||
| enable_recording: bool | None = ..., | ||
| cache_script: bool | None = ..., | ||
| **extra: Any, | ||
|
|
@@ -114,6 +115,7 @@ def run( | |
| profile_id: str | None = None, | ||
| proxy_country_code: str | None = _UNSET, # type: ignore[assignment] | ||
| workspace_id: str | None = None, | ||
| sensitive_data: dict[str, str] | None = None, | ||
| enable_recording: bool | None = None, | ||
| cache_script: bool | None = None, | ||
| **extra: Any, | ||
|
|
@@ -156,6 +158,7 @@ def run( | |
| proxy_country_code=proxy_country_code, | ||
| output_schema=schema_dict, | ||
| workspace_id=workspace_id, | ||
| sensitive_data=sensitive_data, | ||
| enable_recording=enable_recording, | ||
| cache_script=cache_script, | ||
| **extra, | ||
|
|
@@ -175,6 +178,7 @@ def stream( | |
| profile_id: str | None = None, | ||
| proxy_country_code: str | None = _UNSET, # type: ignore[assignment] | ||
| workspace_id: str | None = None, | ||
| sensitive_data: dict[str, str] | None = None, | ||
| enable_recording: bool | None = None, | ||
| cache_script: bool | None = None, | ||
| **extra: Any, | ||
|
|
@@ -222,6 +226,7 @@ def stream( | |
| proxy_country_code=proxy_country_code, | ||
| output_schema=schema_dict, | ||
| workspace_id=workspace_id, | ||
| sensitive_data=sensitive_data, | ||
| enable_recording=enable_recording, | ||
| cache_script=cache_script, | ||
| **extra, | ||
|
|
@@ -331,6 +336,7 @@ def run( | |
| profile_id: str | None = None, | ||
| proxy_country_code: str | None = _UNSET, # type: ignore[assignment] | ||
| workspace_id: str | None = None, | ||
| sensitive_data: dict[str, str] | None = None, | ||
|
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. P2: Prompt for AI agents |
||
| enable_recording: bool | None = None, | ||
| cache_script: bool | None = None, | ||
| **extra: Any, | ||
|
|
@@ -384,6 +390,7 @@ async def create_fn() -> SessionResponse: | |
| proxy_country_code=proxy_country_code, | ||
| output_schema=schema_dict, | ||
| workspace_id=workspace_id, | ||
| sensitive_data=sensitive_data, | ||
|
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.
Useful? React with 👍 / 👎. |
||
| enable_recording=enable_recording, | ||
| cache_script=cache_script, | ||
| **extra, | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2998,6 +2998,21 @@ | |||||
| "description": "If true, the agent can create scheduled tasks that run on a recurring basis (e.g. \"every Monday morning, check my inbox and summarize new emails\"). Scheduled tasks are tied to your project and persist beyond the session. Note: all scheduled tasks are visible project-wide, so avoid enabling this in multi-user setups where task isolation is needed.", | ||||||
| "default": false | ||||||
| }, | ||||||
| "sensitiveData": { | ||||||
| "anyOf": [ | ||||||
| { | ||||||
| "additionalProperties": { | ||||||
| "type": "string" | ||||||
| }, | ||||||
| "type": "object" | ||||||
| }, | ||||||
| { | ||||||
| "type": "null" | ||||||
| } | ||||||
| ], | ||||||
| "title": "Sensitivedata", | ||||||
| "description": "Key-value pairs of sensitive data (e.g. passwords, API keys) that the agent can use via secure placeholders. Keys are exposed to the LLM; values are never shown. The agent uses `<secret>key</secret>` placeholders in browser_type_text to securely enter values. WARNING: sensitive data may be visible in screenshots if the page renders values in unmasked form fields." | ||||||
| }, | ||||||
| "enableRecording": { | ||||||
| "type": "boolean", | ||||||
| "title": "Enablerecording", | ||||||
|
|
@@ -3027,6 +3042,18 @@ | |||||
| ], | ||||||
| "title": "Cachescript", | ||||||
| "description": "Controls deterministic script caching. `null` (default): auto-detected \u2014 enabled when the task contains `@{{value}}` brackets and a workspace is attached. `true`: force-enable script caching even without brackets (caches the exact task). `false`: force-disable, even if brackets are present. When active, the first call runs the full agent and saves a reusable script. Subsequent calls with the same task template execute the cached script with $0 LLM cost. Requires workspace_id when enabled. Example: \"Get prices from @{{https://example.com}} for @{{electronics}}\"." | ||||||
| }, | ||||||
| "useOwnKey": { | ||||||
| "type": "boolean", | ||||||
| "title": "Useownkey", | ||||||
| "description": "If true, uses your own LLM API key (configured in project settings) instead of Browser Use managed keys. You pay your provider directly for inference; Browser Use charges a reduced orchestration fee (0.2\u00d7 of provider list prices). If no key is configured for the model's provider, the request is rejected.", | ||||||
| "default": false | ||||||
| }, | ||||||
| "autoHeal": { | ||||||
| "type": "boolean", | ||||||
| "title": "Autoheal", | ||||||
| "description": "When cache_script is active, controls whether a lightweight LLM validates the cached script output. If the output looks incorrect (empty, error, wrong structure), the system automatically re-triggers the full agent to generate a new version of the script. Set to false to disable validation and always return the raw script output.", | ||||||
|
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. P3: The new Prompt for AI agents
Suggested change
|
||||||
| "default": true | ||||||
| } | ||||||
| }, | ||||||
| "type": "object", | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.