Skip to content

Provide basic AI examples#294

Open
jeremiaswerner wants to merge 3 commits intoIBM:mainfrom
jeremiaswerner:initial_ai_samples
Open

Provide basic AI examples#294
jeremiaswerner wants to merge 3 commits intoIBM:mainfrom
jeremiaswerner:initial_ai_samples

Conversation

@jeremiaswerner
Copy link
Collaborator

@jeremiaswerner jeremiaswerner commented Feb 23, 2026

This PR adds three very simple AI examples to allow users a quick start.

  1. Agent - Deploy a very simple AI agent with tools and tasks using ACP and CrewAI to Code Engine
  2. FastMCP - Deploy a very basic MCP server using FastMCP to Code Engine
  3. LangFlow - Deploy LangFlow to Code Engine with COS as the persistent data store
  4. Promptfoo - Deploy promptfoo to Code Engine with COS as the persistent data store

All three examples contain a README with explanation as well as a deploy.sh script that creates all the requires resources in the IBM Cloud.

@jeremiaswerner jeremiaswerner changed the title Provide three very simple AI examples Provide basic AI examples Mar 6, 2026
Copy link
Member

@nbaudis nbaudis left a comment

Choose a reason for hiding this comment

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

Nice samples! I've left some suggestions, mostly typos though


**Prerequisites**

The Agent requires an nferencing backend (an LLM or similar service) to operate. Configure the backend endpoint and credentials via environment variables. Configure any OpenAI compatible API endpoint such as [OpenAI](https://platform.openai.com/) or [IBM watsonx.ai](https://www.ibm.com/products/watsonx-ai)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
The Agent requires an nferencing backend (an LLM or similar service) to operate. Configure the backend endpoint and credentials via environment variables. Configure any OpenAI compatible API endpoint such as [OpenAI](https://platform.openai.com/) or [IBM watsonx.ai](https://www.ibm.com/products/watsonx-ai)
The Agent requires an inferencing backend (an LLM or similar service) to operate. Configure the backend endpoint and credentials via environment variables. Configure any OpenAI compatible API endpoint such as [OpenAI](https://platform.openai.com/) or [IBM watsonx.ai](https://www.ibm.com/products/watsonx-ai)

Comment on lines +50 to +51
# If you have a .env.template
cp .env.template .env
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# If you have a .env.template
cp .env.template .env
cp .env.saple .env

# If you have a .env.template
cp .env.template .env
```
Edit the parameter
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Edit the parameter
Configure the variables according to your backend:

- Modify the tasks in [./src/tasks.py](./src/tasks.py) and register them with the orchestration logic in [./src/agents.py](./src/agents.py).
- Add your own tools by editing [./src/tools.py](./src/tools.py).
- Deploy another agent and add it to the Crew [./src/main.py](./src/main.py)
- [Deploy a MCP Server](../mcp_server_fastmcp/README.md) and make it accessible to your agent(s)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- [Deploy a MCP Server](../mcp_server_fastmcp/README.md) and make it accessible to your agent(s)
- [Deploy an MCP Server](../mcp_server_fastmcp/README.md) and make it accessible to your agent(s)


**Prerequisites**

Create an IBM Cloud account on the target Code Engine provider (e.g., IBM Cloud Code Engine) and [login into your IBM Cloud account using the IBM Cloud CLI](https://cloud.ibm.com/docs/codeengine?topic=codeengine-install-cli).
Copy link
Member

Choose a reason for hiding this comment

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

Create an IBM Cloud account on the target Code Engine provider (e.g., IBM Cloud Code Engine)

is there an alternative to running the sample on Code Engine? If not, that would sound confusing and could be shortened to "Login to your IBM Cloud account using the IBM Cloud CLI."

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.

2 participants