Skip to content

Conversation

@Haniehz1
Copy link
Contributor

No description provided.

saqadri and others added 30 commits January 27, 2025 17:42
…ample

Fix NameError in streamlit_mcp_rag_agent example
softage0 and others added 7 commits April 8, 2025 04:53
…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
@Haniehz1 Haniehz1 marked this pull request as ready for review April 11, 2025 21:40
…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
Comment on lines 67 to 73
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)
Copy link
Collaborator

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):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
async with MCPConnectionManager(context.server_registry):

)

try:
llm = await linkedin_scraper_agent.attach_llm(OpenAIAugmentedLLM)
Copy link
Collaborator

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
Copy link
Collaborator

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.

saqadri and others added 15 commits April 16, 2025 19:22
… 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
@Haniehz1 Haniehz1 closed this Apr 24, 2025
@Haniehz1 Haniehz1 force-pushed the add-playwright-linkedin-example branch from 0c46232 to 13a7698 Compare April 24, 2025 20:58
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.