-
Notifications
You must be signed in to change notification settings - Fork 792
feat: add mcp_playwright_example #128
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
feat: add mcp_playwright_example #128
Conversation
…ample Fix NameError in streamlit_mcp_rag_agent example
Add MCP agent server example
…llow API reference (lastmile-ai#117)
…ai#120) * fix/agent-functions * Remove redundant __aenter__ and initialize
- Modified `execute_tool_call` method in OpenAIAugmentedLLM to convert content list to string - Used "\n".join() to concatenate list items into a single string - This addresses issue lastmile-ai#25 where OpenAI API rejects list-type content - Follows OpenAI API specification requiring content to be string or null - Prevents errors with LLMs like deepseek that strictly validate input format The change ensures compatibility with OpenAI's API requirements which specify: "content can only be a string or null. It cannot be a list, object, or any other type." Co-authored-by: ask <ask@m01n.net>
…i#122) * Update mcp_agent.config.yaml * Updating README for new Github MCP Server
… proper message handling (lastmile-ai#130)
…age_param issues (lastmile-ai#131) * fix: update content handling in AzureAugmentedLLM to ensure proper list formatting * fix: update error message to clarify supported roles in AzureAugmentedLLM * fix: update response handling in AzureAugmentedLLM to parse JSON data correctly * fix: simplify JSON argument parsing in AzureAugmentedLLM and improve content handling
* feat: add GoogleAugmentedLLM and GoogleSettings * feat: add example for MCP Google Agent with configuration and usage instructions * feat: update GoogleSettings to allow optional API key and enhance tool schema transformation for compatibility with Gemini * feat: add google-genai dependency * refactor: rename project_id to project in MCP agent config schema * feat: enhance transform_mcp_tool_schema to track unsupported keywords in description and improve any_of handling * feat: demonstrate generate_structured in mcp_basic_google_agent example * fix: correct structured output generation in GoogleAugmentedLLM * chore: update instructor dependency to version 1.7.9 and remove instructor[anthropic] from anthropic's optional dependencies * fix: improve error handling and response processing in GoogleAugmentedLLM * fix: remove redundant error handling for missing function call name or ID in GoogleAugmentedLLM
| result = await llm.generate_str(prompt) | ||
|
|
||
| # Write the result (CSV data) to a file. | ||
| csv_filename = "candidate_summary.csv" | ||
| absolute_path = os.path.abspath(csv_filename) | ||
| with open(csv_filename, "w", newline="") as csv_file: | ||
| csv_file.write(result) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not use the "filesystem" mcp server to let the llm write the result to disk instead of doing this manually?
| async with app.run() as agent_app: | ||
| context = agent_app.context | ||
|
|
||
| async with MCPConnectionManager(context.server_registry): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| async with MCPConnectionManager(context.server_registry): |
| ) | ||
|
|
||
| try: | ||
| llm = await linkedin_scraper_agent.attach_llm(OpenAIAugmentedLLM) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, curious if this should be an Orchestrator workflow. Lots of steps. Does it work well?
| @@ -0,0 +1,66 @@ | |||
| # mcp_playwright_Linkedin_example | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a demo video URL to this readme. If you upload the video on GitHub (e.g. into a comment) and copy the url into the readme, it'll automatically render.
… websockets and SSE connections (lastmile-ai#116) * Add support for websockets and an example * Fix readme * Add support for passing HTTP headers to SSE and websocket connections and add an example * Fix tests --------- Co-authored-by: Sarmad Qadri <sarmad@lastmileai.dev>
…ai#143) - Co-authored-by: Roberto Anić Banić <git@roberto.banic.hr> * Add configurable headers to SSE connection * Fix * Update pyproject.toml * Add websocket transport to ServerRegistry * Remove duplicate headers config * lint and format * Update SSE example --------- Co-authored-by: Roberto Anić Banić <git@roberto.banic.hr>
* fx: _reasoning flag used to set api params * fx: add all new oai reasoning models * chore: replace deprecated api field * ch: cleanup startswith * ch: leave commented code as before
0c46232 to
13a7698
Compare
No description provided.