Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@marklysze
Copy link
Collaborator

Why are these changes needed?

A useful mechanism in ContextExpression to check if lists have items or not, e.g.:

OnContextCondition(
    target=my_agent,
    condition=ContextExpression("len(${orders}) > 0")
)

Related issue number

N/A

Checks

@marklysze marklysze added enhancement New feature or request swarm labels Mar 5, 2025
@marklysze marklysze self-assigned this Mar 5, 2025
@marklysze marklysze added this to ag2 Mar 5, 2025
@marklysze marklysze merged commit e0a3bbe into main Mar 5, 2025
16 checks passed
@marklysze marklysze deleted the contextexpressionlistlen branch March 5, 2025 19:34
@github-project-automation github-project-automation bot moved this to Done in ag2 Mar 5, 2025
@codecov
Copy link

codecov bot commented Mar 5, 2025

Codecov Report

Attention: Patch coverage is 60.00000% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
autogen/agentchat/utils.py 60.00% 6 Missing and 2 partials ⚠️

❗ There is a different number of reports uploaded between BASE (fb0000b) and HEAD (d50ab99). Click for more details.

HEAD has 1264 uploads less than BASE
Flag BASE (fb0000b) HEAD (d50ab99)
3.9 82 0
ubuntu-latest 145 1
optional-deps 141 0
commsagent-telegram 9 0
3.10 96 0
commsagent-slack 9 0
commsagent-discord 9 0
3.13 85 0
core-without-llm 14 1
browser-use 7 0
macos-latest 104 0
3.11 64 1
3.12 36 0
windows-latest 114 0
jupyter-executor 9 0
retrievechat-qdrant 14 0
retrievechat-mongodb 10 0
retrievechat 15 0
websockets 9 0
interop 13 0
interop-pydantic-ai 9 0
retrievechat-pgvector 10 0
twilio 9 0
interop-langchain 9 0
graph-rag-falkor-db 6 0
docs 6 0
crawl4ai 13 0
interop-crewai 9 0
lmm 4 0
teachable 4 0
cerebras 15 0
agent-eval 1 0
gpt-assistant-agent 3 0
llama-index-agent 3 0
together 14 0
swarm 14 0
cohere 15 0
ollama 15 0
retrievechat-couchbase 3 0
mistral 14 0
anthropic 16 0
bedrock 15 0
gemini 14 0
websurfer 15 0
long-context 3 0
groq 14 0
core-llm 8 0
integration 12 0
falkordb 2 0
gemini-realtime 1 0
autobuild 1 0
deepseek 1 0
openai-realtime 1 0
neo4j 2 0
openai 1 0
Files with missing lines Coverage Δ
autogen/agentchat/utils.py 81.46% <60.00%> (-11.10%) ⬇️

... and 69 files with indirect coverage changes

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Labels

enhancement New feature or request swarm

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants