Skip to content

Commit 340ae7e

Browse files
committed
remove anthropic samples
Signed-off-by: dongjiang <dongjiang1989@126.com>
1 parent 0468bc5 commit 340ae7e

12 files changed

Lines changed: 1 addition & 467 deletions

File tree

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,6 @@ push-test-agent: buildx-create build-kagent-adk
201201
$(DOCKER_PUSH) $(DOCKER_REGISTRY)/poem-flow:latest
202202
$(DOCKER_BUILDER) $(DOCKER_BUILD_ARGS) $(TOOLS_IMAGE_BUILD_ARGS) -t $(DOCKER_REGISTRY)/basic-openai:latest -f python/samples/openai/basic_agent/Dockerfile ./python
203203
$(DOCKER_PUSH) $(DOCKER_REGISTRY)/basic-openai:latest
204-
$(DOCKER_BUILDER) $(DOCKER_BUILD_ARGS) $(TOOLS_IMAGE_BUILD_ARGS) -t $(DOCKER_REGISTRY)/basic-anthropic:latest -f python/samples/anthropic/basic_agent/Dockerfile ./python
205-
$(DOCKER_PUSH) $(DOCKER_REGISTRY)/basic-anthropic:latest
206204
$(DOCKER_BUILDER) $(DOCKER_BUILD_ARGS) $(TOOLS_IMAGE_BUILD_ARGS) -t $(DOCKER_REGISTRY)/langgraph-kebab:latest -f python/samples/langgraph/kebab/Dockerfile ./python
207205
$(DOCKER_PUSH) $(DOCKER_REGISTRY)/langgraph-kebab:latest
208206

go/core/test/e2e/invoke_api_test.go

Lines changed: 0 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -850,42 +850,6 @@ func generateCrewAIAgent(baseURL string) *v1alpha2.Agent {
850850
}
851851
}
852852

853-
func generateAnthropicAgent(baseURL string) *v1alpha2.Agent {
854-
return &v1alpha2.Agent{
855-
ObjectMeta: metav1.ObjectMeta{
856-
Name: "anthropic-test-agent",
857-
Namespace: "kagent",
858-
},
859-
Spec: v1alpha2.AgentSpec{
860-
Description: "An Anthropic agent with calculator and weather tools",
861-
Type: v1alpha2.AgentType_BYO,
862-
BYO: &v1alpha2.BYOAgentSpec{
863-
Deployment: &v1alpha2.ByoDeploymentSpec{
864-
Image: "localhost:5001/basic-anthropic:latest",
865-
SharedDeploymentSpec: v1alpha2.SharedDeploymentSpec{
866-
Env: []corev1.EnvVar{
867-
{
868-
Name: "ANTHROPIC_API_KEY",
869-
ValueFrom: &corev1.EnvVarSource{
870-
SecretKeyRef: &corev1.SecretKeySelector{
871-
LocalObjectReference: corev1.LocalObjectReference{
872-
Name: "kagent-anthropic",
873-
},
874-
Key: "ANTHROPIC_API_KEY",
875-
},
876-
},
877-
},
878-
{
879-
Name: "ANTHROPIC_BASE_URL",
880-
Value: baseURL,
881-
},
882-
},
883-
},
884-
},
885-
},
886-
},
887-
}
888-
}
889853

890854
func TestE2EInvokeOpenAIAgent(t *testing.T) {
891855
// Setup mock server
@@ -1080,56 +1044,6 @@ func TestE2EInvokeCrewAIAgent(t *testing.T) {
10801044
})
10811045
}
10821046

1083-
func TestE2EInvokeAnthropicAgent(t *testing.T) {
1084-
// Setup mock server
1085-
baseURL, stopServer := setupMockServer(t, "mocks/invoke_anthropic_agent.json")
1086-
defer stopServer()
1087-
1088-
// Setup Kubernetes client
1089-
cli := setupK8sClient(t, false)
1090-
1091-
agent := generateAnthropicAgent(baseURL)
1092-
1093-
// Create the agent on the cluster
1094-
err := cli.Create(t.Context(), agent)
1095-
require.NoError(t, err)
1096-
cleanup(t, cli, agent)
1097-
1098-
// Wait for agent to be ready
1099-
args := []string{
1100-
"wait",
1101-
"--for",
1102-
"condition=Ready",
1103-
"--timeout=1m",
1104-
"agents.kagent.dev",
1105-
agent.Name,
1106-
"-n",
1107-
agent.Namespace,
1108-
}
1109-
1110-
cmd := exec.CommandContext(t.Context(), "kubectl", args...)
1111-
cmd.Stdout = os.Stdout
1112-
cmd.Stderr = os.Stderr
1113-
require.NoError(t, cmd.Run())
1114-
1115-
// Poll until the A2A endpoint is actually serving requests through the proxy
1116-
waitForEndpoint(t, agent.Namespace, agent.Name)
1117-
1118-
// Setup A2A client - use the agent's actual name
1119-
a2aURL := a2aUrl("kagent", "anthropic-test-agent")
1120-
a2aClient, err := a2aclient.NewA2AClient(a2aURL)
1121-
require.NoError(t, err)
1122-
1123-
useArtifacts := true
1124-
t.Run("sync_invocation_calculator", func(t *testing.T) {
1125-
runSyncTest(t, a2aClient, "What is 2+2?", "4", &useArtifacts)
1126-
})
1127-
1128-
t.Run("streaming_invocation_weather", func(t *testing.T) {
1129-
runStreamingTest(t, a2aClient, "What is the weather in London?", "Rainy, 52°F")
1130-
})
1131-
}
1132-
11331047
func TestE2EInvokeSTSIntegration(t *testing.T) {
11341048
// Setup mock STS server
11351049
agentName := "test-sts"

go/core/test/e2e/mocks/invoke_anthropic_agent.json

Lines changed: 0 additions & 140 deletions
This file was deleted.

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.uv.workspace]
2-
members = ["packages/*", "samples/adk/*", "samples/langgraph/*", "samples/crewai/*", "samples/openai/*", "samples/anthropic/*"]
2+
members = ["packages/*", "samples/adk/*", "samples/langgraph/*", "samples/crewai/*", "samples/openai/*"]
33

44
[dependency-groups]
55
dev = [

python/samples/anthropic/basic_agent/Dockerfile

Lines changed: 0 additions & 33 deletions
This file was deleted.

python/samples/anthropic/basic_agent/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

python/samples/anthropic/basic_agent/agent.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

python/samples/anthropic/basic_agent/basic_agent/__init__.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

python/samples/anthropic/basic_agent/basic_agent/agent-card.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)