Skip to content

refactor!: make agents more composable#86

Merged
adi-wan-askui merged 2 commits intomainfrom
refactor/make-agents-more-composeable
Jul 10, 2025
Merged

refactor!: make agents more composable#86
adi-wan-askui merged 2 commits intomainfrom
refactor/make-agents-more-composeable

Conversation

@adi-wan-askui
Copy link
Contributor

@adi-wan-askui adi-wan-askui commented Jul 4, 2025

  • add NullReporter and NULL_REPORTER to askui.reporting
  • make Claude 4, thinking etc. available to AndroidVisionAgent
  • extract common base class AgentBase from VisionAgent and AndroidVisionAgent
  • add 2 new params for dynamic tools and configuration to AgentBase.act()

BREAKING CHANGE:

  • remove exceptions.AskUiApiError and AskUiApiRequestFailedError
    (unused)
  • remove old ways of configuring (env vars and *Settings classes)
    Inference and Anthropic APIs / models except
    ASKUI_TOKEN, ASKUI_WORKSPACE_ID and ASKUI_INFERENCE_ENDPOINT,
    and ANTHROPIC_API_KEY (still work as before)
  • extend ActModel.act by 2 new parameters tools and settings

@adi-wan-askui adi-wan-askui force-pushed the refactor/make-agents-more-composeable branch from fe9e831 to 978f472 Compare July 4, 2025 10:10
@adi-wan-askui adi-wan-askui reopened this Jul 5, 2025
@adi-wan-askui adi-wan-askui force-pushed the refactor/make-agents-more-composeable branch from 1ba0865 to 743ae78 Compare July 6, 2025 20:32
@adi-wan-askui adi-wan-askui marked this pull request as draft July 7, 2025 06:13
@adi-wan-askui adi-wan-askui marked this pull request as ready for review July 7, 2025 08:29
Copy link
Contributor

@onur-askui onur-askui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great improvements 💪

- add `NullReporter` and `NULL_REPORTER` to `askui.reporting`
- make Claude 4 available to `AndroidVisionAgent`
- extract common base class `AgentBase` from `VisionAgent` and `AndroidVisionAgent`
- make all settings for llm apis (messages / chat completions / responses) and agents
  configurable through environment variables

BREAKING CHANGE:
- remove `exceptions.AskUiApiError` and `AskUiApiRequestFailedError`
  (unused)
- remove old ways of configuring (env vars and `*Settings` classes)
  Inference and Anthropic APIs / models except
  `ASKUI_TOKEN`, `ASKUI_WORKSPACE_ID` and `ASKUI_INFERENCE_ENDPOINT`,
  and `ANTHROPIC_API_KEY` (still work as before)
- extend `ActModel.act` by 2 new parameters `tools` and `settings`
- remove global settings again
- make settings more local or pass them through param
- make authorization settings optional
@adi-wan-askui adi-wan-askui force-pushed the refactor/make-agents-more-composeable branch from 48330e1 to 5b3f9bb Compare July 10, 2025 06:36
@adi-wan-askui adi-wan-askui merged commit 8f66e0f into main Jul 10, 2025
1 check passed
@adi-wan-askui adi-wan-askui deleted the refactor/make-agents-more-composeable branch July 10, 2025 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants