Luigi's picture

Luigi PRO

luigi12345

AI & ML interests

None yet

Recent Activity

posted an update about 2 hours ago
# Essential AutoGen Examples: Code Writing, File Operations & Agent Tools 1. **Code Writing with Function Calls & File Operations** - [Documentation](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_function_call_code_writing/) - [Notebook](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_function_call_code_writing.ipynb) - *Key Tools Shown*: - `list_files()` - Directory listing - `read_file(filename)` - File reading - `edit_file(file, start_line, end_line, new_code)` - Precise code editing - Code validation and syntax checking - File backup and restore 2. **Auto Feedback from Code Execution** - [Documentation](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_auto_feedback_from_code_execution/) - [Notebook](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_auto_feedback_from_code_execution.ipynb) - *Key Tools Shown*: - `execute_code(code)` with output capture - Error analysis and auto-correction - Test case generation - Iterative debugging loop 3. **Async Operations & Parallel Execution** - [Documentation](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_function_call_async/) - [Notebook](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_function_call_async.ipynb) - *Key Tools Shown*: - Async function registration - Parallel agent operations - Non-blocking file operations - Task coordination 4. **LangChain Integration & Advanced Tools** - [Colab](https://colab.research.google.com/github/sugarforever/LangChain-Advanced/blob/main/Integrations/AutoGen/autogen_langchain_uniswap_ai_agent.ipynb) - *Key Tools Shown*: - Vector store integration - Document QA chains - Multi-agent coordination - Custom tool creation Most relevant for file operations and code editing is Example #1, which demonstrates the core techniques used in autogenie.py for file manipulation and code editing using line numbers and replacement.
updated a model 4 days ago
strangerzonehf/Flux-Midjourney-Mix2-LoRA
View all activity

Articles

Organizations

None yet

luigi12345's activity

posted an update about 2 hours ago
view post
Post
138
# Essential AutoGen Examples: Code Writing, File Operations & Agent Tools

1. **Code Writing with Function Calls & File Operations**
- [Documentation](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_function_call_code_writing/)
- [Notebook](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_function_call_code_writing.ipynb)
- *Key Tools Shown*:
- list_files() - Directory listing
- read_file(filename) - File reading
- edit_file(file, start_line, end_line, new_code) - Precise code editing
- Code validation and syntax checking
- File backup and restore

2. **Auto Feedback from Code Execution**
- [Documentation](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_auto_feedback_from_code_execution/)
- [Notebook](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_auto_feedback_from_code_execution.ipynb)
- *Key Tools Shown*:
- execute_code(code) with output capture
- Error analysis and auto-correction
- Test case generation
- Iterative debugging loop

3. **Async Operations & Parallel Execution**
- [Documentation](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_function_call_async/)
- [Notebook](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_function_call_async.ipynb)
- *Key Tools Shown*:
- Async function registration
- Parallel agent operations
- Non-blocking file operations
- Task coordination

4. **LangChain Integration & Advanced Tools**
- [Colab](https://colab.research.google.com/github/sugarforever/LangChain-Advanced/blob/main/Integrations/AutoGen/autogen_langchain_uniswap_ai_agent.ipynb)
- *Key Tools Shown*:
- Vector store integration
- Document QA chains
- Multi-agent coordination
- Custom tool creation

Most relevant for file operations and code editing is Example #1, which demonstrates the core techniques used in autogenie.py for file manipulation and code editing using line numbers and replacement.
New activity in strangerzonehf/Flux-Midjourney-Mix2-LoRA 4 days ago

Add generated example

#8 opened 4 days ago by
luigi12345
replied to their post 8 days ago
view reply

You boss!! I I had it done in fastapi but didn’t mange to upload it yet. Thank you!!
IMG_1373.png

replied to their post 8 days ago
view reply

from gradio_client import Client, file

client = Client("black-forest-labs/FLUX.1-schnell")

client.predict(
prompt="A handrawn colorful mind map diagram, rugosity drawn lines, clear shapes, brain silhouette, text areas. must include the texts LITERACY/MENTAL β”œβ”€β”€ PEACE [Dove Icon] β”œβ”€β”€ HEALTH [Vitruvian Man ~60px] β”œβ”€β”€ CONNECT [Brain-Mind Connection Icon] β”œβ”€β”€ INTELLIGENCE β”‚ └── EVERYTHING [Globe Icon ~50px] └── MEMORY β”œβ”€β”€ READING [Book Icon ~40px] β”œβ”€β”€ SPEED [Speedometer Icon] └── CREATIVITY └── INTELLIGENCE [Lightbulb + Infinity ~30px]",
seed=1872187377,
randomize_seed=True,
width=1024,
height=1024,
num_inference_steps=4,
api_name="/infer"
)

posted an update 8 days ago
view post
Post
982
πŸ€”Create Beautiful Diagrams with FLUX WITHOUT DISTORTED TEXT✌️

from huggingface_hub import InferenceClient
client = InferenceClient("black-forest-labs/FLUX.1-schnell", token="hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")

https://huggingface.co/spaces/black-forest-labs/FLUX.1-schnell
# output is a PIL.Image object
image = client.text_to_image("A handrawn colorful mind map diagram, rugosity drawn  lines, clear shapes, brain silhouette, text areas. must include the texts LITERACY/MENTAL β”œβ”€β”€ PEACE [Dove Icon] β”œβ”€β”€ HEALTH [Vitruvian Man ~60px] β”œβ”€β”€ CONNECT [Brain-Mind Connection Icon] β”œβ”€β”€ INTELLIGENCE β”‚   └── EVERYTHING [Globe Icon ~50px] └── MEMORY     β”œβ”€β”€ READING [Book Icon ~40px]     β”œβ”€β”€ SPEED [Speedometer Icon]     └── CREATIVITY         └── INTELLIGENCE [Lightbulb + Infinity ~30px]")
  • 4 replies
Β·
liked a Space 16 days ago
updated a Space 19 days ago