Commit Graph

32 Commits

  • Python: [Breaking] removed pydantic from types and workflows (#917)
    * removed pydantic from types
    
    * fix test
    
    * fix test
    
    * fix tests
    
    * fix assistants client
    
    * Remove Pydantic usage from workflow code.
    
    * updated pydantic removal
    
    * updated lock and test fixes
    
    * fix mypy
    
    * updated build system
    
    * updated chat client parsing
    
    * fix broken test
    
    ---------
    
    Co-authored-by: Evan Mattson <evan.mattson@microsoft.com>
  • Python: support checkpoints for workflow orchestrations and sub-workflows (#863)
    * Magentic checkpoint wip
    
    * Magentic checkpoint updates
    
    * Support checkpointing for magentic orchestration.
    
    * Checkpointing for sub-workflows
    
    * Use _execute_contexts instead of _pending_requests
    
    * Remove unnecessary type ignores
    
    * Support checkpoints for other orchestrations, refactor some code.
    
    * Regenerate uv.lock
  • [BREAKING] Python: Observability cleanup (#905)
    * Further observability cleanup and update telemetry samples
    
    * Add VS Code Extension config
    
    * Fix unit tests
    
    * Fix unit tests
    
    * Add more comments
    
    * Remove live metric
  • Python: [BREAKING] updated structure and samples (#875)
    * updated structure and samples
    
    * updated names and removed cross tests
    
    * updated projects etc
    
    * updated tests
    
    * updated test
    
    * test fixes
    
    * removed devui for now
    
    * updated all-tests task
    
    * removed old style configs
    
    * remove coverage from tests
    
    * updated to unit tests with all-tests
    
    * updated foundry everywhere
    
    * fix azure ai tests
    
    * fix merge tests
    
    * fix mypy
  • Python: [BREAKING] Remove Request Interceptor Architecture - Simplify Sub-workflow Communication (#898)
    * removed intercepts_request and simplified how interception is handled
    
    * parameterize SubWorkflowRequestInfo
    
    * revert back the field rename of RequestResponse
    
    * remove duplicate tests
    
    * ignore type error
    
    * remove SubWorkflowResponse
    
    * Remove SubWorkflowRequestInfo and update RequestInfoMessage with source_executor_id for correlation
  • Python: Clean left-over WorkflowCompletedEvent (#884)
    * Clean left-over WorkflowCompletedEvent
    
    * Improve comments
    
    * Fix type check error
  • Python: Allow union types in FanIn edge group (#868)
    * Improve type utils
    
    * Add sample
    
    * Add Union
    
    * Add more test cases
    
    * Add more test cases
    
    * Fix RequestResponse typing to only coerce mapping original_request
    
    ---------
    
    Co-authored-by: Evan Mattson <evan.mattson@microsoft.com>
  • Python: [Breaking] Remove WorkflowCompletedEvent, introduce workflow output and migrate to ctx.yield_output() + a huge refactoring (#845)
    * Introduce input and output types for executor and workflow
    
    * WorkflowOutputContext handles two types
    
    * Remove can_handle_types from Executor
    
    * Update validation
    
    * Move workflow executor
    
    * Move workflow executor
    
    * Fix issues in WorkflowExecutor
    
    * refactor executor
    
    * update execute signature to create workflow context within Executor
    
    * fix simple sub workflow test; fix validation
    
    * fix output types in WorkflowExecutor
    
    * fix issue in Executor handling of SubWorkflowRequestInfo
    
    * update tests to use proper workflow output
    
    * update orchestration patterns to use output
    
    * Update sample -- not finished
    
    * Update python/packages/main/tests/workflow/test_workflow_states.py
    
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    
    * Update python/packages/main/tests/workflow/test_concurrent.py
    
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    
    * address comments
    
    * WorkflowOutputContext --> WorkflowContext
    
    * remove WorkflowCompletedEvent
    
    * update samples
    
    * Update doc string for important classes; update WorkflowExecutor to support concurrent execution
    
    * use Never instead of None for default type
    
    * Update usage of WorkflowContext[None to WorkflowContext[Never
    
    * address comments
    
    * remove filter for None
    
    * address comments, minor fixes
    
    * quality of life improvement on interceptor types
    
    ---------
    
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
  • Python: Telemetry and observability follow-up (#833)
    * updated telemetry work
    
    * updated telemetry
    
    * slight improvement
    
    * updated tests
    
    * fixes for telemetry
    
    * fixes for mypy
    
    * added settings setup to runner to avoid error
    
    * streamline usage
    
    * updated tests
    
    * updated tests
    
    * further refinement
    
    * fix dumped item for otel
    
    * removed enable_workflow_otel
    
    * final fixes
    
    * final fixes
    
    * updated samples
    
    * removed exporters
    
    * fix tests
    
    * fixed last import'
    
    * fixed devui
  • Python: [BREAKING] Python: Make executor ID required, improvements around handling rehydrating checkpoints (#832)
    * Make executor ID required, improvements around handling rehydrating checkpoints.
    
    * Duplicate executor validation added
    
    * fix remaining issues
    
    ---------
    
    Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
  • Python: Workflow event source updates (#789)
    * Workflow event source updates
    
    * Add WorkflowLifecycleEvent TypeAlias. Update docstrings
    
    * Updates
    
    * Rename
    
    ---------
    
    Co-authored-by: Chris <66376200+crickman@users.noreply.github.com>
  • Python: [BREAKING] Move workflow to main package (#767)
    * Move workflow to main package
    
    * Remove workflow specific unit test config
    
    * Remove workflow-specific version info
    
    * Revert unintended telemetry changes
    
    * Removed the obsolete packages/workflow/tests target
    
    * Rename dir workflow to _workflow
    
    * Fix test imports
  • Python: Add Sequential orchestration builder support. Samples. Tests. (#703)
    * Add support for the Sequential Builder. Add samples. Add tests
    
    * AgentExecutor: always compute full convo during response
    
    * Upgrade azure-ai-agents ToolOutput to FunctionToolOutput
    
    * Explicit notes around allows types for custom agent executors
  • Python: Workflow run state and structured error events, sample updates, tests (#725)
    * Add workflow event types to surface workflow state, status, and failures.
    
    * Address PR feedback
    
    * Updates to use new workflow run state enums
  • Python: Add Concurrent orchestration builder support. Samples. Tests. (#683)
    * Add Concurrent orchestration builder support. Samples. Tests.
    
    * Add sample output
    
    * Add better docstrings
    
    * PR feedback
    
    * PR feedback
  • Python: Improved telemetry setup (#421)
    * test with stack and simplified names
    
    * quick demo of agent decorator
    
    * moved builder to protocol to enhance functionality
    
    * undid chatclientAgent -> agent rename
    
    * one more
    
    * reverted AIAgent rename
    
    * final reverts
    
    * fixed foundry import
    
    * revert changes
    
    * streamlined otel and fcc decorators
    
    * cleanup of telemetry
    
    * further refinement
    
    * lots of updates
    
    * fixed typing
    
    * fix for mypy
    
    * added input and output atttributes
    
    * fix import
    
    * initial work on baking in otel
    
    * major update to telemetry
    
    * final fixes after rename
    
    * fix
    
    * fix test
    
    * updated tests
    
    * fix for tests
    
    * fixes for tests
    
    * updated based on comments
    
    * removed agent decorator
    
    * fix for Python: ServiceResponseException when using multiple tools
    Fixes #649
    
    * addressed comments
    
    * fix tests
    
    * fix tests
    
    * fix tools tests
    
    * fix for conversation_id in assistants client
    
    * fix responses test
    
    * fix tests and mypy
    
    * updated test
    
    * foundry fix
    
    ---------
    
    Co-authored-by: Chris <66376200+crickman@users.noreply.github.com>
  • Python: Update getting started with workflows sample structure and README (#653)
    * Update getting started with workflows sample structure and README
    
    * Small updates
    
    * Adjust getting started samples. Fix agent executor bug. Add workflow tests to unit test file.
    
    * Fix resource links
  • Python: Improve the workflow getting started samples (#570)
    * Wip: samples
    
    * wip - samples
    
    * Updates to workflow getting started samples
    
    * Checkpointing enhancements
    
    * Cleanup
    
    * PR feedback
    
    * Updates
    
    * Sample updates
    
    * Updates
    
    * Revamp samples, improve doc strings and code comments
    
    * Cleanup unused comment
    
    * Formatting cleanup
    
    * wip
    
    * Further work on samples. Allow agent to be specified as edge.
    
    * Cleanup
    
    * Typing cleanup
    
    * Sample updates
    
    ---------
    
    Co-authored-by: Chris <66376200+crickman@users.noreply.github.com>
    Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
  • Python: name changes executed (#607)
    * name changes executed
    
    * updated adr to accepted
    
    * renamed openai base config
    
    * renamed openai config to mixin
    
    * added renames in user docs
    
    * reverted mcperror
    
    * fix tests
    
    * remove sse from tests
  • Python: Introduce WorkflowAgent (#424)
    * start a new implementation based on .net
    
    * add response handling
    
    * update init files
    
    * remove handling of WorkflowCompletedEvent
    
    * clean up implemenation
    
    * fix bug
    
    * update tests for merge_updates
    
    * WorkflowAgent validation
    
    * add a sample and fix bug
    
    * revert pre-commit config
    
    * revert pre-commit
    
    * add human in the loop sample
    
    * add comment
    
    * fix type issue in Executor
    
    * fix type errors and rename Executor.type to Executor.type_ with field alias
    
    * fix test
    
    ---------
    
    Co-authored-by: Chris <66376200+crickman@users.noreply.github.com>
  • Python: Add support for the MagenticWorkflowBuilder (#496)
    * magentic happy path - wip
    
    * Support workflow high-level magentic builder API. Add tests and samples.
    
    * Add sample docstring
    
    * Addressing PR feedback round 1
    
    * Fix mypy errors
    
    * Callback improvements
    
    * Rename to MagenticBuilder
    
    * Improvements
    
    * Emit function calling deltas
    
    * PR feedback 2
    
    * Clean up sample
  • Python: Clean up and formatting (#487)
    * Clean up and formatting
    
    * Fix mypy
    
    * Bug fix
  • Python: Removed DefaultAzureCredential (#490)
    * Removed DefaultAzureCredential
    
    * Renamed ad_credential to credential
  • Python: Adding support for nested workflows (#460)
    * Adding design documents and data flow descriptions for sub-workflows
    
    * Updating docs.
    
    * Sub-workflow implementation #1. Stuck because of singleton RequestInfoExecutor, going to make a change to remove that restrivtion.
    
    * Removed the singleton restriction on RequestInfoExecutor so enable sub-workflows.
    
    * Scenarios seem to be working.
    
    * Sample improved.
    
    * going to have intern add generic response wrappers.
    
    * Wrapped responses working.
    
    * Non-hardcoded routing is working.
    
    * Sample showing external approved and not approved.
    
    * Cleaning up.
    
    * Updating some samples and user guide.
    
    * Removing old design doc.
    
    * Cleaning up.
    
    * Adding python-package-setup.md back.
    
    * Update python/packages/workflow/agent_framework_workflow/_executor.py
    
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    
    * Update python/packages/workflow/agent_framework_workflow/_validation.py
    
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    
    * Removing prints.
    
    * Fixing lint and type issues.
    
    * Fixing lint and type issues.
    
    * Update python/packages/workflow/agent_framework_workflow/_executor.py
    
    Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
    
    * Adding type hints to intercepts decorator.
    
    * Removing unused files.
    
    * Fixing issue with sample 5 groupchat with hil.
    
    * Removing redundent samples.
    
    * Updates to ensure no conflicting request interceptors and to support a subflow with multiple requests in a single super step.
    
    * Fixing pypi errors.
    
    * clean up samples
    
    * update samples to make it more clear
    
    * warning for unhandled request info from sub workflow
    
    * add logger info
    
    ---------
    
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
  • Python: Use generic for WorkflowContext and use its type parameters to indicate executor's output types (#444)
    * Use generic for WorkflowContext and use its type parameters to indicate executor's output types
    
    * Update
    
    * Fix type errors and add in-line comments
    
    * fix test
    
    * type
    
    * Fix executor type issues
  • Python: Workflow visualization. (#372)
    * Workflow visualization.
    
    * fix typing
    
    * address comments
    
    * update all samples
    
    * Update fan in edge group visual
    
    * fix quality check
    
    * Update python/samples/getting_started/workflow/step_06_map_reduce.py
    
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    
    * address comment
    
    * Catch up with changes in workflow; add to_mermaid method
    
    * Update examples
    
    * fix test
    
    * add installation guide to error messages
    
    * Remove visualization for samples except for one.
    
    ---------
    
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    Co-authored-by: Evan Mattson <35585003+moonbox3@users.noreply.github.com>
  • Python: Workflow Edge Groups (#393)
    * Introducing edge groups
    
    * Add conditional and partitioning edge groups; next add samples and tests
    
    * Add unit tests
    
    * Add samples
    
    * Address comments 1
    
    * Address comments 2
    
    * Update conditional edge group to take in cases and default
    
    * Minor updates to sample
    
    * Collapsing Paritioning Edge group and Conditional Edge group to source edge group
    
    * Improve sample clarity
    
    * Name consolidation
    
    ---------
    
    Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
  • Python: openai updates (#388)
    * openai updates
    
    * rebuild of openai structure
    
    * updated responses structure
    
    * renamed sample
    
    * added file id support to code interpreter
    
    * added hosted file ids to code interpretor
    
    * mypy fixes
    
    * removed default az cred from codebase
    
    * updated agent name setup
    
    * added kwargs to entra methods
    
    * and further kwargs
    
    * extra comment
    
    * updated all samples
    
    * readded custom get methods for responses
    
    * updated int tests with ad credential
    
    * missed one
  • Python: introduce workflow checkpointing (#366)
    * Add workflow checkpointing functionality.
    
    * Reintroduce protocol that went missing during merge
    
    * Checkpoint updates
    
    * Fix ordering of checkpointing
    
    * Cleanup
    
    * Cleanup - thanks Copilot
    
    * Cleanup - thanks Copilot
    
    * State reset updates
    
    * State reset updates 2
    
    * Workflow fixes and updates. Addressed PR feedback
    
    * A few updates
  • Python: Define Workflow and Executor APIs (#272)
    * Workflow init commit
    
    * Add samples and clean up
    
    * ExecutionContext -> WorkflowContext
    
    * Address comments 1
    
    * Fix mypy
    
    * flatting folder structure, and rename contexts
    
    * Remove add_loop
    
    * Add map reduce sample, remove Activation conditions
    
    * Add AgentExecutor and allow multiple handlers per executor
    
    * Minor improvement
    
    * Add RequestInfoExecutor
    
    * Add unit tests part 1
    
    * Address comments 2
    
    * Pre-commit update
    
    * Add run method and more unit tests
    
    * Add xml docs
    
    * run_stream -> run_streaming
    
    * message_handler -> handler
    
    ---------
    
    Co-authored-by: Chris <66376200+crickman@users.noreply.github.com>
    Co-authored-by: Evan Mattson <evan.mattson@microsoft.com>